[PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header("Content-type: attachment/pdf"); header('Content-Type: application/pdf'); //header("Content-Type: application/octet-stream"); header("Cont

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Niklas Lampén
I vote for the first option. xD Niklas Jason Wong wrote: On Monday 20 September 2004 10:11, Afan Pasalic wrote: I have right now on my server php 4.3.4 without GD2 support. Actually, doesn't have GD support at all (nothing on phpinfo(); ). How can I "turn it on"? :) You can try performing an erot

Re: [PHP] math in PHP

2004-09-20 Thread Hatem Ben Yacoub
-Hatem - Original Message - From: "Whitehawk Stormchaser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 18, 2004 11:15 PM Subject: [PHP] math in PHP > Hi! > I have been trying to make some sort of calculator in PHP, but I have stumbled > on a problem... I have

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Marek Kilimajer
adwinwijaya wrote: Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header("Content-type: attachment/pdf"); header('Content-Type: application/pdf'); //header("Content-Type: application/octet-stream");

Re: [PHP] follow-up readdir behavior I cannot understand

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP General List, Regarding my the previous post -- the script had another bug in it which I felt silly for having posted since it's so obvious at the very top (a misisng "=" sign). However, I am still having a problem with this script practically copied and pasted from the PHP

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: I'm using this code to dynamically retrieve windows media files and send it to the browser. I thought the cache header would prevent the file from being cached. The only problems is the .wmv file still ends up in my IE temp files folder. How can I prevent this from happenin

Re: [PHP] Re: How can I re-code?

2004-09-20 Thread Marek Kilimajer
John Taylor-Johnston wrote: No one? Noone knows the structure of your table. Is the table properly normalized? From the original array it seems you need at least 2 tables to properly hold the information. I had an $array, with a list of authors and an entry number. Below is the code I used. No

[PHP] Yet another Apache 2 question

2004-09-20 Thread Duncan Maitland
I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be running reasonably well, however I've just become familiar with the potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3 some time soon. I have a question about a particular error I have received

Re: [PHP] Yet another Apache 2 question

2004-09-20 Thread Jason Wong
On Monday 20 September 2004 18:57, Duncan Maitland wrote: > I have a question about a particular error I have received with this setup: > > Many of the virtual hosts on my server have custom php_value settings. A > user has reported that a particular error occurred in a PHP script, and the > messa

Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi, (I know a lot has already been said but...) On Sat, 18 Sep 2004 17:37:59 -0400 Andre Dubuc <[EMAIL PROTECTED]> wrote: > Hi, > > After googling 'Web Etiquette, Top Posting', I still am > puzzled why some people on this list insist that top > posting is bad form, rather than personal preferen

Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
On Sun, 19 Sep 2004 06:11:17 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: > On Sunday 19 September 2004 05:37, Andre Dubuc wrote: [...] > > Seems to me much easier to scan the Subject, see how it's > > developing by reading the reply on the top, rather than > > have to wade through even snipped o

Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi, On Mon, 20 Sep 2004 04:01:47 +0300 "Octavian Rasnita" <[EMAIL PROTECTED]> wrote: > My email client (Outlook Express) puts a lot of information > at the top of the message automaticly, like: > > The signature, > --- original message --- > The From line > - The to line > - The date line > - The

Re: [PHP] PHP5 Book Recommendation?

2004-09-20 Thread - Edwin -
FWIW... On Sat, 18 Sep 2004 14:46:37 -0700 (PDT) Chris Shiflett <[EMAIL PROTECTED]> wrote: > --- Justin French <[EMAIL PROTECTED]> wrote: > > Can someone recommend a decent PHP5 book? > > I think Upgrading to PHP 5 is a particularly good book: > > http://www.oreilly.com/catalog/upgradephp5/ +1

[PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread Harlequin
Hi all. Hoping this might be relatively easy... I'm wondering if I can create a dropdown menu (ABCDE) by using a select statement and then populating this using PHP...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP

Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi Jason, On Sun, 19 Sep 2004 23:42:09 -0700 "Jason Davidson" <[EMAIL PROTECTED]> wrote: > are we still on top posting.. shessh. i only top post cuase > im lazy... Maybe we should talk about "one-liners" next time... Anyway, I'm sure many people will appreciate it if you trim your posts. Thank

Re: [PHP] List Etiquette

2004-09-20 Thread Peter Risdon
- Edwin - wrote: On Sun, 19 Sep 2004 06:11:17 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: On Sunday 19 September 2004 05:37, Andre Dubuc wrote: [...] Seems to me much easier to scan the Subject, see how it's developing by reading the reply on the top, rather than have to wade through even snipped o

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread - Edwin -
On Thu, 16 Sep 2004 13:02:31 +0100 "Harlequin" <[EMAIL PROTECTED]> wrote: > Hi all. > > Hoping this might be relatively easy... > > I'm wondering if I can create a dropdown menu > (ABCDE) by using a select statement and > then populating this using PHP...? Yes. Hint: Do a "foreach" on the resu

Re: [PHP] Yet another Apache 2 question

2004-09-20 Thread Marek Kilimajer
Duncan Maitland wrote: I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be running reasonably well, however I've just become familiar with the potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3 some time soon. I have a question about a particula

RE: [PHP] mysql_connect does not connect

2004-09-20 Thread Jay Blanchard
[snip] I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to the productive development of solutions, but the attitude in this group is not productive. I have the impression that the real reason you want answers is so that you can continue in unproductive

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Afan Pasalic
Ha, ha, ha (sarcastic...) 10 points for Jason and Niklas. Guys, please, if you don't want to help - keep your stupid comments for yourself. This is a place to help people, not make a laugh at them. Yes, I am beginner and I am not ashamed of it. But, you have to be ashamed of your comments. Afan --

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread Marek Kilimajer
Living in the past? Harlequin wrote: Hi all. Hoping this might be relatively easy... I'm wondering if I can create a dropdown menu (ABCDE) by using a select statement and then populating this using PHP...? Yes, it is relatively easy, and it is answered in virtualy every PHP book. I recomend you

RE: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jay Blanchard
[snip] Ha, ha, ha (sarcastic...) 10 points for Jason and Niklas. Guys, please, if you don't want to help - keep your stupid comments for yourself. This is a place to help people, not make a laugh at them. Yes, I am beginner and I am not ashamed of it. But, you have to be ashamed of your comments. [

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Ed Curtis
If you have a Linux box available here's something to try although it does have some required software. http://www.babysimon.co.uk/khtml2png/index.html There is also a link on the site for a commercial product for Windows that does the same thing. I can't endorse either one as I have not used

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Afan Pasalic
As you said: easy ace: I didn't call THEM stupid - I am not so stupid. It was about their COMMENTS. Also, I spend lat two days trying to figure out what would be solution for me and wasn't able. I cheked php manual (installation, imge functions and many more), "google-ed" many sites and - no cle

[PHP] Converting PHP code and db schema from PostgreSQL to MySQL

2004-09-20 Thread Stefan Moldoveanu
Hello, folks, Is there any tool/script to convert PostgreSQL code from PHP scripts into MySQL (pg_connect > mysql_connect and so forth)? I'm talking about a website with thousands of code lines. Also, any script which can convert PostgreSQL db data schema to MySQL? I only found tutorials for My

RE: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jay Blanchard
[snip] As you said: easy ace: I didn't call THEM stupid - I am not so stupid. It was about their COMMENTS. Also, I spend lat two days trying to figure out what would be solution for me and wasn't able. I cheked php manual (installation, imge functions and many more), "google-ed" many sites and - no

[PHP] Weird characters output

2004-09-20 Thread Angelo Zanetti
Hi all, I have recently moved a site over to a new server. Now certain characters are being replaced by weird characters. EG: the ' single quote is being replaced by a question mark and other characters are also affected. the information that contains these characters is inside a mysql database.

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Afan Pasalic
running phpinfo() I'm getting this: './configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/co

[PHP] Automating the process of creating overviews of data

2004-09-20 Thread Markus Fischer
Hi, [Warnung: pretty long email about trying to make use of MVC and php5] I'm seeking some input in (architectually) designed my code so I can reach the following: - "overview" from the subject is defined as a table rows/columns displaying simple or complex results from an sql query - it is part

RE: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jay Blanchard
[snip] running phpinfo() I'm getting this: no GD also found this: "... Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME : mysql pgsql sqlite gd imap ldap bcmath bz2 calendar cpdf crack curl cyrus db dba db

RE: [PHP] List Etiquette

2004-09-20 Thread Dan Joseph
Hi, > > Happy top posting, > > Have fun driving on the wrong side of the road. Hey that can be fun! Especially in crowded downtown areas. It's a real challenge! -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Afan Pasalic
Ok. That was my thought too. When I connect to my server (using putty) I found in root directory also gd.rpm/ gd-2.0.26/ gd-2.0.26.tar.gz means - I have gd installed on comp. Just have to recompile server, right? Jay Blanchard wrote: [snip] running phpinfo() I'm getting this: no GD also found thi

Re: [PHP] Converting PHP code and db schema from PostgreSQL to MySQL

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 16:18:26 +0300, Stefan Moldoveanu <[EMAIL PROTECTED]> wrote: > Is there any tool/script to convert PostgreSQL code from PHP scripts into > MySQL (pg_connect > mysql_connect and so forth)? > I'm talking about a website with thousands of code lines. In vi: :%s/pg_/mysql_/g > Als

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jason Wong
Please do not top post. On Monday 20 September 2004 21:56, Afan Pasalic wrote: > Ok. That was my thought too. > When I connect to my server (using putty) I found in root directory also > gd.rpm/ > gd-2.0.26/ > gd-2.0.26.tar.gz > means - I have gd installed on comp. Just have to recompile server, r

Re: [PHP] mysql_connect does not connect

2004-09-20 Thread Steve Brown
> I definitely mind. I don't believe in rewarding bad behavior. It is > reasonable to contribute to the productive development of solutions, but the > attitude in this group is not productive. I have the impression that the > real reason you want answers is so that you can continue in unproductive

Re: [PHP] filtering out text in a string

2004-09-20 Thread Burhan Khalid
Merlin wrote: Hi there, I want to filter out ip adresses out of a given text string. They are inside a logfile and values are seperated by tabs. I tryed sub_str which works fine if you know the length of the characters. In case of the ip adress this is not the case, since they are sometimes shor

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Marek Kilimajer
Afan Pasalic wrote: also found this: "... Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME : mysql pgsql sqlite gd ... then do it: # urpmi php-gd -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread Burhan Khalid
[snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread John Nichel
Burhan Khalid wrote: [snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in

[PHP] Creating a new window

2004-09-20 Thread Todd Cary
I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on top of the current window without having the surfer press a button? Here is my current onClick cod

[PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Todd -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Creating a new window

2004-09-20 Thread Jason Davidson
this is javascript question isnt it.. but to end the thread quickly... just dont put your js in the button.. just print it .. print "win-=open(...);win.focus();"; that wiill open a win when the browser parses it. Jason Todd Cary <[EMAIL PROTECTED]> wrote: > > I am using PHP to create

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Jason Davidson
Turn off magic_quotes_gpc in the php.ini file, they are bad bad abd.. magic_quotes_gpc 0 Jason Todd Cary <[EMAIL PROTECTED]> wrote: > > I have noticed that an apostrophy is automatically escaped with a "\", > or at least appears to be if the surfer enters an apostrophy in a text > field. Ha

Re: [PHP] Creating a new window

2004-09-20 Thread Miles Thompson
JavaScript, not a PHP question., but chekc out onload() MT At 11:42 AM 9/20/2004, Todd Cary wrote: I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on t

[PHP] Auto escaping an apostrophy...

2004-09-20 Thread John Legg
Todd, >From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. Note: If the magic_quotes_sybase dire

Re: [PHP] Creating a new window

2004-09-20 Thread John Nichel
Todd Cary wrote: I am using PHP to create a button on a window so that a new window is created when the button is clicked using javaScript. Is there a way to create a new window inline; that is create a window on top of the current window without having the surfer press a button? PHP cannot ope

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread John Nichel
Todd Cary wrote: I have noticed that an apostrophy is automatically escaped with a "\", or at least appears to be if the surfer enters an apostrophy in a text field. Has this always been the case or is there a setting in the php.ini file that contols this? Magic quotes. http://us2.php.net/manua

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Todd Cary
Many thanks to all. Todd John Legg wrote: Todd, From the PHP manual: magic_quotes_gpc boolean Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.

[PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have experimented with running all 90 at once and its a no go as it

Re: [PHP] Weird characters output

2004-09-20 Thread Wouter van Vliet
> I have recently moved a site over to a new server. Now certain > characters are being replaced by weird characters. EG: the ' single > quote is being replaced by a question mark and other characters are also > affected. the information that contains these characters is inside a > mysql database.

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Wouter van Vliet
> Hi, I have a bit of a cold today so I probably would have figured this > out for myself eventually but hey ;-) > > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Gryffyn, Trevor
Some great recommendations, but my first thought is wondering if you can interface with IE via COM or something. Or open the URL via IE and use the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it to the clipboard and do something funny that way. If I had time right now, I'd lo

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:45, Wouter van Vliet wrote: > > > > What I would like to do is fork off say 5-10 at a time and when one is > > done start another one in its place, as they all take different length > > of times to compleate. > > > > Any clues at where to start? Here is my fork all 90+ co

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
play around with popen() and stream_select() John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have e

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: > play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John -- PHP General Mailing List (http://www.php.n

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread raditha dissanayake
John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. not suprised. I have experimented with running all

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 16:36:51 +0100, John Wards <[EMAIL PROTECTED]> wrote: > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its a no go as it > just makes the server run

Re: [PHP] thumbnail of webpage

2004-09-20 Thread raditha dissanayake
Gryffyn, Trevor wrote: Some great recommendations, but my first thought is wondering if you can interface with IE via COM or something. Or open the URL via IE and use the Windows API to do a PRINT SCREEN or ALT-PRINT SCREEN to capture it to the clipboard and do something funny that way. Good i

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Daniel Guerrier
And how would I do 1. Configure webserver to send the right headers for .wmv files. --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Daniel Guerrier wrote: > > I'm using this code to dynamically retrieve > windows > > media files and send it to the browser. I thought > the > > cache header would

[PHP] New site: www.thephpwtf.com

2004-09-20 Thread Benson Wong
Hi People, I launched The PHP WTF last night. It is for showcasing examples of bad code we all run across while developing PHP or working with other people's code. Hopefully it'll help demonstrate good design from bad design. If you guys have any code samples that you would like to submit please

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread James Lobley
On Thu, 16 Sep 2004 13:02:31 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi all. > > Hoping this might be relatively easy... > > I'm wondering if I can create a dropdown menu (ABCDE) by > using a select statement and then populating this using PHP...? > > -- > - > M

[PHP] gmail accounts

2004-09-20 Thread Greg Donald
I have some gmail accounts of anyone wants one. Email me off list. Limited supply, first requests, etc.. And now for my php question: Which do you prefer, echo() or print() ? I find that after I've done a bunch of Perl coding and I'm back on some PHP work I use print. But then after I do a bu

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: And how would I do 1. Configure webserver to send the right headers for .wmv files. Depends on your webserver. For apache, place .htaccess file to the media directory with some Header directives, more here or on apache mailing list: http://httpd.apache.org/docs/mod/mod_hea

[PHP] RE: **[SPAM]** [PHP] gmail accounts

2004-09-20 Thread Jay Blanchard
[snip] Which do you prefer, echo() or print() ? [/snip] http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Correct context

2004-09-20 Thread Ed Curtis
Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AND $ro

[PHP] (0x00) in on line error message

2004-09-20 Thread Raghu
Hi, We migrated from PHP 4 to PHP 5 and we are seeing this error message("(0x00) in on line") on almost all pages. Has anyone seen this message? What is the cause of this message? Also I couldn't get the line number and file information also. Thanks in advance Raghu [EMAIL PROTECTED] -- PHP Ge

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Jay Blanchard
[snip] Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AN

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Ed Curtis
On Mon, 20 Sep 2004, Jay Blanchard wrote: > There are several ways here is one > > if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner > Change" != $entry) || ("Price Change" != $entry))) > > Note the parentheses to define preference order. That's what I was looki

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
Jay Blanchard wrote: [snip] Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
Mattias Thorslund wrote: Disclaimer: I have probably left a silly typo somewhere. Sure did: My old nemesis, end parethesis (either too few or too many). It should be: if("" != $row['photo_check']){ switch($entry){ case "Copy Change": case "Banner Change": case "Price Change":

[PHP] Re: gmail accounts

2004-09-20 Thread Markus Fischer
Greg Donald wrote: I have some gmail accounts of anyone wants one. Email me off list. Limited supply, first requests, etc.. I would be interested if there's still one left ;) And now for my php question: Which do you prefer, echo() or print() ? I find that after I've done a bunch of Perl coding a

RE: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Jay Blanchard
[snip] >There are several ways here is one > Longer but seems more readable to me. [/snip] Another way $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_array($entry)) && ("" != $row['photo_check'])) -- PHP General Mailing List (

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Gryffyn, Trevor
True, you'd have to run it on the web client end, but you can run IE on the server to access the HTML the server is err..serving. The server can also be a client, in other words. So your server can generate a thumbnail of what it's serving out by acting as a client for a second. As long as their

RE: [PHP] RE: Correct context

2004-09-20 Thread Jay Blanchard
[snip] Another way $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_array($entry)) && ("" != $row['photo_check'])) [/snip] Oops $arrFoo = array ( 'Copy Change', 'Banner Change', 'Price Change', ); if(!(in_ar

Re: [PHP] RE: Correct context

2004-09-20 Thread Mattias Thorslund
Jay Blanchard wrote: Oops Yeah, some of us (including myself) could use a php validator in our mail clients... Maybe a plugin for T-bird? /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] thumbnail of webpage

2004-09-20 Thread Stefan Holmes
> -Original Message- > From: raditha dissanayake [mailto:[EMAIL PROTECTED] > Sent: 18 September 2004 03:22 > To: Michael Mao > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] thumbnail of webpage > > Michael Mao wrote: > > > Is there a way to capture a snapshot of a html page and save it as a

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Jonathan Haddad
Stefan Holmes wrote: -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 18 September 2004 03:22 To: Michael Mao Cc: [EMAIL PROTECTED] Subject: Re: [PHP] thumbnail of webpage Michael Mao wrote: Is there a way to capture a snapshot of a html page and save it as

[PHP] Re: gmail accounts

2004-09-20 Thread Ricardo Cezar
I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > I have some gmail accounts of anyone wants one. Email me off list. > Limited supply, first requests,

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Michael Mao
Great link. This tool is exactly what I'm looking for. Thanks! On Mon, 20 Sep 2004 08:01:15 -0500 (EST), Ed Curtis <[EMAIL PROTECTED]> wrote: > > If you have a Linux box available here's something to try although it > does have some required software. > > http://www.babysimon.co.uk/khtml2png/in

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Ricardo Cezar wrote: I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] I have some gmail accounts of anyone wants one. Email me off list. Limited supply,

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Ricardo Cezar
Sorry, will never happen again! I was justing trying to help. :( "Rick Fletcher" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Ricardo Cezar wrote: > > I have some invitations too! If you wants one, ask me off list. > > Limited supply, first requests, etc, like Greg said! >

Re: [PHP] Re: gmail accounts

2004-09-20 Thread John Holmes
From: "Markus Fischer" <[EMAIL PROTECTED]> Which do you prefer, echo() or print() ? Albeit that, they're identical I think (both are core language construct, no real functions). Come on... all good bottom-posting-firewall-turning-off PHP programmers know that print() is a function and returns a v

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > Please stop talking about gmail invites on the list. Anyone who wants > one, or who has some to give away, just do a google search for a place > to get or give them. > > Sites like this one (the 3rd result for "free gm

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread John Nichel
Rick Fletcher wrote: Ricardo Cezar wrote: I have some invitations too! If you wants one, ask me off list. Limited supply, first requests, etc, like Greg said! "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] I have some gmail accounts of anyone wants one. Email me off

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 15:25:40 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > Come on... all good bottom-posting-firewall-turning-off PHP programmers know > that print() is a function and returns a value while echo does not. We're > all using templates, anyhow, so your code wouldn't have but one ech

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Aaron Gould
John Nichel wrote: Yeah...what he said. Don't you people dare try to be nice on this list. Here we are trying to compete with the qmail list for nastiness, and y'all try to do something nice. Jerks. Ahhh, you guys have been cracking me up the past several days. It's been a good week. :) --

[PHP] External Files

2004-09-20 Thread GH
Hi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] External Files

2004-09-20 Thread John Nichel
GH wrote: Hi I think I may know what's causing your problem, but just to be sure, can you provide just a bit more information? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] External Files (take 2)

2004-09-20 Thread GH
Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql.

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. [/snip] http://www.php.net/include -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] External Files (take 2)

2004-09-20 Thread Daniel Kushner
Hi Gary, Look up http://php.net/include It's just like "copy and pasting" the code in the external file in the one your including it into. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com ===

Re: [PHP] External Files (take 2)

2004-09-20 Thread Marek Kilimajer
GH wrote: Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to

Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: Hi... Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. I was thinking of making an external file bu

Re: [PHP] External Files (take 2)

2004-09-20 Thread GH
So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? On Mon, 20 Sep 2004 13:23:20 -0700, Daniel Kushner <[EMAIL PROTECTED]> wrote: > Hi Gary, > > Look up http://php.net/

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Put the entire connection string and error checking for the connection in the 'other file'. -- PHP Gen

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jesse Castro
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Something like this: Main file: includeFile.php Cheers, -jesse- -- PHP General Mailing List (htt

Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? Yes, you need to enclose it in opening/closing php tags. It will include the file inline, just as if you wr

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Rick Fletcher
Greg Donald wrote: On Mon, 20 Sep 2004 12:15:18 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: Please stop talking about gmail invites on the list. Anyone who wants one, or who has some to give away, just do a google search for a place to get or give them. Sites like this one (the 3rd result for

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 14:27:41 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > Greg Donald wrote: > I didn't reply to your email. The email I replied to mentioned nothing > related to PHP. Exactly.. you probably don't use a threaded email client, else you might have noticed the thread was on-topi

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
John Wards wrote: On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John Wanted to do something interesting

  1   2   >