[PHP] Hiding File Name Site Search Question

2004-01-01 Thread Naveed Ahmad
Im developing a site in PHP. I have two questions: 1: how i can I hide file names so that visitors cannot see file names like this: somefile.php?name=value. and 2: How I can develope a site search (IR) in PHP??? Please tell me, Thanks -- PHP General Mailing List (http://www.php.net/) To

[PHP] Having problems with a while loop

2004-01-01 Thread Richard Kurth
Way does this while loop not work. It does not read anything in the file. If I add ! in front of feof it will just loop forever but still it will not read the next line in the file. The file has two lines in it that look like this. tester3:$1$09BZpdge$b7TQcsYSsAP1hgiCuCWtS1

[PHP] Re: Session Variables Disappear and Reappear

2004-01-01 Thread Jerry Kita
For those interested I was able to get to the bottom of this issue. My hosting supplier uses multiple servers to do load balancing. As such the folder in which the session variables were stored was stored in a /tmp file on each of the servers. That explained why the session variables would

Re: [PHP] Re: Can't upload files then 400K to MySQL

2004-01-01 Thread ahmetax
You're right Jeremy. I found that the limitation was because of default max_packet_size of MySQL. It was limited to 1MB by default. Also I found that 400K of data reached the 1MB boundary, when I applied urlencode function to it. Maybe, Chris has a similar limitation problem. -- Ahmet Aksoy

Re: [PHP] Hiding File Name Site Search Question

2004-01-01 Thread Raditha Dissanayake
The first one can be done with Apache URL rewrites. For the second opinions vary. my own is that mnogosearch or aspseek would be best. happy new year. Naveed Ahmad wrote: Im developing a site in PHP. I have two questions: 1: how i can I hide file names so that visitors cannot see file names like

Re: [PHP] Having problems with a while loop

2004-01-01 Thread Raditha Dissanayake
Hi, your fgets should be inside the loop. else you are in an infite loop. ps: are you brute forcing password file ;-) Richard Kurth wrote: Way does this while loop not work. It does not read anything in the file. If I add ! in front of feof it will just loop forever but still it will not read

[PHP] Setting a 'life-time' clock to a displayed information

2004-01-01 Thread ike strong
Hi all, I'm interested in finding out a way to set a time limit to a displayed information - i.e. the displayed information will sieze to appear to a viewer's browser once a set time period is reached. What I'm trying to achieve is a situation whereby a certain 'info' (like an order!) would

Re: [PHP] Setting a 'life-time' clock to a displayed information

2004-01-01 Thread Raditha Dissanayake
This is not a php question, the simplest way to do this is with meta refresh. ike strong wrote: Hi all, I'm interested in finding out a way to set a time limit to a displayed information - i.e. the displayed information will sieze to appear to a viewer's browser once a set time period is

RE: [PHP] urlencoding.

2004-01-01 Thread Larry Brown
How about this one? Add it to an include for the site and use it whenever you have an error check. function goBack($newSite,$errMsg) { $send = ; foreach($_GET as $key=$value) { $send = $send..$key.=.$value; } $goTo = urlencode($newSite.?errMsg=.$errMsg.$send);

Re: [PHP] urlencoding.

2004-01-01 Thread John W. Holmes
Larry Brown wrote: foreach($_GET as $key=$value) { $send = $send..$key.=.$value; } Just use $_SERVER['QUERY_STRING'] instead of recreating it using this loop (unless the data is coming from $_POST). As for the original question, just throw $_GET into $_SESSION

RE: [PHP] Setting a 'life-time' clock to a displayed information

2004-01-01 Thread Larry Brown
The timer on the client browser would have to be done in some client-side language. On the server side you can place any order information that is out with a supplier in a db field along with the time it was pulled. When the next supplier submits a request, the db is parsed for pending jobs

[PHP] ereg + performance problem

2004-01-01 Thread Martin Helie
Hello, I'm writing a routine that recursively reads an HTML document, looking for special tags. It's a template system, but contrary to what I've seen out there so far, no template engines allow for any kind of customization from within the document; they only seem to be variable replacement

php-general Digest 1 Jan 2004 16:28:28 -0000 Issue 2506

2004-01-01 Thread php-general-digest-help
php-general Digest 1 Jan 2004 16:28:28 - Issue 2506 Topics (messages 173589 through 173603): No COOKIE Set? 173589 by: Cesar Aracena 173590 by: Aidan Lister 173591 by: Cesar Aracena Hiding File Name Site Search Question 173592 by: Naveed Ahmad

[PHP] Re: PHP New Year

2004-01-01 Thread Alex
Larry Brown wrote: Happy New year all! Looking forward to bigger better things this year. Larry yep, like php5 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Having problems with a while loop

2004-01-01 Thread Richard Kurth
Ok I changed it to look this way but it still is not working $filenum=test; $fpHt = fopen($filenum, r); while(feof($fpHt)) { $fpLine = fgets($fpHt,512); $fpLine = trim($fpLine); $fpData = explode(:, $fpLine); $fpData[0] = trim($fpData[0]); echo $fpData[0]; } And no I am just reading a .htpasswd

Re[3]: [PHP] Having problems with a while loop

2004-01-01 Thread Richard Davey
Hello Richard, Thursday, January 1, 2004, 5:56:35 PM, you wrote: RK Ok I changed it to look this way but it still is not working RK $filenum=test; RK $fpHt = fopen($filenum, r); RK while(feof($fpHt)) { RK $fpLine = fgets($fpHt,512); RK $fpLine = trim($fpLine); RK $fpData = explode(:, $fpLine);

[PHP] Re: No COOKIE Set?

2004-01-01 Thread Jim Sara Feldman
Cesar: I think that the problem is the array in the echo statement. I have found that I have to do something like: $simple = $_COOKIE[MemberId]; echo Member ID = $simple; Hope that helps. Jim Hi all, My head is about to explode here... I am trying to setup a cookie for every new user that

[PHP] Re: No COOKIE Set?

2004-01-01 Thread Cesar Aracena
It worked but not at all. I placed the setcookie() function in a folder that's under the main one. When displaying the cookie like you told me, now appears right just in the .php files under the same folder of the setcookie() function, but not in the other (like the site's main pages)... ¿?¿?¿? I

[PHP] A simple instruction

2004-01-01 Thread Dino Costantini
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case margherita.php i know there is a function, but i don't remember it. thx

Re: [PHP] A simple instruction

2004-01-01 Thread Leif K-Brooks
Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case margherita.php i know there is a function, but i don't remember it. $_SERVER['PHP_SELF'] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] A simple instruction

2004-01-01 Thread Philip J. Newman
echo$PHP_SELF; maybe? - Original Message - From: Dino Costantini To: PHP Mailing List [EMAIL PROTECTED] Sent: Friday, January 02, 2004 11:30 AM Subject: [PHP] A simple instruction i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the

[PHP] Class Accessor methods??

2004-01-01 Thread Robin Kopetzky
Happy New Year!! Is there a more efficient type of class accessor than using Get/Set like this? function GetValue() { return $this-value; } function SetValue($value) { $this-value = $value; } Robin 'Sparky'

Re: [PHP] A simple instruction

2004-01-01 Thread John W. Holmes
Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case margherita.php i know there is a function, but i don't remember it. basename() -- ---John Holmes... Amazon Wishlist:

Re: [PHP] A simple instruction

2004-01-01 Thread Mike Migurski
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case margherita.php i know there is a function, but i don't remember it. basename(__FILE__) may work. - michal

[PHP] Please help on session_destroy error...

2004-01-01 Thread Tim Meader
I'm looking for help trying to do away with an error I get from time to time in my access control session logic. Here is my session setup from the php.ini: session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.use_only_cookies = 1 session.name = PHPSESSID

Re[3]: [PHP] Having problems with a while loop

2004-01-01 Thread Tom Rogers
Hi, Friday, January 2, 2004, 3:56:35 AM, you wrote: RK Ok I changed it to look this way but it still is not working RK $filenum=test; RK $fpHt = fopen($filenum, r); RK while(feof($fpHt)) { RK $fpLine = fgets($fpHt,512); RK $fpLine = trim($fpLine); RK $fpData = explode(:, $fpLine); RK $fpData[0]

[PHP] Please help on session_destroy error...

2004-01-01 Thread Tim Meader
I'm looking for help trying to do away with an error I get from time to time in my access control session logic. Here is my session setup from the php.ini: session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.use_only_cookies = 1 session.name = PHPSESSID

Re: [PHP] Please help on session_destroy error...

2004-01-01 Thread Jeremy Johnstone
You problem is probably right here: session.gc_maxlifetime = 1800 That sets the garbage collection timeout to 30 minutes... Per the manual: session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. It is not strictly followed, but PHP

[PHP] .htaccess problem

2004-01-01 Thread Ryan A
Hi, I dont know if this is really a PHP problem but am wondering if I can perhaps use php to solve this problem... I dont know if this is just a problem on my server or if you have noticed this too but... heres my present setup: /root/protected_files/ /root/protected_files/one/

[PHP] Please help on session_destroy error...

2004-01-01 Thread Tim Meader
I'm looking for help trying to do away with an error I get from time to time in my access control session logic. Here is my session setup from the php.ini: session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.use_only_cookies = 1 session.name = PHPSESSID

[PHP] Apologies for multiple posts.

2004-01-01 Thread Tim Meader
I was getting a posting failure message from this listserv's auto-responder, but they appear to have posted anyway. --- Tim [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess problem

2004-01-01 Thread Andrew Séguin
That would be based on 'realms'. see : http://httpd.apache.org/docs-2.0/mod/core.html#authname for more info on how to set that. Basicaly, most browsers cache the userid and password as long as the page you are viewing is within the same realm (don't ask for userid and password again). Your

php-general Digest 2 Jan 2004 05:52:28 -0000 Issue 2507

2004-01-01 Thread php-general-digest-help
php-general Digest 2 Jan 2004 05:52:28 - Issue 2507 Topics (messages 173604 through 173622): Re: PHP New Year 173604 by: Alex Re: Having problems with a while loop 173605 by: Richard Kurth 173606 by: Richard Davey 173616 by: Tom Rogers Re: No COOKIE Set?

Re: [PHP] A simple instruction

2004-01-01 Thread Justin French
On Friday, January 2, 2004, at 09:30 AM, Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case margherita.php i know there is a function, but i don't remember it. thx ?=$_SERVER['PHP_SELF']? ... will echo