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
* 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
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:
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()
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
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
> >
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,
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
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 - 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
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
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.
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
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))
* 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
* 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
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
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
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
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
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
* 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
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
"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/
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
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
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 =
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:
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
> 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.
> 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
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
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 - 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
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"
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
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
===
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
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
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
40 matches
Mail list logo