RE: [PHP] Netscape 4.7 with php gd, very slow
I have no problem with Netscape 4.7 when connecting to Windows 2000 running the same script. Also, I don't have any nested tables in the html. Any other ideas? Thanks, Harry --- Bob Lockie <[EMAIL PROTECTED]> wrote: > > >[snip] > >I'm trying to generate dynamic buttons with text > from mysql database. > >Everything is fine except that the images are > displaying very slow in > >Netscape 4.7. Internet Explorer, Netscape 6 and > Mozilla are very fast. I'm > >running Apache 1.3.26, PHP 4.2.2, GD 1.6.2 on > Linux. Also, I have the same > >scripts running in Windows 2000 and I don't have > this problem with Netscape. > >The following are the scripts: > > > >Has anyone experience this problem before? I'm not > sure whether Apache, > >PHP, or GD is causing this. > >[/snip] > > > >I am running various browsers and have never seen > this type of behavior. If > >the same script is good in IE, NS6, and Moz could > it be that there is > >something with NS4.7? I have just tested IE6, NS6, > Moz1.0, and NS4.7 > >accessing the same script on the same server and > saw no problems (save for > >NS4.7 barfing on some of the CSS). > > Check the generated HTML. > I think later browsers are more forgiving. > Are you using tables? > I think table rendering in NS4.7 was really slow. > > > __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Netscape 4.7 with php gd, very slow
Both are running Apache. I'm using the Windows machine as a development box. The web server and php configuration are very close. --- Bob Lockie <[EMAIL PROTECTED]> wrote: > > >I have no problem with Netscape 4.7 when connecting > to > >Windows 2000 running the same script. Also, I > don't > >have any nested tables in the html. Any other > ideas? > > > >Thanks, > >Harry > > > >--- Bob Lockie <[EMAIL PROTECTED]> wrote: > >> > >> >[snip] > >> >I'm trying to generate dynamic buttons with text > >> from mysql database. > >> >Everything is fine except that the images are > >> displaying very slow in > >> >Netscape 4.7. Internet Explorer, Netscape 6 and > >> Mozilla are very fast. I'm > >> >running Apache 1.3.26, PHP 4.2.2, GD 1.6.2 on > >> Linux. Also, I have the same > >> >scripts running in Windows 2000 and I don't have > >> this problem with Netscape. > >> >The following are the scripts: > >> > > >> >Has anyone experience this problem before? I'm > not > >> sure whether Apache, > >> >PHP, or GD is causing this. > >> >[/snip] > >> > > >> >I am running various browsers and have never > seen > >> this type of behavior. If > >> >the same script is good in IE, NS6, and Moz > could > >> it be that there is > >> >something with NS4.7? I have just tested IE6, > NS6, > >> Moz1.0, and NS4.7 > >> >accessing the same script on the same server and > >> saw no problems (save for > >> >NS4.7 barfing on some of the CSS). > >> > >> Check the generated HTML. > >> I think later browsers are more forgiving. > >> Are you using tables? > >> I think table rendering in NS4.7 was really slow. > > What web servers are you using? > Maybe they are returning different headers. > > > __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Authentication with sessions - Recommendation and suggestions?
Hi All, I'm trying to setup an authentication process and sessions to protect some of my pages for valid users only. The following are what I had in mind: login.php-- Protected Page" } else { header ( "location: http://server/login_page.php\n\n"; ); } ?> protected_page.php http://server/login_page.php\n\n"; ); } Can anyone give me any suggestions or recommendations? Is there any security concerns? Also, the session files are in a directory that is not world readable. Thanks in advance, Harry __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array session variable problem (register_global=off)
Hi All, I have register_global = off and I have problem retrieving array session variable. For example; Page1.php Page2.php None of these works. The session file does registered the array and variables. I can retrieve the array with the register_global on. Any ideas? Thanks, Harry __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] array session variable problem (register_global=off)
Thanks for your reply, I have no problem assigning variable. I just can't retrieve them. If I use $_SESSION[foo['bar']], I got this error in Apache log. [Wed Feb 20 16:44:50 2002] [error] PHP Parse error: parse error, expecting `']''. Any other idea? Thanks, Harry The code in the first file is correct if register_globals is on. Since it is off, remove the call to session_register() and just assign values directly to $_SESSION, e.g., $_SESSION[name['first']] = 'First Name'; Kirk > -Original Message- > From: Harry Yu [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 2:12 PM > To: [EMAIL PROTECTED] > Subject: [PHP] array session variable problem (register_global=off) > > > Hi All, > > I have register_global = off and I have problem > retrieving array session variable. For example; > > Page1.php > > > $name = array(); > session_register ("name"); > > $name[first] = "First Name"; > $name[last] = "Last Name"; > > ?> > > Page2.php > > > session_start(); > > echo $_SESSION[name['first']]; > echo $_SESSION[name][first]; > > ?> > > None of these works. The session file does registered > the array and variables. I can retrieve the array > with the register_global on. Any ideas? > > Thanks, > Harry > __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] array session variable problem (register_global=off)
Thanks Kirk, That works. Harry __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Specify php.ini per virtual host?
You can use the php_admin_value in your virtual host. For example: php_admin_value safe_mode 0 This will turn safe mode off for that virtual host. Hope this helps, Harry __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A Small Bug Giving Me A Big Headache
Does any of your values has an apostrophe in them? If there is, you will get a syntax error. Hope this helps, Harry __ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please help with code
You forgot to select the database that you want to insert. Ex: $db = mysql_select_db ( mydatabase ); Hope this helps, Harry --- "Denis L. Menezes" <[EMAIL PROTECTED]> wrote: > Hello friends, > > can someone tell me what is wrong with this code : > > > > > > > > > > > > > > > > > value="Submit"> > > > > $link=mysql_connect("localhost","myid","mypassword"); > if ($link){ > print "link id is $link"; > } else { > print "error connecting to database"; > } > $posted=time(); > $query="INSERT INTO news (newsid,title, author, > body, posted) > VALUES($newsid,$title, $author, $body, > UNIX_TIMESTAMP())"; > IF (mysql_query($query)){ > print "Row added to table"; > } else { > print "error adding row"; > } > ?> > > > It gives the link ID. But then gives "error adding > row" > > Thanks in advance > > Denis > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need some help too!
In you php.ini, change the SMTP to the Solaris mail server. Hope this help, Harry --- "Ryan F. Bayhonan" <[EMAIL PROTECTED]> wrote: > Good day to all. > > Just want to ask some help from you guys. > > I'h vaving problem with mail function. I'm currently > making a PHP > application that would be able to send mails to my > co-employee. My webserver > where my application reside runs on linux without a > sendmail appliation. > That is why the mail function fails to work. > > I don't want to install a sendmail program since our > office already have a > central mail server which runs on solaris. > > Is there a work around for my problem? > > Hope you could help me. > > Thank you very much. > > Ryan F. Bayhonan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php