Re: [PHP] How to stop images preloading in netscape?
Define the height and width for each graphic, otherwise how does the browser know how to draw the screen? With height/width netscape will allocate space for the missing images and fill them in as the files complete, without - it waits until all are done before drawing to the screen. MSIE gets around that by redrawing as it learns each images characteristics after completing each image download. On Mon, 13 Aug 2001, Mark Maggelet wrote: Date: Mon, 13 Aug 2001 15:27:59 -0700 From: Mark Maggelet [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] How to stop images preloading in netscape? On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost ([EMAIL PROTECTED]) wrote: I have a php page which generates a page of thumbnails from a database. In internet explorer all of the layout loads first, and the thumbnails appear one by one as they are downloaded. Netscape however seems to insist on downloading all images before displaying the page. This makes it appear very slow. How can I prevent this behaviour? cheers, seb use lowsrc and a low-res image. - Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Delaying Printed Output
Speaking off the top of my head, seems like a combination of html meta refresh and a variable that increments based on HTTP REFERRER=PHP_SELF could provide the effect you're looking for. Certainly you could meta refresh to new pages in sequence. Or of course just use an animated gif if static text. Have you looked into javascript/java? I doubt that you can do it solely within php as it parses once and delivers html. The connection betwixt the server and client is transaction and the client would have to initiate the call to update, unless the update was imbedded within and staged at the client. On Sat, 24 Mar 2001, CC Zona wrote: Date: Sat, 24 Mar 2001 11:06:02 -0800 From: CC Zona [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Delaying Printed Output In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Greg Scott) wrote: sleep(seconds); usleep(microseconds); I've tried those 2 functions, in an example like this: PRINT "Thisbr"; SLEEP(2) ; PRINT "Is abr"; SLEEP(2); PRINT "TEST"; But the way it works in the browser is to wait for a total of 4 seconds and then it displays all the text at once, not one line at a time - which is what I'm after. You might try using flush() after the prints. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and the MIME type - an Apache question
I think it might help if you elaborated a little more on what you mean by "parse out all of my PHP scripts to run a particular CGI script". Apache has to be set up so know how to handle php (mime types), but it almost sounds like you're trying to execute a CGI in place of a php file? Also, if this IS a question related to apache what operating system? Makes a big diff. On Fri, 9 Mar 2001, Richard S. Crawford wrote: Date: Fri, 09 Mar 2001 18:45:25 -0800 From: Richard S. Crawford [EMAIL PROTECTED] To: Yasuo Ohgaki [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] PHP and the MIME type - an Apache question Yes... Unfortunately, my question was not answered. I also added AddType text/php php to my httpd.conf file, but still no go. At 11:18 AM 3/10/01 +0900, Yasuo Ohgaki wrote: There is a great manual and FAQ. Did you read manual? FAQ? PHP Manual http://www.php.net/manual/en/ Install Section http://www.php.net/manual/en/installation.php FAQ http://www.php.net/FAQ.php Regards, Yasuo Ohgaki ""Richard S. Crawford"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't even know if this counts as a basic or an advanced question. Shows how much of a newbie I am. :) I'm trying to configure my Apache server to parse out all of my PHP scripts to run a particular CGI script when a PHP page is served. I know that in order to parse out HTML pages, I add this to my Apache configuration file: Action text/html [cgi script named here] What do I add to make it work for PHP pages? I tried Action text/html/php [cgi script named here] Help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- http://www.mossroot.com/index.php AIM Handle: Buffalo2K e-mail: [EMAIL PROTECTED] "When you lose the power to laugh at yourself, you lose the power to think straight." --Clarence Darrow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] config question
? phpinfo() ? On Mon, 5 Mar 2001 [EMAIL PROTECTED] wrote: Date: Mon, 5 Mar 2001 20:00:47 EST From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] config question My server admin is being stupid... magic_quotes_gpc have been turned off unexpectadly so phpMyAdmin aint working, as well as half my scripts. He says nothing has been changed so it must be my fault, is there a command in php to displays the PHP config options so i can show this mofo that they are off - Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Munging hidden/form variables
I would think you should be able to write a random string to a file when the form page is accessed, and carry a variable with the action then have the recipient compare. Presents other challenges but should give you that comforting feeling he was looking for. On Thu, 1 Mar 2001 [EMAIL PROTECTED] wrote: Date: Thu, 1 Mar 2001 16:18:08 MST From: [EMAIL PROTECTED] To: "Boget, Chris" [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Munging hidden/form variables Addressed to: "Boget, Chris" [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from "Boget, Chris" [EMAIL PROTECTED] Thu, 1 Mar 2001 14:26:16 -0600 --_=_NextPart_001_01C0A28D.E2F45248 Content-Type: text/plain; charset="iso-8859-1" It is possible (I've done it) to find out all the variables that make up a form on a particular site, generate a similar form on your site with that form's action being the CGI/PHP script that the particular site uses to process the form once submitted, modify the values for the form variables to be anything you want and submit the form that resides on your site. This will basically submit totally fabricated data to the foriegn site and possibly screw them up somehow and/or in some way. Is there any way to defend against this? Is there any way to ensure that when a form is submitted that the submission request originated from your site/domain and not somewhere else? No. There is no way to tell a clever programmer from a live human on the other end of an Internet connection. You may be able to make it harder, say making sure your form page is hit before the results are returned, but that is easy to defeat. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and iPlanet on Solaris
Sounds like the server doesn't have or recognize the mime type, ala on apache in srm.conf: application/x-httpd-php3 phtml php3 php I'm not familiar with iPlanet but on apache I would check the mime type definition, apache httpd.conf and make sure to restart the server to reload. On Wed, 28 Feb 2001, Montgomery-Recht, Evan wrote: Date: Wed, 28 Feb 2001 09:33:26 -0500 From: "Montgomery-Recht, Evan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] PHP and iPlanet on Solaris I got the latest snapshot of php to compile on solaris (4.0.4pl1 wouldn't). Anyways I edited the mime.types and obj.conf as described in the installation instructions, but right now it's trying to download the test.php file I created instead of processing. Is there anything not in the documentation that I need to add. thanks, evan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Daily Rotating Page
If on unix "man cron". Write a script to change a pointer and use cron to run the script. On Wed, 28 Feb 2001 [EMAIL PROTECTED] wrote: Date: Wed, 28 Feb 2001 20:30:47 EST From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Daily Rotating Page I have set up a template for a page that displays the featured product of the day. All data is stored in a mySQL db. So every day I want to feature a different product. Each product contains an entry in the db for picture, description, and hotlink. What would be the best way to go about this? Does anybody have any sample code on performing this specific task once a day? Your help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] newbie:cron job
Wen, I'm not clear on what you're looking for. You want to schedule something in cron to run a script that does what? Cron is a unix scheduling tool, via which you can trigger shell scripts to occur at specific intervals/points in time. Sounds like what you may want is a script that acts only after some other actions are complete. You could do that by building a script that checks periodically (presuming there is some trigger to check for) and effects only when found. For instance, you can build a unix shell script like this: #! /bin/tcsh /usr/local/bin/mysql -t -uUSERNAME -pPASSWORD DATABASE QUERY_INPUT select CRITERIA from TABLE; QUERY_INPUT then execute it via cron, piping the output to a file. Making it do what you want depends on what you want to do, and may require appropriate knowledge of cron, mysql and php. Start with "man cron", www.php.net and www.mysql.com. On Thu, 1 Mar 2001, Wen Ni Leong wrote: Date: Thu, 01 Mar 2001 11:07:30 +0800 From: Wen Ni Leong [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] Subject: [PHP] newbie:cron job I have created a program using PHP3 and MYSQL. I want to use cron job to automatic update the document become active after all the related document become active. Can you please give me some idea how to start? I really don't have any idea. Please teach me. Thanks Wendy Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Walking Through Mail Headers
On the surface this sounds like a job for procmail (www.procmail.org). On Mon, 26 Feb 2001, Jason wrote: Date: Mon, 26 Feb 2001 11:58:53 -0800 From: Jason [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Walking Through Mail Headers Hi, I need a way to walk through mail headers and search for a specific string in the subject. If the message contains the string, it will be forwarded to a different account, otherwise it will trigger an autoresponse with a certain message to the sender. Does anyone have any infomation on doing this, or can point me where to start. I think the thing I'm caught up on is how I walk through the mail headers in the mail file (We are on FreeBSD). Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Mail() Problems in a heterogenous network
Sounds like they have relay disabled on their SMTP server and the IP that your PHP is running on is not on an included network address. As them to verify that your ip address is ok. The mail server will accept locally destined mail but anything else is seen as a relay attempt (Spam) and blocked. In most cases ISPs and admins reject with complaint (which would help considerably in your case), in others they reject transparently by routing to /dev/null. On Mon, 26 Feb 2001, Parker, John (Snorkel) wrote: Date: Mon, 26 Feb 2001 16:02:32 -0600 From: "Parker, John (Snorkel)" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [PHP] Mail() Problems in a heterogenous network Ok. Here's the situation: I'm running PHP on a Unix (SGI) box with Apache as a module running an Intranet web server (call it inside.mydomain.com). Sendmail is running on the machine. I'm on a network with a windows Mail server (MS. Exchange 5.5) with (I'm told) appropriate SMTP services running (call it mail.mydomain.com). I'm using a mail class I downloaded from somewhere, which basically calls PHP's mail funciton. The behaviour is this: When I send mail from the webserver (running as [EMAIL PROTECTED]) to an inside address (same domain, i.e. [EMAIL PROTECTED]) I get everything just fine. I can even use the from feature in the mail class to make the mail appear to come from a real (or not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address. However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it gets dropped somewhere. Unfortunately those running the mailserver are unable/unwilling to help me track this down, so I've got to come to you guys with limited information and hope you have an answer. If it helps, here's the header of a message sent from inside.mydomain.com to an inside address. Thanks in advance. Received: from sneasv02.omniquip.textron.com (insidesnorkel.omniquip.textron.com [10.220.15.149]) by oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51 -0600 (CST) Date: Sat, 24 Feb 2001 11:13:51 -0600 (CST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: You\'ve been very good From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = b0c7d5a8cfe35ac094237730d7b4e46d6 ... ... .. John Parker --- John Parker, Senior Design Engineer Ph: 816/676-6419 Fax: 785/989-3556 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]