|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help_at_lists.php.net
Date: Tue Jan 21 2003 - 00:51:19 CST
php-general Digest 21 Jan 2003 06:51:19 -0000 Issue 1835
Topics (messages 132260 through 132356):
Re: XML & deprecated "Call-time pass-by-reference"
132260 by: kellan
Re: Getting https-page
132261 by: Matthew Walker
132264 by: John W. Holmes
imap_fetchbody - size limit?
132262 by: Andy Clarke
Re: How know how many sessions are active?
132263 by: John W. Holmes
132296 by: Justin French
132302 by: Jeremías Grunge
132304 by: Justin French
Re: Select multiple boxes
132265 by: Sean Burlington
132267 by: John W. Holmes
132281 by: Sean Burlington
ayuda...solo se ve el código cuando ejecuto los script
132266 by: Rot Alvarez
132319 by: R B
132322 by: Tracy Finifter Rotton
4.3.0 cpu load raise
132268 by: Philipp
132277 by: Thomas Seifert
Loop inside a table
132269 by: Cesar Aracena
132271 by: Jim Lucas
132273 by: Cesar Aracena
132279 by: Chris Shiflett
Change base url
132270 by: Jeremías Grunge
132287 by: Chris Shiflett
Re: Security
132272 by: Peter Clarke
Re: please help
132274 by: JamsterJAM
132275 by: Marios Adamantopoulos
Re: $_POST vars problem
132276 by: Ford, Mike [LSS]
132325 by: David Freeman
Re: Job Opportunity
132278 by: Jessica Gillert
132280 by: Ray Hunter
132282 by: Marco Tabini
Re: Which country?
132283 by: -<[ Rene Brehmer ]>-
132303 by: Timothy Hitchens \(HiTCHO\)
132324 by: David Freeman
pop-up problem
132284 by: Mark McCulligh
132286 by: Chris Shiflett
132289 by: Mark McCulligh
132292 by: Chris Shiflett
132293 by: John Nichel
132294 by: Mark McCulligh
132312 by: Step Schwarz
132316 by: Mark McCulligh
132318 by: Jim Lucas
132320 by: Sean Burlington
Sql server -- trusted connection
132285 by: Daniel Masson
132288 by: Lowell Allen
Re: Freshmeat question
132290 by: De deco
Re: PHP and Sessions?
132291 by: John Nichel
132298 by: Justin French
132301 by: Tim Thorburn
Cannot show reuploaded image file on page unless manual refresh
132295 by: Phil Powell
132297 by: Chris Shiflett
132306 by: Chris Shiflett
132307 by: ed.home.homes2see.com
132310 by: Phil Powell
132313 by: Jim Lucas
132314 by: Philip Hallstrom
132315 by: Phil Powell
132317 by: Jim Lucas
132330 by: Chris Wesley
Re: simple date question
132299 by: Justin French
Re: ayuda...solo se ve el código cuando ejecuto los script
132300 by: Ezequiel Sapoznik
files no longer upload!
132305 by: Phil Powell
132308 by: Paul Nicholson
a regular expression problem - split text
132309 by: Juan Pablo Aqueveque
132331 by: John W. Holmes
Free PHP Hosting - Answered
132311 by: Timothy Hitchens \(HiTCHO\)
login script fix help needed
132321 by: Karl James
132323 by: Timothy Hitchens \(HiTCHO\)
132329 by: Chris Shiflett
file uploads received, but mangled
132326 by: af.ax-im.com
What is PHP-equivalent of ASP's RESPONSE.REDIRECT feature ?
132327 by: Jane Mawson
132335 by: John W. Holmes
PHP & Sessions generates Segment Faults
132328 by: Blaster
132333 by: Justin French
Time code!!!
132332 by: Karl James
132334 by: Justin French
132336 by: Larry E. Ullman
132342 by: David Freeman
Warning: ifx_connect: E [SQLSTATE=IX 001 SQLCODE=-1829]
132337 by: Jeff Bluemel
132339 by: Jeff Bluemel
Re: JOIN for FREE ... Learn and Earn
132338 by: Michael Smith
getting green screen
132340 by: martin
132341 by: Martin Towell
Header Error message i think!!
132343 by: Karl James
132345 by: Justin French
132346 by: Chris Shiflett
problemas con php y pws..solo veo código
132344 by: Rot Alvarez
mysql_connect error
132347 by: Tom Ray
132348 by: Chris Shiflett
is this better or is it still in html?
132349 by: Karl James
132350 by: Henry
132351 by: Tom Rogers
132352 by: Paul Nicholson
Help with Error, I am Trying!!
132353 by: Karl James
132354 by: Henry
132355 by: Chris Knipe
Can php works as a scheduler?
132356 by: Jack
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
On Mon, 20 Jan 2003 18:04:19 +0800, Jason Wong wrote:
> Assuming that xml_set_object() has been defined correctly then to get rid
> of that error/warning message simply use:
>
> xml_set_object( $this->parser, $this );
Thanks. That seems to work. Every example of using xml_set_object
demostrates pass by reference so I assumed it was required.
Kellan
attached mail follows:
Look into the CURL libraries.
http://www.php.net/manual/en/ref.curl.php
They essentially allow you to emulate the behavior of a browser. Where I
work, we use them to make SSL connections to payment processing
gateways.
Matthew
-----Original Message-----
From: Martin Thoma [mailto:martin
radiok2r.de]
Sent: Monday, January 20, 2003 7:47 AM
To: php-general
lists.php.net
Subject: [PHP] Getting https-page
Hello!
You can easily get an webpage with:
$fp = fopen("http://www.mydomain.com/", "r");
if ($fp) exit;
while(!feof($fp))
{ $line .= fgets($fp, 4096);
}
fclose($fp);
print $line;
But this doesn't work with https (SSL). How can I get an https-page?
Martin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> You can easily get an webpage with: > $fp = fopen("http://www.mydomain.com/", "r"); > if ($fp) exit; > while(!feof($fp)) > { $line .= fgets($fp, 4096); > } > fclose($fp); > print $line; > > But this doesn't work with https (SSL). How can I get an https-page?
Use PHP 4.3.0 with OpenSSL enabled and you can do fopen("https://...") requests.
If you can't do that, then use CURL, like others have mentioned.
If that's not an option, install lynx and make an exec call for lynx to open and return the page to you (any web browser would work, actually, as long as you can pass it an https request)
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
Is there any limitation on the size of attachment that IMAP (especially functions like imap_fetchbody) can handle?
I am writing a PHP script that will cycle through a number of email accounts and downloads new messages, storing the subject/body etc in a database and saving the attachments to the (local) hard disk. The script works fine with a 3MB attachment, but fails for a 4MB one - the file that it saves for the larger file has zero length (the script also work fine for a message with multiple 3MB attachments). As I understand it, there is no limit to the size of a variable's contents within PHP, so I am assuming that this is an issue with IMAP.
The script is running on XP, and is being run on the command line.
Thanks
Andy Clarke
attached mail follows:
> Do you know a way to close a session when client closes the explorer? > Perhaps with a client script?
If the session cookie lifetime is zero, the cookie will be deleted when the user closes their browser. However, it's up to you to delete old information from your database now. Since you have a timestamp, you have to assume that sessions that haven't been accessed for over X minutes are old and delete them. This is the same method that PHP uses with regular session files. That means you need to update the timestamp every time a script starts/retrieves a session so it's up to date.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
on 21/01/03 2:07 AM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
> Another question > > Do you know a way to close a session when client closes the explorer? > Perhaps with a client script?
Apart from what everyone else has said about cookie lifetime, there is probably some javascript foolery you can do to force the browser to visit logout.php by popping up a new window when the main window closes.
Justin
attached mail follows:
I think that the option of a client script is the best if you save sessions in a database.
Any examples of call logout.PHP from javascript (I know that's not a Scripting forum)
Thanks to everybody
"Justin French" <justin
indent.com.au> escribió en el mensaje
news:BA52BE20.1D43C%justin
indent.com.au...
on 21/01/03 2:07 AM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
> Another question > > Do you know a way to close a session when client closes the explorer? > Perhaps with a client script?
Apart from what everyone else has said about cookie lifetime, there is probably some javascript foolery you can do to force the browser to visit logout.php by popping up a new window when the main window closes.
Justin
attached mail follows:
on 21/01/03 9:12 AM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
> Any examples of call logout.PHP from javascript (I know that's not a > Scripting forum)
I already told you! Pop-up a new window with javascript on window close, with the URL 'logout.php'.
If you need more than that, best find a javascript newsgroup or list :)
And remember it won't work for people without javascript or with a pop-up blocker or anything like that.
Justin
attached mail follows:
Ford, Mike [LSS] wrote:
>>-----Original Message-----
>>From: Cal Evans [mailto:cal
calevans.com]
>>Sent: 18 January 2003 14:41
>>
>>use [] in your select box name. When it comes back in the
>>$_POST array you
>>will have an array of options. It breaks HTML standard
>
>
> No, it does not break HTML standards -- that is a PHP urban myth (which, to
> my chagrin, I helped to propagate before a wiser head sent me to read said
> standards in minute detail). It does not even break XHTML standards.
>
> Believe me -- I've interrogated the damn standards to within an inch of
> their lives, and they nonetheless insist that [] are legal characters in
> form element name= attributes, and form element name= attributes are *not*
> deprecated.
>
while I agree that it doesn't break standards - I do find it odd.
and annoying in that it limits the ability of php to process certain forms ...
I don't see any benefit of this system - it would be better if php just created an array for suitable form data - without requiring that the element name changes.
still - I guess it works :)
--Sean
attached mail follows:
> >>use [] in your select box name. When it comes back in the > >>$_POST array you > >>will have an array of options. It breaks HTML standard > > > > > > No, it does not break HTML standards -- that is a PHP urban myth (which, > to > > my chagrin, I helped to propagate before a wiser head sent me to read > said > > standards in minute detail). It does not even break XHTML standards. > > > > Believe me -- I've interrogated the damn standards to within an inch of > > their lives, and they nonetheless insist that [] are legal characters in > > form element name= attributes, and form element name= attributes are > *not* > > deprecated. > > > > while I agree that it doesn't break standards - I do find it odd. > > and annoying in that it limits the ability of php to process certain > forms ... > > I don't see any benefit of this system - it would be better if php just > created an array for suitable form data - without requiring that the > element name changes.
How does php know what "suitable form data" is?
I guess it could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old one and make these two an array now.
Rather than doing that, it can just look for [] in the name and it knows to make that an array.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
John W. Holmes wrote: >>>>use [] in your select box name. When it comes back in the >>>>$_POST array you >>>>will have an array of options. It breaks HTML standard >>> >>> >>>No, it does not break HTML standards -- that is a PHP urban myth > > (which, > >>to >> >>>my chagrin, I helped to propagate before a wiser head sent me to > > read > >>said >> >>>standards in minute detail). It does not even break XHTML > > standards. > >>>Believe me -- I've interrogated the damn standards to within an inch > > of > >>>their lives, and they nonetheless insist that [] are legal > > characters in > >>>form element name= attributes, and form element name= attributes are >> >>*not* >> >>>deprecated. >>> >> >>while I agree that it doesn't break standards - I do find it odd. >> >>and annoying in that it limits the ability of php to process certain >>forms ... >> >>I don't see any benefit of this system - it would be better if php > > just > >>created an array for suitable form data - without requiring that the >>element name changes. > > > How does php know what "suitable form data" is? > > I guess it could look for multiple names in the GET or POST data. But > then that would mean for every variable it goes to create, it would have > to go and look if it's already created one by that name. If it did, > erase the old one and make these two an array now. > > Rather than doing that, it can just look for [] in the name and it knows > to make that an array. >
well I think you answered your own query - it could look for multiple names ...
this seems to work well in other systems - eg Perl:CGI and Java Servlets - though as these have seperate types for an array - so it works quite naturally there.
in fact I have only seen this construct in php - it seems odd to me.
I have worked on several projects where forms have been used to communicate between systems under the control of different development teams - in this case the requirement to rename the form element for it to work as a select multiple has been a pain.
--Sean
attached mail follows:
Subo los script y solo veo código...q puedo hacer ayuda
_____________________________________________________________ Registra gratis tu cuenta email en http://www.exploraiquique.cl
_____________________________________________________________
Select your own custom email address for FREE! Get you
yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
attached mail follows:
Tenes el codigo PHP entre <? y ?> ... ?
Ej.: <? echo "Hello World"; ?>
>From: Rot Alvarez <ralvarez
exploraiquique.cl>
>Reply-To: ralvarez
exploraiquique.cl
>To: php-general
lists.php.net
>Subject: [PHP] ayuda...solo se ve el código cuando ejecuto los script
>Date: Mon, 20 Jan 2003 09:20:51 -0800 (PST)
>
>
>Subo los script y solo veo código...q puedo hacer ayuda
>
>_____________________________________________________________
>Registra gratis tu cuenta email en http://www.exploraiquique.cl
>
>_____________________________________________________________
>Select your own custom email address for FREE! Get you
yourchoice.com w/No
>Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx
attached mail follows:
También, se tiene que tener esta línea en su fichero httpd.conf:
AddType application/x-httpd-php .php
(donde .php es la extensión que se usa en sus ficheros de PHP)
Si no se tiene acceso al fichero httpd.conf, se necesita pedir a su webmaster para hacer este cambio.
On 1/20/03 4:39 PM, "R B" <rbphp
hotmail.com> wrote:
> Tenes el codigo PHP entre <? y ?> ... ?
>
> Ej.:
> <?
> echo "Hello World";
> ?>
>
>
>
>> From: Rot Alvarez <ralvarez
exploraiquique.cl>
>> Reply-To: ralvarez
exploraiquique.cl
>> To: php-general
lists.php.net
>> Subject: [PHP] ayuda...solo se ve el código cuando ejecuto los script
>> Date: Mon, 20 Jan 2003 09:20:51 -0800 (PST)
>>
>>
>> Subo los script y solo veo código...q puedo hacer ayuda
>>
>> _____________________________________________________________
>> Registra gratis tu cuenta email en http://www.exploraiquique.cl
>>
>> _____________________________________________________________
>> Select your own custom email address for FREE! Get you
yourchoice.com w/No
>> Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> _________________________________________________________________
> MSN Fotos: la forma más fácil de compartir e imprimir fotos.
> http://photos.msn.es/support/worldwide.aspx
>
-- Tracy F. Rotton tracytaupecat.com http://www.taupecat.com/
"... I like the 49ers because they're pure of heart, Seattle because they've got something to prove, and the Raiders because they always cheat." -- Lisa Simpson, "Lisa the Greek"
attached mail follows:
Hello !
i upgraded PHP last week. I used 4.2.3 and now i am using 4.3.0. The System is Linux running a 2.4.20 kernel and Apache 1.3.27 with PHP statically compiled in.
I recognized a significant load-raise. it seems that the new version needs more CPU power to complete its tasks.
i will evaluate my atsar logs to verify my assumption, but i like to know if others experienced similar behavior on their webservers.
Thank you very much, Philipp
attached mail follows:
Hmm, I didn't see this effect but I only tried on a development machine. I benchmarked a app there with both php-versions and it was nearly 20% faster with php-4.3.0. But that may depend on the application.
Thomas
On Mon, 20 Jan 2003 18:30:05 +0100 kernel
cyberraum.de (Philipp) wrote:
> Hello ! > > > i upgraded PHP last week. I used 4.2.3 and now > i am using 4.3.0. The System is Linux running > a 2.4.20 kernel and Apache 1.3.27 with PHP > statically compiled in. > > I recognized a significant load-raise. it seems > that the new version needs more CPU power > to complete its tasks. > > i will evaluate my atsar logs to verify my assumption, > but i like to know if others experienced similar behavior > on their webservers. > > > Thank you very much, > Philipp
-- Thomas Seifertmailto:thomas.seifert
myphorum.de http://www.MyPhorum.de
attached mail follows:
Hi all,
I always make for loops inside tables so I usually don't have problems with it, but this case is a little different. I'm making a mail program for my client to receive a mail each time a customer places an order in his site.
Inside the mail program, I declaring a value called $message where an HTML form is being created dynamically, depending on the products selected by the customer or visitor.
The problem is that PHP apparently won't let me do a for loop inside this variable. I have something like this:
$message = "
<HTML> <HEAD> <TITLE>title goes here</TITLE> </HEAD> <BODY> ". for ($x = 0; $x < $num_rows; $x++) { //several lines made dynamically } ." </BODY> </HTML>;
and the error goes like: unexpected T_FOR in line xxx (where my for loop is). I've never tried this in the past, so I assumed it had to be done normally but I see I was mistaken. Anyone did this before? What's the problem here?
Thanks in advance,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
attached mail follows:
instead of doing that your should do this
$message = "
<HTML> <HEAD> <TITLE>title goes here</TITLE> </HEAD> <BODY> ";
for ($x = 0; $x < $num_rows; $x++) { $message .= "some stuff"; }
$message .= "</BODY> </HTML>";
you were also missing your last double quote.
Jim
----- Original Message -----
From: "Cesar Aracena" <icaam
icaam.com.ar>
To: <php-general
lists.php.net>
Sent: Monday, January 20, 2003 9:37 AM
Subject: [PHP] Loop inside a table
Hi all,
I always make for loops inside tables so I usually don't have problems with it, but this case is a little different. I'm making a mail program for my client to receive a mail each time a customer places an order in his site.
Inside the mail program, I declaring a value called $message where an HTML form is being created dynamically, depending on the products selected by the customer or visitor.
The problem is that PHP apparently won't let me do a for loop inside this variable. I have something like this:
$message = "
<HTML> <HEAD> <TITLE>title goes here</TITLE> </HEAD> <BODY> ". for ($x = 0; $x < $num_rows; $x++) { //several lines made dynamically } ." </BODY> </HTML>;
and the error goes like: unexpected T_FOR in line xxx (where my for loop is). I've never tried this in the past, so I assumed it had to be done normally but I see I was mistaken. Anyone did this before? What's the problem here?
Thanks in advance,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Thanks a lot! I was already doing something of the sort, but with a LOT more $message .=
Thanks again,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-----Mensaje original-----
De: Jim Lucas [mailto:phplist
zonedzero.net]
Enviado el: lunes, 20 de enero de 2003 14:41
Para: Cesar Aracena; php-general
lists.php.net
Asunto: Re: [PHP] Loop inside a table
instead of doing that your should do this
$message = "
<HTML> <HEAD> <TITLE>title goes here</TITLE> </HEAD> <BODY> ";
for ($x = 0; $x < $num_rows; $x++) { $message .= "some stuff"; }
$message .= "</BODY> </HTML>";
you were also missing your last double quote.
Jim
----- Original Message -----
From: "Cesar Aracena" <icaam
icaam.com.ar>
To: <php-general
lists.php.net>
Sent: Monday, January 20, 2003 9:37 AM
Subject: [PHP] Loop inside a table
Hi all,
I always make for loops inside tables so I usually don't have problems with it, but this case is a little different. I'm making a mail program for my client to receive a mail each time a customer places an order in his site.
Inside the mail program, I declaring a value called $message where an HTML form is being created dynamically, depending on the products selected by the customer or visitor.
The problem is that PHP apparently won't let me do a for loop inside this variable. I have something like this:
$message = "
<HTML> <HEAD> <TITLE>title goes here</TITLE> </HEAD> <BODY> ". for ($x = 0; $x < $num_rows; $x++) { //several lines made dynamically } ." </BODY> </HTML>;
and the error goes like: unexpected T_FOR in line xxx (where my for loop is). I've never tried this in the past, so I assumed it had to be done normally but I see I was mistaken. Anyone did this before? What's the problem here?
Thanks in advance,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
--- Cesar Aracena <icaam
icaam.com.ar> wrote:
> $message = "
>
> <HTML>
> <HEAD>
> <TITLE>title goes here</TITLE>
> </HEAD>
> <BODY>
> ".
> for ($x = 0; $x < $num_rows; $x++)
> {
> //several lines made dynamically
> }
> .."
> </BODY>
> </HTML>;
Try something like this instead, if you want all of your HTML to be in the $message variable:
$message = "<html>\n<head>\n"; $message .= "\t<title>title goes here</title>\n"; $message .= "</head>\n<body>\n";
for ($x = 0; $x < $num_rows; $x++) { $message .= "whatever you want to add\n"; }
$message .= "</body>\n</html>";
Chris
attached mail follows:
I've a few of scrcripts in a directory $baseurl/PHP/scripts.PHP
And I want to include these a script in a diferent dir example $baseurl/otherDir/otherscript.PHP but the includes that are on the $baseurl/PHP/scripts.PHP now referrer to $baseurl/otherDir... There is a way to say a script wthat is its $baseurl?
Thanks
attached mail follows:
--- Jeremías Grunge <angelcmateos
hotmail.com> wrote:
> I've a few of scrcripts in a directory
> $baseurl/PHP/scripts.PHP
>
> And I want to include these a script in a diferent dir
> example $baseurl/otherDir/otherscript.PHP but the
> includes that are on the $baseurl/PHP/scripts.PHP now
> referrer to $baseurl/otherDir... There is a way to say
> a script wthat is its $baseurl?
I do not think I understand the question. You can change $baseurl like this:
$baseurl = "/something_else";
Chris
attached mail follows:
Phil Ewington wrote: > Hi, > > Can PHP run as a different user for different sites on the same server. The > reason I ask is a client that has a PHP web site on our RAQ4 has had a PHP > application written by someone else and wants us to upload it. Can PHP be > configured to allow certain web sites access to files and directories within > their web root only? > > TIA > > Phil Ewington > Technical Director
Have a look at open_basedir, it won't run as a different user but it will restrict the files the site can access. http://www.php.net/manual/en/features.safe-mode.php#AEN5968 This can be set for each VirtualHost in apache's httpd.conf php_admin_value open_basedir /path/to/accessable/files
Peter Clarke
attached mail follows:
I am running my server on windows xp, which i know you probally think it is silly but i think permissions in xp are automatically set to full or 777.
----- Original Message -----
From: "Ray Hunter" <bigdog
venticon.com>
To: "JamsterJAM" <jamsterjam
msn.com>
Cc: <php-general
lists.php.net>
Sent: Sunday, January 19, 2003 8:46 PM
Subject: Re: [PHP] please help
> On Sun, 2003-01-19 at 12:57, JamsterJAM wrote:
> > Hi,
> > I have a problem. I have created a guestbook for my server and i have
php installed. You enter deatils and the guestbook stores it in
guestbook.dat.php file. The guestbook itself is also a php file. I have
tryed it on other hosts and it has worked. When i run it on my server it
doesnt store the data i have inputted and show it on the guestbook. This
might be a bit confusing but if you could help me or forward it to someone
who can help me i would be much abliged.
> >
> > JAM
>
> We probably need more info to get to the real problem. However, you are
> probably having a problem with the the webserver (php) writing to the
> file. Make sure that the webserver has permission to write to the file.
>
>
>
>
> --
>
> Ray Hunter
> email: bigdog
venticon.com
> www: http://venticon.com
>
attached mail follows:
If you are using IIS you you need to set the Execute permitions on the directory you are running the file Not sure on apache
-----Original Message-----
From: JamsterJAM [mailto:jamsterjam
msn.com]
Sent: 20 January 2003 17:52
To: php-general
lists.php.net
Subject: Re: [PHP] please help
I am running my server on windows xp, which i know you probally think it is silly but i think permissions in xp are automatically set to full or 777.
----- Original Message -----
From: "Ray Hunter" <bigdog
venticon.com>
To: "JamsterJAM" <jamsterjam
msn.com>
Cc: <php-general
lists.php.net>
Sent: Sunday, January 19, 2003 8:46 PM
Subject: Re: [PHP] please help
> On Sun, 2003-01-19 at 12:57, JamsterJAM wrote:
> > Hi,
> > I have a problem. I have created a guestbook for my server and i
> > have
php installed. You enter deatils and the guestbook stores it in
guestbook.dat.php file. The guestbook itself is also a php file. I have
tryed it on other hosts and it has worked. When i run it on my server it
doesnt store the data i have inputted and show it on the guestbook. This
might be a bit confusing but if you could help me or forward it to someone
who can help me i would be much abliged.
> >
> > JAM
>
> We probably need more info to get to the real problem. However, you
> are probably having a problem with the the webserver (php) writing to
> the file. Make sure that the webserver has permission to write to the
> file.
>
>
>
>
> --
>
> Ray Hunter
> email: bigdog
venticon.com
> www: http://venticon.com
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> -----Original Message-----
> From: Kenneth Brill [mailto:kbrill
multi.com]
> Sent: 20 January 2003 15:53
>
> I just changed my server to SSL, everything worked before
> that. now if I
> have a form with an input box (named "searchstring" for
> example) with a
> value of "TEST", when that form is posted (submitted) I get
> the following:
>
> foreach($_POST as $key => $value) {
> echo "[POST]Key: '$key'; Value: '$value'<br>\n";
> }
>
> will print:
> Key:'searchstring' ; Value: 'TESTsearchstring=TEST'
If you're using Apache 2, I suggeest you browse on over to this bug report: http://bugs.php.net/bug.php?id=18648. (Well, maybe you want to go take a look there anyway, as it's definitely concerning this very behaviour.)
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
> On another note, I have found that if I include (and use) > the submit button > everything works perfectly, HOWEVER if I just enter data and > hit return then it messes up.
You could try including a hidden submit field like this:
<input type="hidden" name="submit" value="1">
For name="submit" change that to whatever name your normal submit button has and you'll find that a submit is set even if you hit return instead of clicking on the submit button.
It may or may not resolve the issues you're seeing but it can help general form processing anyway.
CYA, Dave
attached mail follows:
Mr. Hunter, My apologies for the delay in following back up with you. My client has expressed interest in talking with you. I am in the process of pinning them down on whether they would like to do a phone or face-to-face interview - and also what their schedule/time frame is. I will follow up with you as soon as I hear back. Please give me an idea of what might work best for you so I can coordinate accordingly. Thanks! Jessica
Jessica K. Gillert Account Manager Hall Kinion ... "The Talent Source for Emerging Technologies" www.hallkinion.com 801.322.2225 x206 801.322.2205 fax
attached mail follows:
I apologize everyone...evolution is going crazy...
Ray
attached mail follows:
Don't apologize... pass the job offers around instead ;-)
My Evolution has decided that I don't have a Calendar anymore. No matter how hard I try. *sigh*
Cheers,
Marco
On Mon, 2003-01-20 at 13:53, Ray Hunter wrote: > I apologize everyone...evolution is going crazy... > > Ray
-- Marco Tabini <marcottabini.ca>
attached mail follows:
Hi Timothy Hitchens (HiTCHO),
Can't you also, atleast in IE, also ask the browser what country the user is in??? I believe IE has a variable that takes from the regional settings, which covers language and format info for numbers ... but not sure you can pull it from the web though .... the MSDN library is a bit foggy in that respect...
Rene
On Mon, 20 Jan 2003 20:35:35 +1000, you wrote about "RE: [PHP] Which country?" something that looked like this:
>Yes and no... you can use whois information about the IP class or enlist >the services >from a GEO firm that provides database information that includes >information down to >and including Cities etc. > >The accuracy of this type of service in some areas of the world is not >exactly accurate >but usable. > >Look for PHP whois classes but remember that most registries restrict >the number of requests these >days.
-- Rene BrehmerThis message was written on 100% recycled spam.
Come see! My brand new site is now online! http://www.metalbunny.net
attached mail follows:
You could rely somewhat of the time zone codes as you refer to them, the only issue is in some parts of the world this would include 10 countries at a time.
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: tim
hitcho.com.au
> -----Original Message-----
> From: -<[ Rene Brehmer ]>- [mailto:metalbunny
metalbunny.net]
> Sent: Tuesday, 21 January 2003 5:58 AM
> To: php-general
lists.php.net
> Subject: Re: [PHP] Which country?
>
>
> Hi Timothy Hitchens (HiTCHO),
>
> Can't you also, atleast in IE, also ask the browser what
> country the user is in??? I believe IE has a variable that
> takes from the regional settings, which covers language and
> format info for numbers ... but not sure you can pull it from
> the web though .... the MSDN library is a bit foggy in that respect...
>
> Rene
>
> On Mon, 20 Jan 2003 20:35:35 +1000, you wrote about "RE:
> [PHP] Which country?" something that looked like this:
>
> >Yes and no... you can use whois information about the IP class or
> >enlist the services from a GEO firm that provides database
> information
> >that includes information down to
> >and including Cities etc.
> >
> >The accuracy of this type of service in some areas of the
> world is not
> >exactly accurate but usable.
> >
> >Look for PHP whois classes but remember that most registries
> restrict
> >the number of requests these days.
>
> --
> Rene Brehmer
>
> This message was written on 100% recycled spam.
>
> Come see! My brand new site is now online! http://www.metalbunny.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
> You could rely somewhat of the time zone codes as you refer > to them, the > only issue is in some parts of the world > this would include 10 countries at a time.
But what time zone are you getting? The time zone of the browser? The time zone of the proxy cache that's in a possibly different time zone that the browser is forced to use? The time zone of the corporate firewall that lives in a different zone to the browser? A multinational corporate firewall where all traffic is VPN'd back to a single internet gateway to permit traffic control (and before you say this doesn't happen, I know of at least two or three Australian government departments that do this - one on a national basis which means it crosses multiple time zones).
The only sure way to get a country is to ask the browser for it.
...and even then they might lie...
CYA, Dave
attached mail follows:
I was wondering if anyone knows of a way to create a pop-up using PHP or other language to do the same thing as JavaScript window.open method. I have an app that uses the JavaScript popup but now with those popup stopper it will not always work. For I am looking for another way of creating popups. Does anyone know of a way other then window.open to control the window's size and remove things like the toolbar, address bar, etc..
Is there a way to control is through PHP and the header information? or I am look for something that doesn't exist.
Thanks, Mark.
attached mail follows:
--- Mark McCulligh <mmcculli
sykescanada.com> wrote:
> I was wondering if anyone knows of a way to
> create a pop-up using PHP or other language to
> do the same thing as JavaScript window.open
> method. I have an app that uses the JavaScript
> popup but now with those popup stopper it will
> not always work.
That is the point.
> For I am looking for another way of creating > popups. Does anyone know of a way other then > window.open to control the window's size and > remove things like the toolbar, address bar, > etc.. > > Is there a way to control is through PHP and the > header information? or I am look for something > that doesn't exist.
No, PHP cannot help you here. Controlling client behavior like that is not something that is within the scope of HTTP either, so there are no headers that do anything like that. You must depend on some sort of client-side scripting.
Chris
attached mail follows:
I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner.
Mark.
> --- Mark McCulligh <mmcculli
sykescanada.com> wrote:
> > I was wondering if anyone knows of a way to
> > create a pop-up using PHP or other language to
> > do the same thing as JavaScript window.open
> > method. I have an app that uses the JavaScript
> > popup but now with those popup stopper it will
> > not always work.
>
> That is the point.
>
> > For I am looking for another way of creating
> > popups. Does anyone know of a way other then
> > window.open to control the window's size and
> > remove things like the toolbar, address bar,
> > etc..
> >
> > Is there a way to control is through PHP and the
> > header information? or I am look for something
> > that doesn't exist.
>
> No, PHP cannot help you here. Controlling client behavior
> like that is not something that is within the scope of HTTP
> either, so there are no headers that do anything like that.
> You must depend on some sort of client-side scripting.
>
> Chris
attached mail follows:
--- Mark McCulligh <mmcculli
sykescanada.com> wrote:
> I wish people won't miss use features for people start
> blocking them. I am using the window.open the way it
> was meant for. I have a online help feature. I am not
> using it a force people to look at banner after banner.
I know exactly what you mean.
However, I believe window.open still works when used like this:
<a href="#" onclick="window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;">Click Here</a>
At least, that works with Mozilla's pop-up blocker. As I understood it, only those annoying automatic popups are disabled.
Chris
attached mail follows:
Right, Mozilla set it up to block pop-ups that were not requested by the end user. I don't know why Netscape 7 didn't include this with their build.
Chris Shiflett wrote:
> --- Mark McCulligh <mmcculli
sykescanada.com> wrote:
>
>>I wish people won't miss use features for people start
>>blocking them. I am using the window.open the way it
>>was meant for. I have a online help feature. I am not
>>using it a force people to look at banner after banner.
>
>
> I know exactly what you mean.
>
> However, I believe window.open still works when used like
> this:
>
> <a href="#" onclick="window.open('foo.php', 'Foo',
> 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return
> false;">Click Here</a>
>
> At least, that works with Mozilla's pop-up blocker. As I
> understood it, only those annoying automatic popups are
> disabled.
>
> Chris
>
-- By-Tor.com It's all about the Rush http://www.by-tor.com
attached mail follows:
What does IE do?
"John Nichel" <jnichel
by-tor.com> wrote in message
news:3E2C6E54.5000905
by-tor.com...
> Right, Mozilla set it up to block pop-ups that were not requested by the
> end user. I don't know why Netscape 7 didn't include this with their
build.
>
> Chris Shiflett wrote:
> > --- Mark McCulligh <mmcculli
sykescanada.com> wrote:
> >
> >>I wish people won't miss use features for people start
> >>blocking them. I am using the window.open the way it
> >>was meant for. I have a online help feature. I am not
> >>using it a force people to look at banner after banner.
> >
> >
> > I know exactly what you mean.
> >
> > However, I believe window.open still works when used like
> > this:
> >
> > <a href="#" onclick="window.open('foo.php', 'Foo',
> > 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return
> > false;">Click Here</a>
> >
> > At least, that works with Mozilla's pop-up blocker. As I
> > understood it, only those annoying automatic popups are
> > disabled.
> >
> > Chris
> >
>
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
>
attached mail follows:
on 1/20/03 4:47 PM, Mark McCulligh at mmcculli
sykescanada.com wrote:
> What does IE do?
Hi Mark,
IE, as far as I know, doesn't have any built-in pop-up killer.
Pop-up killers generally only block pop-ups that either weren't requested by the visitor -- that is, no link was clicked -- or that reside on a different server than the page opening the pop-up. I imagine your help system should be fine unless your visitors have JavaScript disabled (pop-ups won't work without JavaScript) or there's an error in you JavaScript that's preventing the pop-up from working on one browser or another.
Hope this helps, -Step
attached mail follows:
Thanks for the advise, I am doing to change the way I call the popup, move it out of a function, right into the <A> tag itself. To see if the one client I have popup killer app lets it happen now.
Thanks again, Mark.
----- Original Message -----
From: "Step Schwarz" <step
theschwarzgroup.com>
To: "Mark McCulligh" <mmcculli
sykescanada.com>; <php-general
lists.php.net>
Sent: Monday, January 20, 2003 7:07 PM
Subject: Re: [PHP] pop-up problem
> on 1/20/03 4:47 PM, Mark McCulligh at mmcculli
sykescanada.com wrote:
>
> > What does IE do?
>
> Hi Mark,
>
> IE, as far as I know, doesn't have any built-in pop-up killer.
>
> Pop-up killers generally only block pop-ups that either weren't requested
by
> the visitor -- that is, no link was clicked -- or that reside on a
different
> server than the page opening the pop-up. I imagine your help system
should
> be fine unless your visitors have JavaScript disabled (pop-ups won't work
> without JavaScript) or there's an error in you JavaScript that's
preventing
> the pop-up from working on one browser or another.
>
> Hope this helps,
> -Step
>
>
attached mail follows:
I have found that with the popup stopper that I have installed on my machine, Pop-up Stopper from Panic Ware, that I can't even start up a new instance of IE without it killing the new window. I have netscape 4,6,7 and mozilla installed on my machine and it won't allow me to start up more then one copy of netscape or mozilla at a time.
Jim
----- Original Message -----
From: "Step Schwarz" <step
theschwarzgroup.com>
To: "Mark McCulligh" <mmcculli
sykescanada.com>; <php-general
lists.php.net>
Sent: Monday, January 20, 2003 4:07 PM
Subject: Re: [PHP] pop-up problem
> on 1/20/03 4:47 PM, Mark McCulligh at mmcculli
sykescanada.com wrote:
>
> > What does IE do?
>
> Hi Mark,
>
> IE, as far as I know, doesn't have any built-in pop-up killer.
>
> Pop-up killers generally only block pop-ups that either weren't requested
by
> the visitor -- that is, no link was clicked -- or that reside on a
different
> server than the page opening the pop-up. I imagine your help system
should
> be fine unless your visitors have JavaScript disabled (pop-ups won't work
> without JavaScript) or there's an error in you JavaScript that's
preventing
> the pop-up from working on one browser or another.
>
> Hope this helps,
> -Step
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Chris Shiflett wrote:
> --- Mark McCulligh <mmcculli
sykescanada.com> wrote:
>
>>I wish people won't miss use features for people start
>>blocking them. I am using the window.open the way it
>>was meant for. I have a online help feature. I am not
>>using it a force people to look at banner after banner.
>
>
> I know exactly what you mean.
>
> However, I believe window.open still works when used like
> this:
>
> <a href="#" onclick="window.open('foo.php', 'Foo',
> 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return
> false;">Click Here</a>
>
> At least, that works with Mozilla's pop-up blocker. As I
> understood it, only those annoying automatic popups are
> disabled.
>
I would do
<a href="foo.php" target="Foo" onclick="window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;">Click Here</a>
as this will still work on non-js browsers - albeit without being able to size/position the window.
--Sean
attached mail follows:
Hello list.
I need help on this urgently.
I need to connect to a ms sql server usgin windows autentication on a win 2000 box and IIS 5, i cant switch sql server to windows and sql authentication, .. I really need to know hot to connect.
Thanks
Daniel E Massón.
Ingeniero de desarrollo
dmasson
imagine.com.co
____________________________________
Imagine S.A.
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________
attached mail follows:
> From: "Daniel Masson" <dmasson
imagine.com.co>
>
> I need help on this urgently.
>
> I need to connect to a ms sql server usgin windows autentication on a
> win 2000 box and IIS 5, i cant switch sql server to windows and sql
> authentication, .. I really need to know hot to connect.
I know very little about Windows, but I successfully made a COM connection to MS-SQL recently. Here's sample code:
$db_connection = new COM("ADODB.Connection");
$db_connstr = "DRIVER={SQL
server};server=xdata;database=sampledb;uid=user;pwd=password;";
$db_connection->open($db_connstr);
$select_sql = "SELECT FieldName1, FieldName2, FieldName3 FROM TableName
ORDER BY FieldName1";
$rs = $db_connection->execute($select_sql);
if (!$rs) {
echo("<tr><td>Unable to make MS-SQL database selection!</td></tr>\n" .
"</table>\n" .
"</body>\n" .
"</html>\n");
exit();
}
$rs_fld0 = $rs->Fields(0);
$rs_fld1 = $rs->Fields(1);
$rs_fld2 = $rs->Fields(2);
while (!$rs->EOF) {
echo("<tr bgcolor =
$color><td>$rs_fld0->value</td><td>$rs_fld1->value</td><td>$rs_fld2->value</
td></tr>\n");
$rs->MoveNext();
}
$rs->Close();
$db_connection->Close();
-- Lowell Allen
attached mail follows:
Thanks Martin.
This is great. :)
I am not new to programming, just to scripting languages. I have seen that Perl has some high advanced sintaxes for string processing, for example, but I don't know if the same level can also be achieved in PHP...?
As for the script below, could I run it inside a (my) browser? This could be in any browser?
---Original Message---
Date: Mon, 20 Jan 2003 15:51:05 +0100
From: Martin Thoma <martin
radiok2r.de>
Subject: Re: Freshmeat question
To: php-general
lists.php.net
Well, it's quite easy: Just write a php-script and start it with php myscript.php. Thats all.
You could fetch a web-page with fopen: $fp = fopen("http://www.mydomain.com/", "r"); $line = ""; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); print $line;
If you are new in programming, I think PHP is easyier to learn than Perl.
Martin
-- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signupMeet Singles http://corp.mail.com/lavalife
attached mail follows:
But he said that it's working in 4.2.2 (default off), but not working in 4.1.2 (default on). If I remember correctly, $HTTP_POST_VARS['whatever'] worked before 4.2.x, right? What about things like $_POST $_SERVER, etc. did those work prior to 4.2.0?
Sean Burlington wrote: > Tim Thorburn wrote: > >> Hi, >> >> I've created a password protected area on the site I'm working on >> using PHP Sessions - I've done this several times before without any >> difficulty. This time, I've copied my old code - made the necessary >> changes for login/passwd/database names, yet the sessions don't appear >> to be working. >> >> I've been comparing the PHP settings on each server - the server that >> works is using 4.2.2, the one that does not is using 4.1.2. Other >> than that, the only difference is that on the server that works I've >> changed the path to the PHP include dir (from the server set default >> into my account). >> >> Can anyone offer any suggestions? >> >> >> > > This is by far the most FAQ on this list... > > what changed > http://www.php.net/manual/en/language.variables.predefined.php > > why it changed > http://www.php.net/manual/en/security.registerglobals.php > > > In PHP 4.2.0 and later, the default value for the PHP directive > register_globals is off. This is a major change in PHP. Having > register_globals off affects the set of predefined variables available > in the global scope. For example, to get DOCUMENT_ROOT you'll use > $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from > the URL http://www.example.com/test.php?id=3 instead of $id, or > $_ENV['HOME'] instead of $HOME. > > For related information on this change, read the configuration entry for > register_globals, the security chapter on Using Register Globals , as > well as the PHP 4.1.0 and 4.2.0 Release Announcements. > > Using the available PHP Reserved Predefined Variables, like the > superglobal arrays, is preferred. >
-- By-Tor.com It's all about the Rush http://www.by-tor.com
attached mail follows:
on 21/01/03 8:33 AM, John Nichel (jnichel
by-tor.com) wrote:
> But he said that it's working in 4.2.2 (default off), but not working in > 4.1.2 (default on). If I remember correctly, > $HTTP_POST_VARS['whatever'] worked before 4.2.x, right? What about > things like $_POST $_SERVER, etc. did those work prior to 4.2.0?
the super global arrays ($_POST et al) came in 4.1.0
things like $HTTP_POST_VARS have been working for ages. they are repricated, but continue to work for a long time IMHO
register_globals defaulted to off in 4.2(.x???) ONLY if you were doing a clean install... if you were updating, it tried to grab your old value (on).
Justin
> Sean Burlington wrote: >> Tim Thorburn wrote: >> >>> Hi, >>> >>> I've created a password protected area on the site I'm working on >>> using PHP Sessions - I've done this several times before without any >>> difficulty. This time, I've copied my old code - made the necessary >>> changes for login/passwd/database names, yet the sessions don't appear >>> to be working. >>> >>> I've been comparing the PHP settings on each server - the server that >>> works is using 4.2.2, the one that does not is using 4.1.2. Other >>> than that, the only difference is that on the server that works I've >>> changed the path to the PHP include dir (from the server set default >>> into my account). >>> >>> Can anyone offer any suggestions? >>> >>> >>> >> >> This is by far the most FAQ on this list... >> >> what changed >> http://www.php.net/manual/en/language.variables.predefined.php >> >> why it changed >> http://www.php.net/manual/en/security.registerglobals.php >> >> >> In PHP 4.2.0 and later, the default value for the PHP directive >> register_globals is off. This is a major change in PHP. Having >> register_globals off affects the set of predefined variables available >> in the global scope. For example, to get DOCUMENT_ROOT you'll use >> $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from >> the URL http://www.example.com/test.php?id=3 instead of $id, or >> $_ENV['HOME'] instead of $HOME. >> >> For related information on this change, read the configuration entry for >> register_globals, the security chapter on Using Register Globals , as >> well as the PHP 4.1.0 and 4.2.0 Release Announcements. >> >> Using the available PHP Reserved Predefined Variables, like the >> superglobal arrays, is preferred. >> >
attached mail follows:
Yes, I've also had this script working on PHP 4.0.6 - basically I'm looking for reasons as to why the sessions may not be functioning properly. Right now I'm going line by line through the configuration of PHP on the server that works (4.2.2) and the server that doesn't work (4.1.2) - I'm hoping to find some difference, otherwise I don't know how to put password protection on the site.
Another interesting issue with the site that doesn't work - if I try to add a .htaccess file changing the default include directory of PHP (as I've done many other times with various hosting companies) suddenly all my .php files cease to work and error screens popup.
I wouldn't call myself a newbie, but I wouldn't call myself an expert - I think I'm somewhere in the middle ground of moderate user who's clued right now ...
Any help on this would be greatly appreciated.
Below I've compiled a list of the differences between the PHP configurations - perhaps something in here may shed some light?
PHP 4.2.2 (works fine)
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mcrypt' '--enable-bcmath' '--enable-calendar' '--with-xml' '--with-swf=/usr/local/flash' '--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local' '--with-imap=../imap-2001.BETA.SNAP-0107112053' '--with-ming=../ming-0.1.1' '--enable-magic-quotes' '--with-mysql' '--enable-safe-mode' '--enable-track-vars' '--with-ttf' '--enable-versioning' '--with-curl' '--with-zlib'
Settings: allow_call_time_pass_reference ON extension_dir ./ magic_quotes_gpc ON register_argc_argv ON sendmail_from no value unserialize_callback_func no value variables_order EGPCS
PHP 4.1.2 (doesn't work)
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--with-ttf' '--with-db' '--with-gdbm' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared' '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' '--with-curl=shared' '--with-pdflib=shared'
Settings:
allow_call_time_pass_reference OFF
extension_dir /usr/lib/apache/php
magic_quotes_gpc OFF
register_argc_argv OFF
sendmail_from me
localhost.com
variables_order GPCS
Thanks -Tim
attached mail follows:
I am using the following header() functions to force view.php to not cache:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0
However, when a user reuploads a file in manage.php, it does a form post onto manage.php and reuploads the file (which I verified works). However, when redirected via header() to view.php, they still see their OLD image file, NOT the new one! Unless I manually refresh the page, they never see it, until they manually refresh the page, then the new image file appears!
I am handling file uploading this way: If they select another file to upload, the old file is deleted and the new file uploaded.
Any suggestions?
Thanx Phil
attached mail follows:
--- Phil Powell <soazine
erols.com> wrote:
> I am using the following header() functions to force
> view.php to not cache:
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> " GMT");
> header("Cache-Control: no-store, no-cache,
> must-revalidate");
> header("Cache-Control: post-check> false);
> header("Pragma: no-cache");
:-)
I think you killed it.
> However, when a user reuploads a file in manage.php, it > does a form post onto manage.php and reuploads the file > (which I verified works). However, when redirected via > header() to view.php, they still see their OLD image > file, NOT the new one! Unless I manually refresh the > page, they never see it, until they manually refresh the > page, then the new image file appears!
Right.
I think you are forgetting that the image is not really part of the PHP resource. Meaning, this is the series of events for a PHP script that refernces a single image called bar.jpg using the <img> tag:
1. HTTP request sent for foo.php (Web client -> Web server) 2. HTTP response sent that includes the output of foo.php (Web server -> Web client) 3. Web client (browser) notices <img> tag referenced in the HTML. 4. HTTP request sent for bar.jpg (Web client -> Web server) 5. HTTP response sent that includes bar.jpg
So, the headers that you are setting only matter for the resource returned in step 2. Meaning, the HTML output of foo.php is not cached. The image, since it is returned by the Web server and not your PHP script, is cached.
Chris
attached mail follows:
--- Phil Powell <soazine
erols.com> wrote:
> Chris, that made no sense to me at all!
Sorry. :-)
> How in the world could an HTTP-RESPONSE send back a > cached .jpg file that no longer exists on the server > end? That's impossible, unless the entire page is > cached. Now, how do I ensure that view.php always > gets the "fresh" image every time?
I probably explained this poorly. The main point I was trying to make is that images are completely separate resources. They are not part of a page as you seem to be thinking, even though they appear to be once rendered in your browser.
While a request for view.php results in a response that includes all of those headers you explicitly set, a request for blah.jpg gets returned by the Web server directly. It is probably being cached by the browser.
However, the Web client usually includes an If-Modified-Since header that will cause the Web server to return a fresh resource if it has in fact been modified.
Is there a way you can show us the HTTP transactions for the image in question both before and after it has been modified?
Chris
attached mail follows:
Aha! Something I can chime in on. I happened across the same scenario a few months back. The list helped me then so I'll give back.
Call the image using a random identifier.
$rand = rand(1000, 9999);
echo "<img src="http://someurl.com/image.jpg?$rand";
Since the browser will more than likely not have the image file identified by the random number it must request it again from the server. Works great where I need it!
Ed
On Mon, 20 Jan 2003, Chris Shiflett wrote:
> --- Phil Powell <soazine
erols.com> wrote:
> > I am using the following header() functions to force
> > view.php to not cache:
> >
> > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > " GMT");
> > header("Cache-Control: no-store, no-cache,
> > must-revalidate");
> > header("Cache-Control: post-check=0, pre-check=0",
> > false);
> > header("Pragma: no-cache");
>
> :-)
>
> I think you killed it.
>
> > However, when a user reuploads a file in manage.php, it
> > does a form post onto manage.php and reuploads the file
> > (which I verified works). However, when redirected via
> > header() to view.php, they still see their OLD image
> > file, NOT the new one! Unless I manually refresh the
> > page, they never see it, until they manually refresh the
> > page, then the new image file appears!
>
> Right.
>
> I think you are forgetting that the image is not really
> part of the PHP resource. Meaning, this is the series of
> events for a PHP script that refernces a single image
> called bar.jpg using the <img> tag:
>
> 1. HTTP request sent for foo.php (Web client -> Web server)
> 2. HTTP response sent that includes the output of foo.php
> (Web server -> Web client)
> 3. Web client (browser) notices <img> tag referenced in
> the HTML.
> 4. HTTP request sent for bar.jpg (Web client -> Web server)
> 5. HTTP response sent that includes bar.jpg
>
> So, the headers that you are setting only matter for the
> resource returned in step 2. Meaning, the HTML output of
> foo.php is not cached. The image, since it is returned by
> the Web server and not your PHP script, is cached.
>
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Dude, your solution failed! :( The image STILL caches even though on the server end it's deleted!! Even with a RANDOM string tacked on it STILL caches!!!!!!!
Phil
<ed
home.homes2see.com> wrote in message
news:Pine.LNX.4.04.10301201344380.8269-100000
home.homes2see.com...
>
> Aha! Something I can chime in on. I happened across the same scenario a
> few months back. The list helped me then so I'll give back.
>
> Call the image using a random identifier.
>
> $rand = rand(1000, 9999);
>
> echo "<img src="http://someurl.com/image.jpg?$rand";
>
> Since the browser will more than likely not have the image file identified
> by the random number it must request it again from the server. Works
> great where I need it!
>
> Ed
>
> On Mon, 20 Jan 2003, Chris Shiflett wrote:
>
> > --- Phil Powell <soazine
erols.com> wrote:
> > > I am using the following header() functions to force
> > > view.php to not cache:
> > >
> > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > > " GMT");
> > > header("Cache-Control: no-store, no-cache,
> > > must-revalidate");
> > > header("Cache-Control: post-check=0, pre-check=0",
> > > false);
> > > header("Pragma: no-cache");
> >
> > :-)
> >
> > I think you killed it.
> >
> > > However, when a user reuploads a file in manage.php, it
> > > does a form post onto manage.php and reuploads the file
> > > (which I verified works). However, when redirected via
> > > header() to view.php, they still see their OLD image
> > > file, NOT the new one! Unless I manually refresh the
> > > page, they never see it, until they manually refresh the
> > > page, then the new image file appears!
> >
> > Right.
> >
> > I think you are forgetting that the image is not really
> > part of the PHP resource. Meaning, this is the series of
> > events for a PHP script that refernces a single image
> > called bar.jpg using the <img> tag:
> >
> > 1. HTTP request sent for foo.php (Web client -> Web server)
> > 2. HTTP response sent that includes the output of foo.php
> > (Web server -> Web client)
> > 3. Web client (browser) notices <img> tag referenced in
> > the HTML.
> > 4. HTTP request sent for bar.jpg (Web client -> Web server)
> > 5. HTTP response sent that includes bar.jpg
> >
> > So, the headers that you are setting only matter for the
> > resource returned in step 2. Meaning, the HTML output of
> > foo.php is not cached. The image, since it is returned by
> > the Web server and not your PHP script, is cached.
> >
> > Chris
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
I would add the modification time of the file in question with
filetime($filename);
that way you will be sure to get a unique argurment.
Jim
----- Original Message -----
From: <ed
home.homes2see.com>
To: "Chris Shiflett" <shiflett
php.net>
Cc: "Phil Powell" <soazine
erols.com>; <php-general
lists.php.net>;
<talk
nyphp.org>
Sent: Monday, January 20, 2003 10:48 AM
Subject: Re: [PHP] Cannot show reuploaded image file on page unless manual
refresh
>
> Aha! Something I can chime in on. I happened across the same scenario a
> few months back. The list helped me then so I'll give back.
>
> Call the image using a random identifier.
>
> $rand = rand(1000, 9999);
>
> echo "<img src="http://someurl.com/image.jpg?$rand";
>
> Since the browser will more than likely not have the image file identified
> by the random number it must request it again from the server. Works
> great where I need it!
>
> Ed
>
> On Mon, 20 Jan 2003, Chris Shiflett wrote:
>
> > --- Phil Powell <soazine
erols.com> wrote:
> > > I am using the following header() functions to force
> > > view.php to not cache:
> > >
> > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > > " GMT");
> > > header("Cache-Control: no-store, no-cache,
> > > must-revalidate");
> > > header("Cache-Control: post-check=0, pre-check=0",
> > > false);
> > > header("Pragma: no-cache");
> >
> > :-)
> >
> > I think you killed it.
> >
> > > However, when a user reuploads a file in manage.php, it
> > > does a form post onto manage.php and reuploads the file
> > > (which I verified works). However, when redirected via
> > > header() to view.php, they still see their OLD image
> > > file, NOT the new one! Unless I manually refresh the
> > > page, they never see it, until they manually refresh the
> > > page, then the new image file appears!
> >
> > Right.
> >
> > I think you are forgetting that the image is not really
> > part of the PHP resource. Meaning, this is the series of
> > events for a PHP script that refernces a single image
> > called bar.jpg using the <img> tag:
> >
> > 1. HTTP request sent for foo.php (Web client -> Web server)
> > 2. HTTP response sent that includes the output of foo.php
> > (Web server -> Web client)
> > 3. Web client (browser) notices <img> tag referenced in
> > the HTML.
> > 4. HTTP request sent for bar.jpg (Web client -> Web server)
> > 5. HTTP response sent that includes bar.jpg
> >
> > So, the headers that you are setting only matter for the
> > resource returned in step 2. Meaning, the HTML output of
> > foo.php is not cached. The image, since it is returned by
> > the Web server and not your PHP script, is cached.
> >
> > Chris
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
I wonder if appending time() would be better... granular to a second and you save the filesystem lookup effort??
On Mon, 20 Jan 2003, Jim Lucas wrote:
> I would add the modification time of the file in question with
>
> filetime($filename);
>
> that way you will be sure to get a unique argurment.
>
> Jim
>
> ----- Original Message -----
> From: <ed
home.homes2see.com>
> To: "Chris Shiflett" <shiflett
php.net>
> Cc: "Phil Powell" <soazine
erols.com>; <php-general
lists.php.net>;
> <talk
nyphp.org>
> Sent: Monday, January 20, 2003 10:48 AM
> Subject: Re: Cannot show reuploaded image file on page unless manual
> refresh
>
>
> >
> > Aha! Something I can chime in on. I happened across the same scenario a
> > few months back. The list helped me then so I'll give back.
> >
> > Call the image using a random identifier.
> >
> > $rand = rand(1000, 9999);
> >
> > echo "<img src="http://someurl.com/image.jpg?$rand";
> >
> > Since the browser will more than likely not have the image file identified
> > by the random number it must request it again from the server. Works
> > great where I need it!
> >
> > Ed
> >
> > On Mon, 20 Jan 2003, Chris Shiflett wrote:
> >
> > > --- Phil Powell <soazine
erols.com> wrote:
> > > > I am using the following header() functions to force
> > > > view.php to not cache:
> > > >
> > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > > > " GMT");
> > > > header("Cache-Control: no-store, no-cache,
> > > > must-revalidate");
> > > > header("Cache-Control: post-check=0, pre-check=0",
> > > > false);
> > > > header("Pragma: no-cache");
> > >
> > > :-)
> > >
> > > I think you killed it.
> > >
> > > > However, when a user reuploads a file in manage.php, it
> > > > does a form post onto manage.php and reuploads the file
> > > > (which I verified works). However, when redirected via
> > > > header() to view.php, they still see their OLD image
> > > > file, NOT the new one! Unless I manually refresh the
> > > > page, they never see it, until they manually refresh the
> > > > page, then the new image file appears!
> > >
> > > Right.
> > >
> > > I think you are forgetting that the image is not really
> > > part of the PHP resource. Meaning, this is the series of
> > > events for a PHP script that refernces a single image
> > > called bar.jpg using the <img> tag:
> > >
> > > 1. HTTP request sent for foo.php (Web client -> Web server)
> > > 2. HTTP response sent that includes the output of foo.php
> > > (Web server -> Web client)
> > > 3. Web client (browser) notices <img> tag referenced in
> > > the HTML.
> > > 4. HTTP request sent for bar.jpg (Web client -> Web server)
> > > 5. HTTP response sent that includes bar.jpg
> > >
> > > So, the headers that you are setting only matter for the
> > > resource returned in step 2. Meaning, the HTML output of
> > > foo.php is not cached. The image, since it is returned by
> > > the Web server and not your PHP script, is cached.
> > >
> > > Chris
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Tried that too, dude.. now the files are replicating themselves in the /profile/images folder! I am supposed to delete the old file and replace it with the new file, but instead I have old file & new file, and the association between profile and image is incorrect.
Phil
"Philip Hallstrom" <philip
adhesivemedia.com> wrote in message
news:20030120161008.Y52132-100000
cypress.adhesivemedia.com...
> I wonder if appending time() would be better... granular to a second and
> you save the filesystem lookup effort??
>
> On Mon, 20 Jan 2003, Jim Lucas wrote:
>
> > I would add the modification time of the file in question with
> >
> > filetime($filename);
> >
> > that way you will be sure to get a unique argurment.
> >
> > Jim
> >
> > ----- Original Message -----
> > From: <ed
home.homes2see.com>
> > To: "Chris Shiflett" <shiflett
php.net>
> > Cc: "Phil Powell" <soazine
erols.com>; <php-general
lists.php.net>;
> > <talk
nyphp.org>
> > Sent: Monday, January 20, 2003 10:48 AM
> > Subject: Re: Cannot show reuploaded image file on page unless manual
> > refresh
> >
> >
> > >
> > > Aha! Something I can chime in on. I happened across the same scenario
a
> > > few months back. The list helped me then so I'll give back.
> > >
> > > Call the image using a random identifier.
> > >
> > > $rand = rand(1000, 9999);
> > >
> > > echo "<img src="http://someurl.com/image.jpg?$rand";
> > >
> > > Since the browser will more than likely not have the image file
identified
> > > by the random number it must request it again from the server. Works
> > > great where I need it!
> > >
> > > Ed
> > >
> > > On Mon, 20 Jan 2003, Chris Shiflett wrote:
> > >
> > > > --- Phil Powell <soazine
erols.com> wrote:
> > > > > I am using the following header() functions to force
> > > > > view.php to not cache:
> > > > >
> > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > > > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > > > > " GMT");
> > > > > header("Cache-Control: no-store, no-cache,
> > > > > must-revalidate");
> > > > > header("Cache-Control: post-check=0, pre-check=0",
> > > > > false);
> > > > > header("Pragma: no-cache");
> > > >
> > > > :-)
> > > >
> > > > I think you killed it.
> > > >
> > > > > However, when a user reuploads a file in manage.php, it
> > > > > does a form post onto manage.php and reuploads the file
> > > > > (which I verified works). However, when redirected via
> > > > > header() to view.php, they still see their OLD image
> > > > > file, NOT the new one! Unless I manually refresh the
> > > > > page, they never see it, until they manually refresh the
> > > > > page, then the new image file appears!
> > > >
> > > > Right.
> > > >
> > > > I think you are forgetting that the image is not really
> > > > part of the PHP resource. Meaning, this is the series of
> > > > events for a PHP script that refernces a single image
> > > > called bar.jpg using the <img> tag:
> > > >
> > > > 1. HTTP request sent for foo.php (Web client -> Web server)
> > > > 2. HTTP response sent that includes the output of foo.php
> > > > (Web server -> Web client)
> > > > 3. Web client (browser) notices <img> tag referenced in
> > > > the HTML.
> > > > 4. HTTP request sent for bar.jpg (Web client -> Web server)
> > > > 5. HTTP response sent that includes bar.jpg
> > > >
> > > > So, the headers that you are setting only matter for the
> > > > resource returned in step 2. Meaning, the HTML output of
> > > > foo.php is not cached. The image, since it is returned by
> > > > the Web server and not your PHP script, is cached.
> > > >
> > > > Chris
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
i think you missunderstood what I said.
in the image tag that you create to display the image, you could do this
<img src='/path/to/image/myfile.jpg?<?=filetime($filename)?>'>
that would make the URL different when each page time the image was replaced.
I would use filetime() because it would not cause extra downloads if the file wasn't different.
if someone looked at the file 2 seconds apart and it didn't change, it was waisted time and bandwidth down loading the file again.
Jim
----- Original Message -----
From: "Philip Hallstrom" <philip
adhesivemedia.com>
To: <php-general
lists.php.net>
Sent: Monday, January 20, 2003 4:11 PM
Subject: [PHP] Re: Cannot show reuploaded image file on page unless manual
refresh
> I wonder if appending time() would be better... granular to a second and
> you save the filesystem lookup effort??
>
> On Mon, 20 Jan 2003, Jim Lucas wrote:
>
> > I would add the modification time of the file in question with
> >
> > filetime($filename);
> >
> > that way you will be sure to get a unique argurment.
> >
> > Jim
> >
> > ----- Original Message -----
> > From: <ed
home.homes2see.com>
> > To: "Chris Shiflett" <shiflett
php.net>
> > Cc: "Phil Powell" <soazine
erols.com>; <php-general
lists.php.net>;
> > <talk
nyphp.org>
> > Sent: Monday, January 20, 2003 10:48 AM
> > Subject: Re: Cannot show reuploaded image file on page unless manual
> > refresh
> >
> >
> > >
> > > Aha! Something I can chime in on. I happened across the same scenario
a
> > > few months back. The list helped me then so I'll give back.
> > >
> > > Call the image using a random identifier.
> > >
> > > $rand = rand(1000, 9999);
> > >
> > > echo "<img src="http://someurl.com/image.jpg?$rand";
> > >
> > > Since the browser will more than likely not have the image file
identified
> > > by the random number it must request it again from the server. Works
> > > great where I need it!
> > >
> > > Ed
> > >
> > > On Mon, 20 Jan 2003, Chris Shiflett wrote:
> > >
> > > > --- Phil Powell <soazine
erols.com> wrote:
> > > > > I am using the following header() functions to force
> > > > > view.php to not cache:
> > > > >
> > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> > > > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") .
> > > > > " GMT");
> > > > > header("Cache-Control: no-store, no-cache,
> > > > > must-revalidate");
> > > > > header("Cache-Control: post-check=0, pre-check=0",
> > > > > false);
> > > > > header("Pragma: no-cache");
> > > >
> > > > :-)
> > > >
> > > > I think you killed it.
> > > >
> > > > > However, when a user reuploads a file in manage.php, it
> > > > > does a form post onto manage.php and reuploads the file
> > > > > (which I verified works). However, when redirected via
> > > > > header() to view.php, they still see their OLD image
> > > > > file, NOT the new one! Unless I manually refresh the
> > > > > page, they never see it, until they manually refresh the
> > > > > page, then the new image file appears!
> > > >
> > > > Right.
> > > >
> > > > I think you are forgetting that the image is not really
> > > > part of the PHP resource. Meaning, this is the series of
> > > > events for a PHP script that refernces a single image
> > > > called bar.jpg using the <img> tag:
> > > >
> > > > 1. HTTP request sent for foo.php (Web client -> Web server)
> > > > 2. HTTP response sent that includes the output of foo.php
> > > > (Web server -> Web client)
> > > > 3. Web client (browser) notices <img> tag referenced in
> > > > the HTML.
> > > > 4. HTTP request sent for bar.jpg (Web client -> Web server)
> > > > 5. HTTP response sent that includes bar.jpg
> > > >
> > > > So, the headers that you are setting only matter for the
> > > > resource returned in step 2. Meaning, the HTML output of
> > > > foo.php is not cached. The image, since it is returned by
> > > > the Web server and not your PHP script, is cached.
> > > >
> > > > Chris
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
On Mon, 20 Jan 2003, Phil Powell wrote:
> I am using the following header() functions to force view.php to not cache: > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 > header("Cache-Control: post-check=0, pre-check=0", false); > header("Pragma: no-cache"); // HTTP/1.0
view.php will never be cached ...
> However, when a user reuploads a file in manage.php, it does a form post > onto manage.php and reuploads the file (which I verified works). > However, when redirected via header() to view.php, they still see their > OLD image file, NOT the new one! Unless I manually refresh the page, > they never see it, until they manually refresh the page, then the new > image file appears!
but you failed to address the caching of images in any of your code or setup. The cache headers on the view.php script have /no/ affect on anything but view.php. You're fighting the communication betweneen the browser and the web server, so configure one or the other to play nicely.
- Disable caching in your browser. - Configure your web server to include cache-control & expires headers on all pertinent image requests. (For example, see mod_expires for Apache: http://httpd.apache.org/docs/mod/mod_expires.html)
In lieu of those, change the way you handle uploads.
Instead of using the exact filename of the uploaded file, rename the file slightly, to include a timestamp or some other changing identifier each time the file is uploaded. For exampple, when myImage.jpg is uploaded, save it as myImage-001.jpg the first time, myImage-002.jpg the second time.
g.luck, ~Chris
attached mail follows:
why not just call date('m') to get the month?
justin
attached mail follows:
Estás guardando el archivo con extensión php??
Ezequiel
-----Mensaje original-----
De: Rot Alvarez [mailto:ralvarez
exploraiquique.cl]
Enviado el: Lunes, 20 de Enero de 2003 02:21 p.m.
Para: php-general
lists.php.net
Asunto: [PHP] ayuda...solo se ve el código cuando ejecuto los script
Subo los script y solo veo código...q puedo hacer ayuda
_____________________________________________________________ Registra gratis tu cuenta email en http://www.exploraiquique.cl
_____________________________________________________________
Select your own custom email address for FREE! Get you
yourchoice.com w/No
Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I'm having a day, gang!
I have done nothing to my code and now is_uploaded_file is constantly false, even when uploading a file every time. I dunno what to do, would someone want to look at my code and tell me what I did wrong; I'm out of ideas.
Phil
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
sure...we could look at your code if you showed it to us. Other than seeing it I'd say check 'register_globals'... HTH! ~Paul
On Monday 20 January 2003 05:27 pm, Phil Powell wrote: > I'm having a day, gang! > > I have done nothing to my code and now is_uploaded_file is constantly > false, even when uploading a file every time. I dunno what to do, would > someone want to look at my code and tell me what I did wrong; I'm out of > ideas. > > Phil
- --
~Paul Nicholson
Design Specialist
WebPower Design
paul
webpowerdesign.net
www.webpowerdesign.net
"The web....the way you want it!"
"It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE+LHibDyXNIUN3+UQRAvo0AKCAoCOjj0laMSUPEhqvH1EyGLvr7gCePfc0 29Eip+/Liu2BlBCxRRkrvZc= =eSjL -----END PGP SIGNATURE-----
attached mail follows:
Hi all I am sorry for the very simple question but I can't doing this.
I have a text like this:
$text=" <!-- 1 --> this is January <!-- 2 --> this is February <!-- 3 --> this is March <!-- 4 --> this is April ";
OK.. i want to show e.g. "this is January" in my var $sub_text.
How can i doing this using a regular expressions?
<?php
ereg("(help-me-with-a-regulars-expressions-sentence)",text,$sub_text); echo $sub_text[0];
?>
thanks a lot
________________________________________________________
Juan Pablo Aqueveque <juque
uct.cl>
attached mail follows:
> I have a text like this: > > $text=" <!-- 1 --> this is January <!-- 2 --> this is February <!-- 3 --> > this is March <!-- 4 --> this is April "; > > OK.. i want to show e.g. "this is January" in my var $sub_text. > > How can i doing this using a regular expressions?
This seems to work.
preg_match_all("/<!-- [0-9]+ -->([a-z ]+)/i",$text,$matches);
$matches will be an array with the values your after in it. Do a print_r() on it to see how it's structured.
Or, if you're text is always like that, you could just match what's between the > and < characters, too.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
We seem to get one every week of people asking about free PHP hosting so I went looking for all those people and found this off the link section from php.net:
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: tim
hitcho.com.au
attached mail follows:
hey guys, I was wondering if you can see why i cant insert the info into a table, right now its Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site12/fst/var/www/html/Create_Account.php:8) in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 10 http://www.ultimatefootballleague.com/Create_Account.phps can anyone help me get this working thanks. and let me know what i did wrong. Karl
attached mail follows:
Move this below to after your php logic:
<html> <head> <title>Add a User</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: tim
hitcho.com.au
-----Original Message-----
From: Karl James [mailto:karl.james
verizon.net]
Sent: Monday, 20 January 2003 1:59 PM
To: php
Subject: [PHP] login script fix help needed
hey guys,
I was wondering if you can see why i cant insert the info into a table,
right now its
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site12/fst/var/www/html/Create_Account.php:8) in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 10
http://www.ultimatefootballleague.com/Create_Account.phps
can anyone help me get this working thanks. and let me know what i did wrong.
Karl
____________________________________________________ IncrediMail - Email has finally evolved - Click Here
attached mail follows:
--- Karl James <karl.james
verizon.net> wrote:
> Warning: Cannot add header information - headers already
> sent by (output started at
>
/home/virtual/site12/fst/var/www/html/Create_Account.php:8)
> in
/home/virtual/site12/fst/var/www/html/Create_Account.php
> on line 10
This means you have something on line 10 of Create_account.php that sends headers, but PHP cannot because you have something on line 8 that causes output.
Chris
attached mail follows:
Hi all.
I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's impractical to insist that they must.) The files are received, but altered -- they are prepended with binary data which makes them difficult to deal with in an elegant automated way.
No doubt this is a mime type issue, as the files are received as type "application/x-macbinary" when sent from OSX Explorer. Is there any way to force plain text, or raw data? All I want to happen is for the files to be uploaded completely unchanged.
Btw, this happens with PHP 4.2.3 on OSX (entropy.ch), and with the latest 4.3 on OpenBSD.
Thanks,
Alex
af
ax-im.com
attached mail follows:
I am converting an ASP page to PHP and have difficulties in using PHP since I am new to it. I have an ASP code that would redirect page-viewer to respective page base on the input entered by viewer. How do I do this using PHP? Also, in ASP, there are features like Server.Transfer and Server.Execute that transfer control to another page.. Please advice and thanks in advance.
attached mail follows:
> I am converting an ASP page to PHP and have difficulties in using PHP > since > I am new to it. I have an ASP code that would redirect page-viewer to > respective page base on the input entered by viewer. How do I do this > using > PHP? Also, in ASP, there are features like Server.Transfer and > Server.Execute that transfer control to another page.. Please advice and > thanks in advance.
You'll need to use the header() function.
Header("Location: http://www.domain.com/file.php");
You must call this before any output to the browser or use output buffering. More information is available in the manual.
www.php.net/header
More than likely the ASP equivalents were wrappers to this header call.
---John Holmes...
attached mail follows:
Hi
OS: Debian Linux (Woody), kernel 2.2.20 PHP: v4.1.2
I'm having some troubles with my sessions, when the page is sent to the visitor, it sometimes stops after ½ the page or so. 90% of the times, it works perfectly to visit the page, so this appears to be totally random. However, I have reason to believe it has something to do with my sessions, I have written a custom session lib which works with MySQL, and then set it up with session_set_save_handler()
Now, I checked the error logs of my Apache HTTP, and it's filled with [Mon Jan 20 15:20:54 2003] [notice] child pid 19500 exit signal Segmentation fault (11) [Mon Jan 20 15:20:54 2003] [notice] child pid 19399 exit signal Segmentation fault (11) FATAL: emalloc(): Unable to allocate -916562933 bytes [Mon Jan 20 15:21:02 2003] [notice] child pid 19499 exit signal Segmentation fault (11) [Mon Jan 20 15:21:20 2003] [notice] child pid 19401 exit signal Segmentation fault (11) [Mon Jan 20 15:21:32 2003] [notice] child pid 19514 exit signal Segmentation fault (11) [Mon Jan 20 15:21:35 2003] [notice] child pid 19403 exit signal Segmentation fault (11)
The reason to why I'm sure it's PHP is the "emalloc()" line, which I'm told only can be generated by PHP. Now, I'm wondering if this is a know bug, or am I doing something wrong?
In short: The content stream (HTML stream) is interrupted, probably because of a segment fault caused by PHP Session functions. Is there a way to work around this bug without performing a complete upgrade? If this has already been fixed in a newer version, which version do I need to get? 4.3.0 is not really an option to me, since I'm running APT-GET, their latest version is 4.1.2 (stable) and 4.2.6 (unstable) (or something)
Code I use to setup the sessions: session_start(); session_register("SESSION");
if (!isset($SESSION)) { $SESSION = array(); $SESSION["submitdata"] = array(); $SESSION["addr"] = $REMOTE_ADDR; $SESSION["user"] = user_auth($_COOKIE['replayuser'], $_COOKIE['replaypass']); }
# Prevent Session hi-jacking, only allow people from the IP who created the session, or else # re-auth user if ($SESSION["addr"] != $REMOTE_ADDR) { $SESSION["user"] = user_auth($_COOKIE['replayuser'], $_COOKIE['replaypass']); $SESSION["addr"] = $REMOTE_ADDR; }
A quick reply is appreciated! Thanks in advance
attached mail follows:
Hi,
I had this problem a few weeks back. The host changed the sessions from 'mm' to 'files' in php.ini and restarted, and all was ok...
not sure of the reasons behind the faults, but I had this EXACT problem (with standard session stuff).
Justin
on 21/01/03 2:29 AM, Blaster (blaster
blaster.nu) wrote:
> Hi > > OS: Debian Linux (Woody), kernel 2.2.20 > PHP: v4.1.2 > > I'm having some troubles with my sessions, when the page is sent to the > visitor, it sometimes stops after ½ the page or so. 90% of the times, it > works perfectly > to visit the page, so this appears to be totally random. However, I have > reason to believe it has something to do with my sessions, I have written a > custom session > lib which works with MySQL, and then set it up with session_set_save_handler() > > Now, I checked the error logs of my Apache HTTP, and it's filled with > [Mon Jan 20 15:20:54 2003] [notice] child pid 19500 exit signal > Segmentation fault (11) > [Mon Jan 20 15:20:54 2003] [notice] child pid 19399 exit signal > Segmentation fault (11) > FATAL: emalloc(): Unable to allocate -916562933 bytes > [Mon Jan 20 15:21:02 2003] [notice] child pid 19499 exit signal > Segmentation fault (11) > [Mon Jan 20 15:21:20 2003] [notice] child pid 19401 exit signal > Segmentation fault (11) > [Mon Jan 20 15:21:32 2003] [notice] child pid 19514 exit signal > Segmentation fault (11) > [Mon Jan 20 15:21:35 2003] [notice] child pid 19403 exit signal > Segmentation fault (11) > > The reason to why I'm sure it's PHP is the "emalloc()" line, which I'm told > only can be generated by PHP. Now, I'm wondering if this is a know bug, or > am I doing > something wrong? > > In short: > The content stream (HTML stream) is interrupted, probably because of a > segment fault caused by PHP Session functions. Is there a way to work > around this bug > without performing a complete upgrade? If this has already been fixed in a > newer version, which version do I need to get? 4.3.0 is not really an > option to me, since > I'm running APT-GET, their latest version is 4.1.2 (stable) and 4.2.6 > (unstable) (or something) > > Code I use to setup the sessions: > session_start(); > session_register("SESSION"); > > if (!isset($SESSION)) { > $SESSION = array(); > $SESSION["submitdata"] = array(); > $SESSION["addr"] = $REMOTE_ADDR; > $SESSION["user"] = user_auth($_COOKIE['replayuser'], > $_COOKIE['replaypass']); > } > > # Prevent Session hi-jacking, only allow people from the IP who created the > session, or else > # re-auth user > if ($SESSION["addr"] != $REMOTE_ADDR) { > $SESSION["user"] = user_auth($_COOKIE['replayuser'], $_COOKIE['replaypass']); > $SESSION["addr"] = $REMOTE_ADDR; > } > > A quick reply is appreciated! Thanks in advance > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- > [This E-mail scanned for viruses] > >
attached mail follows:
does anyone have the code to where i can have the time printed on my home page like for example Monday, January 19, 2003 also I want to have it state when the users login in it says welcome back, (name) any advise would be fantastic? Thanks Karl
attached mail follows:
Please post in raw text, not HTML.
<?php echo date('d m y'); ?>
look in the manual to decide what format you need to replace 'd m y' with:
The welcome back bit all depends on cookies, sessions, how your login scripts work, etc etc.
Justin
on 20/01/03 12:46 PM, Karl James (karl.james
verizon.net) wrote:
> does anyone have the code to where i can have the time > > printed on my home page like for example > > > > > > Monday, January 19, 2003 > > > > also I want to have it state when the users login in > > it says > > welcome back, (name) > > > > any advise would be fantastic? > > > > Thanks Karl
attached mail follows:
> does anyone have the code to where i can have the time > printed on my home page like for example > Monday, January 19, 2003
The PHP Manual has this code, under the date() function (www.php.net/date).
echo date ("l, F j, Y");
> also I want to have it state when the users login in > it says > welcome back, (name)
The PHP Manual can help you out on this one, too: www.php.net/echo or www.php.net/ print
echo "welcome back, $username";
attached mail follows:
Hi Karl
First up, would you mind posting your messages in plain text instead of html format? It's just a courtesy to the rest of us.
> does anyone have the code to where i can have the time > printed on my home page like for example > > Monday, January 19, 2003
Sure, check out the date() function in the php manual - you can output current date in just about any format you care to choose.
Something to consider though, the date that you get is based on the date on the server - so if your server is in a different time zone to you it'll look odd, ditto for someone viewing your page from a different time zone. Of course, if you and most people browsing your page are in the same time zone that won't matter. Also, you may want to display it that way anyhow (I do it on some of my web sites to show what time it is where the business who owns the site is located).
If you actually want to display local time for the person viewing the web page then you'll need to use javascript and grab local date/time from the local computer.
> also I want to have it state when the users login in > it says welcome back, (name)
First thing you need to do is decide how you're going to store that information. Are you going to store user information in cookies? In a database? Flat files? Are you going to have the person log in before you display the welcome? Or are you trying to pick it up automatically? How complex and how reliable do you want to have this capability?
> any advise would be fantastic?
If you check the manual, particularly the fully annotated version at http://www.php.net/ you'll find a wealth of examples and code snippets that'll help you out.
CYA, Dave
attached mail follows:
I get this error on reboot, and I keep getting this error unless I restart apache. now, I've tried putting pauses in to make apache wait to start (using scripts & sleep commands), but I keep having this problem unless I log into the system & restart it.
does anybody know the possible cause to this problem, or how I can work around / solve this?
attached mail follows:
ok everybody, I felt like I kind of had a brain fart... *blush*
it dawned on my that some of the informix environment variables may not have been getting set. I added the following to the script I wrote, and it fixed the problem;
export INFORMIXDIR=/opt/informix export ODBCINI=/usr/local/etc/odbc.ini export INFORMIXSERVER=m_srv
"Jeff Bluemel" <jeff
domintcom.com> wrote in message
news:20030121015851.41244.qmail
pb1.pair.com...
> I get this error on reboot, and I keep getting this error unless I restart
> apache. now, I've tried putting pauses in to make apache wait to start
> (using scripts & sleep commands), but I keep having this problem unless I
> log into the system & restart it.
>
> does anybody know the possible cause to this problem, or how I can work
> around / solve this?
>
>
>
attached mail follows:
Balogne. Should I say more?
-Michael Smith --------------------------- Today's True Quotes for InDUHviduals: Some people's minds are like cement: all mixed up and permanently set...
--------------------------------------------
-----Original Message-----
From: Charles Cedeno [mailto:charlescedeno
mail.com]
Sent: Sunday, January 19, 2003 9:51 PM
To: php-general
lists.php.net
Subject: JOIN for FREE ... Learn and Earn
Hello:
My name is Charles Cedeno. I am now focusing in one online
opportunity.I have tried several of these opportunities full of hype
promising us thousands of dollars every month. I would get all excited
and
run to my family and friends with another "Great Money Maker ". It is a
sad fact that many people who are in need of additional income, are
being
victimized by these fly by night scam artists.
As a result of trying all these opportunities, I finally found
the
company which is true to their words. Not full of hype, but consistently
send me the monthly check. They have given me the best compensation plan
with their high % commission. I didn't have to perform some juggling act
to maintain some 60 to 40% balance in my legs. It is not a pyramid, so
there are no legs. It is not one of those binary compensation plan
failures either. Everyone earns commissions here. They are providing a
real service not the one that simply transfers wealth from the new
signups
to the people at the top.
When you join, you will have a team of up line sponsors who will
help
you succeed every step of the way. Instead of being left alone, you will
be guided step by step by real people, not those auto responders. Only
you
can make your own success together with the help of your sponsors. If
you
have 2 to 3 hours a day, you will be able to earn a full income in a few
months. And there is absolutely no limit as to how much you can earn. It
is designed to gain momentum after some time. But I prefer to avoid such
statements as "You will get rich". I read it everywhere and will not
allow
myself to sound like them. I experienced it personally, you can be
comfortable.
To get your FREE membership ID, send email to
charlescedeno
yahoo.com and
put "REGISTER ME FOR FREE" in the subject and your full name in the body
of your email. Also include the statement below in the body of your
email.
"By submitting a request for a FREE DHS Club membership I agree to
receive
emails from DHS Club for both their Consumer and Business
Opportunities."
I will then register you into the system. You will receive a
confirmation
email asking you to verify. Open it up and activate your free membership
immediately. Then set back and watch as your new business explodes.
Best regards,
Charles Cedeno
Note: You don't need to request for removal. This is a one-time email. Your email address will be automatically de-activated in our list if you don't respond to this mail.
attached mail follows:
Hi, I'm somtimes getting a green screen after a PHP-app (green background and backslashes in front of "'"-signes. When reloading this outputpage, the normal lay-out without backslashes is visible.
Why does this happen? Can I prevent it?
Martin
attached mail follows:
Hi Martin
Post some code snippets and the resultant output for us to look at
Martin (To confuse things <g>)
> -----Original Message-----
> From: martin [mailto:maus
wanadoo.fr]
> Sent: Tuesday, January 21, 2003 1:43 PM
> To: php-general
lists.php.net
> Subject: [PHP] getting green screen
>
>
> Hi,
> I'm somtimes getting a green screen after a PHP-app (green
> background and
> backslashes in front of "'"-signes. When reloading this
> outputpage, the
> normal lay-out without backslashes is visible.
>
> Why does this happen? Can I prevent it?
>
> Martin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
http://www.ultimatefootballleague.com/Create_Account.phps Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site12/fst/var/www/html/Create_Account.php:2) in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 4 I cant figure this out! help some one please im trying to get the form info inserted to my table after filling it out! thanks Karl
attached mail follows:
PLEASE don't post in HTML/Rich Text
sheeesh!
Justin
on 20/01/03 2:18 PM, Karl James (karl.james
verizon.net) wrote:
> http://www.ultimatefootballleague.com/Create_Account.phps > > > > Warning: Cannot add header information - headers already sent by (output > started at /home/virtual/site12/fst/var/www/html/Create_Account.php:2) in > /home/virtual/site12/fst/var/www/html/Create_Account.php on line 4 > > > > I cant figure this out! help some one please > > > > > > im trying to get the form info inserted to my table after filling it out! > > > > thanks Karl
attached mail follows:
--- Justin French <justin
indent.com.au> wrote:
> PLEASE don't post in HTML/Rich Text
>
> sheeesh!
>
> Justin
Agreed. Also, please quit asking the same question. I answered this one already, and I think someone else did as well. If you are still having trouble after reading our answers, at least let us know what the outcome was.
As it is, we have no reason to believe you are putting forth any effort.
Chris
> on 20/01/03 2:18 PM, Karl James (karl.james
verizon.net)
> wrote:
> >
> http://www.ultimatefootballleague.com/Create_Account.phps
> >
> > Warning: Cannot add header information - headers
> > already sent by (output started at
>
/home/virtual/site12/fst/var/www/html/Create_Account.php:2)
> in
> /home/virtual/site12/fst/var/www/html/Create_Account.php
> on line 4
attached mail follows:
Gracias a los q me han respondido..... Si cacho los <?...pero tambien el server me arroja esto con los forms y sigo biendo código en mi pc y el server.... The requested method POST is not allowed for the URL /chat/index.php.
_____________________________________________________________ Registra gratis tu cuenta email en http://www.exploraiquique.cl
_____________________________________________________________
Select your own custom email address for FREE! Get you
yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
attached mail follows:
Can someone please tell me why I'm getting this error:
*Fatal error*: Call to undefined function: mysql_connect() in */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on line *4
*mysql_connect was working a week or so ago, and I haven't made any changes to the servers configuration.
If someone could point me in the right direction I would love to get this function running again.
TIA
attached mail follows:
--- Tom Ray <tom
blazestudios.com> wrote:
> Can someone please tell me why I'm getting this error:
>
> *Fatal error*: Call to undefined function:
> mysql_connect() in
> */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on
> line *4
>
> *mysql_connect was working a week or so ago, and I
> haven't made any changes to the servers configuration.
That seems unlikely, but I'll take your word for it. Can you do a phpinfo() and let us know what the configure line is?
Also, does function_exists("mysql_connect") return false?
Chris
attached mail follows:
Karl
attached mail follows:
i don't get your point
-----Original Message-----
From: Karl James [mailto:karl.james
verizon.net]
Sent: Monday, January 20, 2003 11:59 AM
To: php
Subject: [PHP] is this better or is it still in html?
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi,
Monday, January 20, 2003, 1:59:17 PM, you wrote: KJ> Karl
KJ> -- KJ> PHP General Mailing List (http://www.php.net/) KJ> To unsubscribe, visit: http://www.php.net/unsub.php
its fine ... no html if thats what you mean :)
-- regards, Tom
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
It is better:)
On Sunday 19 January 2003 10:59 pm, Karl James wrote: > Karl
- --
~Paul Nicholson
Design Specialist
WebPower Design
paul
webpowerdesign.net
www.webpowerdesign.net
"The web....the way you want it!"
"It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE+LMkSDyXNIUN3+UQRAgauAJ0SQ3rPKvvh49BZoGUmdfxSqXdIZgCfbKWs IZIBz+7OBrREYPDPHKn5V5o= =SSw7 -----END PGP SIGNATURE-----
attached mail follows:
Parse error: parse error, unexpected '}' in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 5 http://www.ultimatefootballleague.com/Create_Account.phps I'm Trying to get the values of the form to echo out and to insert into my managers table. thanks karl
attached mail follows:
you miss a { at first if statement
-----Original Message-----
From: Karl James [mailto:karl.james
verizon.net]
Sent: Monday, January 20, 2003 12:28 PM
To: php
Subject: [PHP] Help with Error, I am Trying!!
Parse error: parse error, unexpected '}' in
/home/virtual/site12/fst/var/www/html/Create_Account.php on line 5
http://www.ultimatefootballleague.com/Create_Account.phps
I'm Trying to get the values of the form to echo out and to insert into my
managers table.
thanks karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
if (!$_POST['Team_Name'] || !$_POST['First_Name'] || !$_POST['Last_Name'] || !$_POST['Email'] || !$_POST['Username'] || !$_POST['Password']) header ("location: http://www.ultimatefootballleague.com/Create_Account.htm"); }
Change to:
if (!$_POST['Team_Name'] || !$_POST['First_Name'] || !$_POST['Last_Name'] || !$_POST['Email'] || !$_POST['Username'] || !$_POST['Password']) { header ("location: http://www.ultimatefootballleague.com/Create_Account.htm"); }
-- me----- Original Message ----- From: "Karl James" <karl.james
verizon.net> To: "php" <php-general
lists.php.net> Sent: Monday, January 20, 2003 6:28 AM Subject: [PHP] Help with Error, I am Trying!!
Parse error: parse error, unexpected '}' in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 5
http://www.ultimatefootballleague.com/Create_Account.phps
I'm Trying to get the values of the form to echo out and to insert into my managers table.
thanks karl
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Dear all I built a page which will import data from csv files to database, i want this task to be done automatically at the midnight of each date.
so does anyone know if there is any function work as similar as Scheduler in php? so php will run the script at specific time!
Thx a lot
Jack
jackchan
nedcor.com.hk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]