Welcome Guest, Not a member yet? Register   Sign In
  Yet another index.php problem
Posted by: El Forum - 08-31-2007, 12:42 PM - No Replies

[eluser]ufasoli[/eluser]
Hello everyone,
I'm really new to codeIniter and I'm having a lot of trouble removing the "index.php" file I've been looking around in the forum and tried all the configurations that I could find in the forum(including the one in the user guide) for the .htaccess file but it still does not work :

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin
    ErrorDocument 404 /index.php
</IfModule>


I've already configured as well the lines in the config.php file

Code:
$config['base_url']    = "http://localhost/field_center/";

$config['index_page'] = "";
here is my directory structure

-styles
-images
-system
--application
(all the other code igniter files & folders)
-index.php


I hope someone can help me with this

thx

ufasoli


  Strange Session library behavior in IE
Posted by: El Forum - 08-31-2007, 11:53 AM - No Replies

[eluser]PoWah[/eluser]
Maybe somebody can explain where is the problem? I think that this is a session library bug or smth...
The situation:
- in one of the controller methods I set search result in a session array ($this->session->set_userdata("search_results", $results_array); ) and redirect to another method which is responsible only for representing result data. Everything goes fine if I use Firefox. Everything goes fine if I use IE too, but not on all computers! On some PCs session data disappears after redirecting, it doesnt matter if you use IE6 or IE7! It works on all computers if browser is FF, but not every computer with IE shows the results! I simply do not understand :/ If I change CI session library with Native Session library, everything is fine with all browsers on all PCs... but if I use original CI library or even the new CI library things go strange...

Any thoughts? :long:

p.s.: you can see this in action on my site http://www.mobilu.lt/ by clicking on a button below the form with a value "Ieškoti". If you see the results with IE - its ok, you are lucky, but I bet not all of you will see them :-)


  Why doesn't SetEnv TZ work?
Posted by: El Forum - 08-31-2007, 10:33 AM - No Replies

[eluser]Nicholas Helke[/eluser]
Hi!

I have a CI application hosted on a DreamHost server. I've set the TZ Env in the .htaccess file to Europe/Berlin, as suggested on the DH wiki, but CI still gets the system's local time which is PT.

Any thoughts?

Cheers,

Nicholas


  Building a IMAP/POP3, webmail interface in CI
Posted by: El Forum - 08-31-2007, 09:29 AM - No Replies

[eluser]tobben[/eluser]
Hello CI-people,

my first contribution to the community is a suggestion/idea for a mail server communication with IMAP/POP3, as seen in this wiki:

IMAP/POP3

My plan is to make a library/class that would make it easy to build ex. a simple webmail client. Using the IMAP functions in PHP for reading the mail server, and probably using the CI email class for the sending part.

Feel free to join/give suggestions!

(Right now there are no actual reading of mail headers/body, but only connection and some misc stuff)


tobben


  Stripping illegal URL characters from strings
Posted by: El Forum - 08-31-2007, 09:18 AM - No Replies

[eluser]Shodan[/eluser]
Hi all,

I'm working on a site that will be using product names in site's page URLs.

I'm redesigning the site so the data already exists. Unfortunately, there's lots of '/'s and '&'s in existing product names so I need to scan through the database and remove any illegal characters from the product (and category) names.

Is there a simple way to scan a string for illegal characters and remove them (or at worst, replace with white space)? I'd also like to replace all the ampersands with the word: "and".

I know this is a job for Regex but to be honest, it baffles me and I can't seem to find a decent, straightforward tutorial.

Thanks in advance for any help!

Regards,
Terry


  var $varible in model
Posted by: El Forum - 08-31-2007, 07:31 AM - No Replies

[eluser]Kemik[/eluser]
Hello,

I know in other coding languages you have to declare variables and I noticed in some model examples the variables are decleared at the top of the model. Can anyone tell me why they have done this and if you need to var all the variables you use in the model?

Thanks.


  Doubt using session
Posted by: El Forum - 08-31-2007, 07:01 AM - No Replies

[eluser]xernobil[/eluser]
Hi friends, forgives my bad English…

I am with a doubt using sessions, already I searched in forum and I did not find the solution.

The doubt is the following one:

I possess an Array of the following collection:

Code:
$arr = Array('idclient' => $idClient, 'name' => $nameClient);

necessary to insert this Array in one session:
Code:
$this->session->set_userdata('client', $arr);

The doubt is following now:
How I go to have access the value 'name' for example? Using

Code:
$this->session->userdata('name');
it returns emptiness.

Tips?

hug. :cheese:


  hi folks i need your help......for thumb nail
Posted by: El Forum - 08-31-2007, 06:14 AM - No Replies

[eluser]praveens[/eluser]
hi folks i need your help......


i don't know much about thumb nails, any body can explain how to do it thumb nails for videos .....


thanks in advance


  how to start
Posted by: El Forum - 08-31-2007, 05:37 AM - No Replies

[eluser]Unknown[/eluser]
Hi

how to start application in codeiginiter where and how to start the application.can u pls explain me briefly

thanks & regards
shirisha


  pleas help
Posted by: El Forum - 08-31-2007, 03:46 AM - No Replies

[eluser]praveens[/eluser]
hi folks in my site search is not working when i give special characters,email address, so pleas any one help me


thanks in advance


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
AssetConnect - a powerful...
by maniaba
3 hours ago
twig and view cell
by foxbille
4 hours ago
Best Way to Implement Aff...
by InsiteFX
8 hours ago
The pipe operator in PHP ...
by InsiteFX
Yesterday, 04:18 PM
Heads up for users using ...
by FlavioSuar
Yesterday, 11:33 AM
Table (view class) Row ID
by grimpirate
07-03-2025, 11:22 PM
curl + response body
by michalsn
07-03-2025, 10:10 PM
Happy 4th Everyone
by InsiteFX
07-03-2025, 09:31 PM
AbuseIPDB Module
by InsiteFX
07-03-2025, 09:27 PM
tool bar not showing
by Luiz Marin
07-03-2025, 04:46 AM

Forum Statistics
» Members: 154,869
» Latest member: gemwinercom
» Forum threads: 78,441
» Forum posts: 379,731

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB