Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 01:13:11AM -0400, John W. Holmes wrote: > Michael R. Wayne wrote: > > > > > > > > > > Try adding in a hidden element > > > > You're relying on PHP rewriting your forms, links, etc, to include the > session id, but that doesn't seem to be happening. I

Re: [PHP] sessions failing to persist

2004-05-02 Thread Curt Zirzow
* Thus wrote Michael R. Wayne ([EMAIL PROTECTED]): > > I suspect I'm missing something obvious, any pointers? > > /\/\ \/\/ > > if (!session_is_registered("stage")) { >$_SESSION["stage"] = 0; >$_POST['field'] = ""; >session_register("stage"); >} Caution If you are using $_SE

Re: [PHP] sessions failing to persist

2004-05-02 Thread John W. Holmes
Michael R. Wayne wrote: Try adding in a hidden element You're relying on PHP rewriting your forms, links, etc, to include the session id, but that doesn't seem to be happening. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 06:55:25AM +0200, Richard Harb wrote: > If the sample of code is the whole page... where do you actually start > your session? I am using session.auto_start, which starts it for me. I added a session_start while testing and it made no difference. > session_is_registered()

Re: [PHP] sessions failing to persist

2004-05-02 Thread Richard Harb
If the sample of code is the whole page... where do you actually start your session? I didn't see a session_start() anywhere. AFAIK the $_SESSION var doesn't exist until you do just that. session_is_registered(): mabe I'm reading the documentation wrong, but I interpret this function as checking

Re: [PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
On Mon, May 03, 2004 at 12:54:54AM -0400, John Nichel wrote: > Michael R. Wayne wrote: > > >As I posted last week, I seem unable to have sessions persist. I > >have ruled out https as a problem, the following simple script, > >installed as xxx.php will generate a new session number every time > >

Re: [PHP] sessions failing to persist

2004-05-02 Thread John Nichel
Michael R. Wayne wrote: As I posted last week, I seem unable to have sessions persist. I have ruled out https as a problem, the following simple script, installed as xxx.php will generate a new session number every time the field is filled in and "Submit" is hit. Note that I am not using cookies,

[PHP] sessions failing to persist

2004-05-02 Thread Michael R. Wayne
As I posted last week, I seem unable to have sessions persist. I have ruled out https as a problem, the following simple script, installed as xxx.php will generate a new session number every time the field is filled in and "Submit" is hit. Note that I am not using cookies, the relevant session v

RE: [PHP] Trouble setting include_path

2004-05-02 Thread Pablo Gosse
Most default apache configurations now a days dont have .htaccess enabled by default (for performance reasons.) Or some hosting services implicitly turn this option off. So no matter what you put in the .htaccess file, it will be ignored. You can test this by putting in your .htaccess file someth

php-general Digest 2 May 2004 22:54:17 -0000 Issue 2740

2004-05-02 Thread php-general-digest-help
php-general Digest 2 May 2004 22:54:17 - Issue 2740 Topics (messages 185136 through 185158): Re: Progress Bar 185136 by: Burhan Khalid http username 185137 by: Harry.de 185138 by: Matt 185139 by: rich Re: String Question 185140 by: John W. Holmes Se

Re: [PHP] Setting fopen timeout ?

2004-05-02 Thread Marek Kilimajer
Dave Carrera wrote: Hi List, How can I set fopen to time out if a url is not reachable ? I have tried set_time_limit but that dose not seem to work. Thank you in advance for any help or pointers. Dave C I'm not sure it will help but try ini_set('default_socket_timeout', XX); --- Outgoing mail

Re: [PHP] Is Curl GZIP support broken?

2004-05-02 Thread Dac Chartrand
php simply calls the libcurl function and returns what libcurl came back with. There might be problem with the curl.dll your using. The curl.dll i am using is packaged with the binary distribution of PHP (i'm on windows), so if there is a problem with it, there's a problem with the PHP distro.

[PHP] Array Question

2004-05-02 Thread Jason Williard
I am using the following array and function in the template for my website. It works great, but I want to to be better. I would to make it so the last item displayed looks differently than the others, but I have been unable to figure out how to distinguish the last item. When displayed, the crumb

Re: [PHP] Numeric Index of an array

2004-05-02 Thread Marek Kilimajer
Natascha Chrobok wrote: How can I get the numeric Index of an array when the index is a string? string indexes don't have numeric indexes. they are in order however, if you want to find the order of a value, use: echo array_search(array_search("my second value", $myArray), array_keys($myArray))

Re: [PHP] Trouble setting include_path

2004-05-02 Thread Curt Zirzow
* Thus wrote Pablo Gosse ([EMAIL PROTECTED]): > Hi folks. I'm trying to use an .htaccess file to set my include path > and for some reason it's not overriding the value in php.ini, but > instead still shows and uses the original value from php.ini, not what > is in the .htaccess file. Most defaul

Re: [PHP] Is Curl GZIP support broken?

2004-05-02 Thread Curt Zirzow
* Thus wrote Dac Chartrand ([EMAIL PROTECTED]): > >Check curl_errno() and curl_error(). > > > >it sounds like there is a problem with your libcurl > > > > I'm not getting any errors using the above functions. > > Sample PHP code is available at: > > http://www.vegguide.org/plain/rss-code/get_and

[PHP] Trouble setting include_path

2004-05-02 Thread Pablo Gosse
Hi folks. I'm trying to use an .htaccess file to set my include path and for some reason it's not overriding the value in php.ini, but instead still shows and uses the original value from php.ini, not what is in the .htaccess file. I know that include_path is one of the values that can be set any

[PHP] looking for PHP/MYSQL developer in SW london,UK

2004-05-02 Thread scott
Hello gang My company is looking for someone who can work freelance/part-time on some web projects we have. The right person must have experience in PHP/MYSQL in an e-commerce capacity. Graphics skills (Photoshop etc) are also required. C++/MFC experience would be handy but not essential. We would

Re: [PHP] Is Curl GZIP support broken?

2004-05-02 Thread Dac Chartrand
PS: I'm using w2k with apache. http://www.php.net/get/php-4.3.6-Win32.zip/from/a/mirror Check curl_errno() and curl_error(). it sounds like there is a problem with your libcurl Curt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with Curl GZIP problem?

2004-05-02 Thread Dac Chartrand
Sorry, this is a dupe. See: "Is Curl GZIP support broken?" in this same newsgroup. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is Curl GZIP support broken?

2004-05-02 Thread Dac Chartrand
Check curl_errno() and curl_error(). it sounds like there is a problem with your libcurl I'm not getting any errors using the above functions. Sample PHP code is available at: http://www.vegguide.org/plain/rss-code/get_and_parse_vegguide_rss_feed-php (Requires an account to be able to download

Re: [PHP] Is Curl GZIP support broken?

2004-05-02 Thread Curt Zirzow
* Thus wrote Dac Chartrand ([EMAIL PROTECTED]): > The following code used to work until i upgraded to 4.3.6 > > Code: > --- > // Get RSS feed > $c = > curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1'); > curl_setopt($c, CURLOPT_ENCODING, 'gzip'); > curl_setopt($c, CU

[PHP] Is Curl GZIP support broken?

2004-05-02 Thread Dac Chartrand
The following code used to work until i upgraded to 4.3.6 Code: --- // Get RSS feed $c = curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1'); curl_setopt($c, CURLOPT_ENCODING, 'gzip'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_COOKIEFILE, $coo

[PHP] Re: Frage

2004-05-02 Thread Torsten Roehr
"Draw-A-Line" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hallo, > ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular > erstellt und darin ist ein "file field" eingebettet zum Hochladen von > Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype="multipart/

[PHP] Help with Curl GZIP problem?

2004-05-02 Thread Dac Chartrand
The following code used to work until i upgraded to 4.3.6 Code: --- // Get RSS feed $c = curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1'); curl_setopt($c, CURLOPT_ENCODING, 'gzip'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_COOKIEFILE, $coo

Re: [PHP] PHP Auth

2004-05-02 Thread Burhan Khalid
Anton Krall wrote: Guys. Im doing a small php auth system and I was wondering, how can avoid having to do a form to pass the user and pw to the php scripts and just use the popup auth windows on IE and NS? do you remember the names of the vars that get passed thru that popup or how can I invoke

Re: [PHP] Results in array

2004-05-02 Thread Burhan Khalid
Phpu wrote: I want to interogate the database and the results to be placed into array. For now i have: $query = "SELECT product_id, brand_name, model_name FROM products WHERE product_id='$product_id'"; $result = mysql_query($query) or die("error in query - $query - ".mysql_error()); $results =

[PHP] Setting fopen timeout ?

2004-05-02 Thread Dave Carrera
Hi List, How can I set fopen to time out if a url is not reachable ? I have tried set_time_limit but that dose not seem to work. Thank you in advance for any help or pointers. Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:

Re: [PHP] String Question

2004-05-02 Thread John W. Holmes
Dave Carrera wrote: How would I show 100 chars after finding the first instance of a searched word in a string. $start = strpos('hello',$str); $hundredchars = substr($str,$start,100); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

RE: [PHP] http username

2004-05-02 Thread rich
> If a user is logged in via http (authentification e.g. with .htaccess and > .htpasswd file), how can i get the username of the current logged in user? > > Thanx > Harry try $_SERVER['PHP_AUTH_USER'] rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] http username

2004-05-02 Thread Matt
> If a user is logged in via http (authentification e.g. with .htaccess and > .htpasswd file), how can i get the username of the current logged in user? Read the manual at: http://www.php.net/manual/en/features.http-auth.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] http username

2004-05-02 Thread Harry.de
If a user is logged in via http (authentification e.g. with .htaccess and .htpasswd file), how can i get the username of the current logged in user? Thanx Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Progress Bar

2004-05-02 Thread Burhan Khalid
Craig Gardner wrote: I'm working on a script that will automatically download and burn an ISO to a CD, when passed the filename of the ISO and I want to use some sort of progress bar to show how much of the download/burn is complete. I was originally going to use wget to download the file, but

php-general Digest 2 May 2004 10:48:04 -0000 Issue 2739

2004-05-02 Thread php-general-digest-help
php-general Digest 2 May 2004 10:48:04 - Issue 2739 Topics (messages 185111 through 185135): Sorting text with multibyte characters 185111 by: Michal Migurski 185114 by: Red Wingate 185117 by: Michal Migurski - Delete records in an Access DB 185112 by: france

[PHP] Numeric Index of an array

2004-05-02 Thread Natascha Chrobok
How can I get the numeric Index of an array when the index is a string? i.e $myArray = array ("first" => "my first value", "second" => "my second value", "third" => "my third value"); Lets say I want the Index of the "my second one": this would be "second"

Re: [PHP] Re: https & sessions failing to persist

2004-05-02 Thread Jordi Canals
Luis Bernardo wrote: Apache or IIS? CGI or ISAPI module? Hi, Apache and, if possible, running on Linux or BSD. For me, Windows and IIS have to much security holes that we cannont solve (must wait that M$ want to release a security patch). Regards, Jordi. -- PHP General Mailing List (http://ww

Re: [PHP] Frage

2004-05-02 Thread Jordi Canals
Draw-A-Line wrote: Hallo, ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular erstellt und darin ist ein „file field“ eingebettet zum Hochladen von Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype="multipart/form-data “ in das form tag eingefügt und an ein php-Script zu

[PHP] [Newbie Guide] For the benefit of new members

2004-05-02 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

[PHP] Frage

2004-05-02 Thread Draw-A-Line
Hallo, ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular erstellt und darin ist ein „file field“ eingebettet zum Hochladen von Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype="multipart/form-data “ in das form tag eingefügt und an ein php-Script zur Auswertung geschi

[PHP] String Question

2004-05-02 Thread Dave Carrera
Hi List, How would I show 100 chars after finding the first instance of a searched word in a string. So I have a string of which I search for the first instance of "hello" and display from there 100 more chars. My output word then be something like: hello and show the next 100 chars... Thank