Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Leonard Burton
On 6/15/07, Jiffy Slides Leonard Burton <[EMAIL PROTECTED]> wrote: HI Guys, If I enter my solution, I am sure to win! I have it figured out, but, with some of our new service offerings I don't know that I will have the time to bang out the code. If I don't enter the code I would love to share

Re: [PHP] Re: Extract specific div element from page

2007-06-15 Thread Anthony Hiscox
Oops, I accidentally sent this directly to CK, my apologies. Thank you for your replies. The reason that I didn't explore the JS route is because this will be running in the background, I didn't want to have to visit the page in any way. I went looking for an easy way to accomplish this in PHP bu

Re: [PHP] Extract specific div element from page

2007-06-15 Thread Myron Turner
Anthony Hiscox wrote: Hey folks, I need to pull the contents inside of a specific div out of a page, and write it to a separate file. In this instance I am taking everything inside of tags from a wordpress blog, this will give me only the content and not the menus, or other stuff. I need to d

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Dan
""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 6/15/07, revDAVE <[EMAIL PROTECTED]> wrote: Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would a

[PHP] Re: Extract specific div element from page

2007-06-15 Thread Dan
Or you could just use Javascript combined with PHP, just use javascript it's something like this document.getElementById('tagId').innerHtml that will give you the html(contents) of the tag you specify. Then just do something like document.form.value = document.getElementById('tagId').innerHtm

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Stut
tedd wrote: At 12:45 PM +0100 6/14/07, Stut wrote: Hi All, I've been asked to be a judge in a PHP competition, and I thought I'd let you all know about it. Zend have donated some prizes, including a copy of Zend Studio Professional with 1 year of support, so it's definitely worth entering. I

Re: [PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Dan
Right now the program isn't a dll it's a desktop application written in Delphi, but when I take the visual components out it will be Pascal, so I could compile it ot a dll. I want to emulate the same functionality the desktop application had, thus when the user uploads a file, the Pascal call

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Thanks for your help. Since it's a Delphi program and Delphi has the ability to build ISAPI applications I'm going to try and see if I can't turn my app into an ISAPI and run that since it has all the functionality I need and it'll run fast. But if that doesn't work out I'll try the solutions

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Tijnema
On 6/16/07, tedd <[EMAIL PROTECTED]> wrote: At 12:45 PM +0100 6/14/07, Stut wrote: >Hi All, > >I've been asked to be a judge in a PHP competition, and I thought >I'd let you all know about it. Zend have donated some prizes, >including a copy of Zend Studio Professional with 1 year of support, >so

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread tedd
At 12:45 PM +0100 6/14/07, Stut wrote: Hi All, I've been asked to be a judge in a PHP competition, and I thought I'd let you all know about it. Zend have donated some prizes, including a copy of Zend Studio Professional with 1 year of support, so it's definitely worth entering. It's also quit

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread tedd
At 6:56 PM -0400 6/15/07, Daniel Brown wrote: I don't think it's PAM-compliant to use a single-quote character in your passwords, Tedd. ;-P -- Daniel P. Brown Daniel: Bzzzet, thanks for trying. Let me explain again, maybe I did explain myself well. In the show-code folder (link below

Re: [PHP] generating an html intro text ...

2007-06-15 Thread tedd
At 11:39 AM +0200 6/14/07, Jochem Maas wrote: original string: "HELLO, my name is charlie brown! & I'm a little odd."; shorten text (32 'letters' required): "My name is charlie brown! & I'm "; the 32 'letter' length should therefore ignore the B and I tags and treat the & as a sin

Re: [PHP] GD Library and outputing image

2007-06-15 Thread tedd
At 9:17 PM +0100 6/13/07, Ross wrote: Never really used the GD much before very straightforward but how do I output the image on a page. This is fine on a php page on its own but what about one where the headers are already sent? Ross: That's not a problem. See this: http://xn--nvg.com/rotat

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread Daniel Brown
On 6/15/07, tedd <[EMAIL PROTECTED]> wrote: At 5:31 PM -0400 6/15/07, Daniel Brown wrote: > >Sounds like it was the decimal (three-bit, incorrect) versus octal >(four bit, correct) chmod(); value after all. Boo-yaa and stuff. Nope, that was one of the things I had right from the "get-go

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread tedd
At 5:31 PM -0400 6/15/07, Daniel Brown wrote: Sounds like it was the decimal (three-bit, incorrect) versus octal (four bit, correct) chmod(); value after all. Boo-yaa and stuff. Nope, that was one of the things I had right from the "get-go". The biggest problems I had were: a) gettin

Re[2]: [PHP] Re: outputing image part 2

2007-06-15 Thread Richard Davey
Hi Ross, Friday, June 15, 2007, 10:40:37 PM, you wrote: > Any ideas how to save the imagecopyresampled() to the folder? Call imagepng (or imagejpeg or whatever) and pass it a filename to save the image instead of output it. Check the help files for examples. Cheers, Rich -- Zend Certified Eng

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Stut
Tijnema wrote: On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: WeberSites LTD wrote: > Did someone say PHP competition ? Zend Studio? > > Here is one that has been around since April 2004 giving out prizes on a > monthly basis : > http://contest.weberdev.com/ Yeah, but this one has quality judge

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Ross
I am taking your advice. I am going to rezize any image greater than 400px wide prior to upload. I have to combine my upload script for ($i=0; $i <$total; $i++) { $fileName = $_FILES['userfile']['name'][$i]; $tmpName = $_FILES['userfile']['tmp_name'][$i]; $fileSize = $_FILES['userfile']['size

[PHP] Extract specific div element from page

2007-06-15 Thread Anthony Hiscox
Hey folks, I need to pull the contents inside of a specific div out of a page, and write it to a separate file. In this instance I am taking everything inside of tags from a wordpress blog, this will give me only the content and not the menus, or other stuff. I need to do this because the final

Re: [PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: > I know for some languages there is a way to call code from another language. > For example you can call C funcitons from Pascal, etc. Is there any way I > can call Pascal functions/code from PHP? > Compi

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread Daniel Brown
On 6/15/07, tedd <[EMAIL PROTECTED]> wrote: At 1:06 PM -0400 6/14/07, Daniel Brown wrote: >For the sake of people reading the archives now (and in years to >come), what was the cause of the problem, Tedd? Daniel: Ok, good point -- I would have liked to have this example to review. I'm not

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Daniel Brown
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: OK, your problem here is the single quotes in the img src around $img_url. Stut's right. You should change: echo ""; to: echo ""; He's also right about the dynamic resizing of images causing a serious strain on the server

Re: [PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Tijnema
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: I know for some languages there is a way to call code from another language. For example you can call C funcitons from Pascal, etc. Is there any way I can call Pascal functions/code from PHP? Compile the pascal code as an executable, and call it with

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Tijnema
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: WeberSites LTD wrote: > Did someone say PHP competition ? Zend Studio? > > Here is one that has been around since April 2004 giving out prizes on a > monthly basis : > http://contest.weberdev.com/ Yeah, but this one has quality judges ;) -Stut Yes,

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread tedd
At 1:06 PM -0400 6/14/07, Daniel Brown wrote: For the sake of people reading the archives now (and in years to come), what was the cause of the problem, Tedd? Daniel: Ok, good point -- I would have liked to have this example to review. I'm not sure of the problems I had, because they were

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user "opens" a file, it's uploaded to a folder

[PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Dan
I know for some languages there is a way to call code from another language. For example you can call C funcitons from Pascal, etc. Is there any way I can call Pascal functions/code from PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Jim Lucas
revDAVE wrote: Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little about PHP ... however, I am hoping

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Daniel Brown
On 6/15/07, revDAVE <[EMAIL PROTECTED]> wrote: Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little abou

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Stut
Ross wrote: Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this $img_url="htt

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Richard Davey
Hi Ross, Friday, June 15, 2007, 10:00:53 PM, you wrote: > I have this > $img_url="http://www.xxx.co.uk/images/ENbb24469/room1.JPG";; > echo ">"; > and on the display image page I have: > $img_url= $_GET['img_url']; > $image = imagecreatefromjpeg($img_url); > if ($image === false) { exit;

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user "opens" a file, it's uploaded to a folder where PHP can access it, then PHP would

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Richard Davey
Hi, Friday, June 15, 2007, 9:53:24 PM, you wrote: > I know very little about PHP ... however, I am hoping that there is some > kind of preset " open source" php code that I might be able to use. There is the Pear pagination package which can do this, although not quite in the way you want it do

[PHP] Re: outputing image part 2

2007-06-15 Thread Ross
Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this $img_url="http://www.xxx

[PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread revDAVE
Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little about PHP ... however, I am hoping that there is som

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Daniel Brown
On 6/15/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > [PHP] >L> File: viewall.php > // Include files, connection routines, configuration, blah, > blah, blah > $dow = (date("N") - 1); > > $sql = "SELECT task_name FROM tasks WHERE completed='0'"; > $sql .= " AND (day_of_week BETWEEN '

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Jim Lucas
Jason Pruim wrote: On Jun 13, 2007, at 4:03 PM, Daniel Brown wrote: [PHP] L> File: viewall.php // Include files, connection routines, configuration, blah, blah, blah $dow = (date("N") - 1); $sql = "SELECT task_name FROM tasks WHERE completed='0'"; $sql .= " AND (day_of_week B

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I don't see any way of passing parameters i

Re: [PHP] outputing image part 2

2007-06-15 Thread Stut
Ross wrote: I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Stut
WeberSites LTD wrote: Did someone say PHP competition ? Zend Studio? Here is one that has been around since April 2004 giving out prizes on a monthly basis : http://contest.weberdev.com/ Yeah, but this one has quality judges ;) -Stut -Original Message- From: Stut [mailto:[EMAIL PR

[PHP] outputing image part 2

2007-06-15 Thread Ross
I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://www.x

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Jason Pruim
On Jun 13, 2007, at 4:03 PM, Daniel Brown wrote: [PHP] L> File: viewall.php // Include files, connection routines, configuration, blah, blah, blah $dow = (date("N") - 1); $sql = "SELECT task_name FROM tasks WHERE completed='0'"; $sql .= " AND (day_of_week BETWEEN '0' AND '".$

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] > Two words. Beware the inode. ^^ ^^^ ^ 1 23 Here endeth the lesson. [/snip] Can I get an Admin brotha'!? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread WeberSites LTD
Did someone say PHP competition ? Zend Studio? Here is one that has been around since April 2004 giving out prizes on a monthly basis : http://contest.weberdev.com/ berber -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 1:46 PM To: php-general@l

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Stut
Jay Blanchard wrote: [snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 03:47, Daniel Brown wrote: > Once again, this doesn't matter so much for per-directory (though > listing will take longer, as I think I mentioned) as it does the > filesystem mount. Several years ago, having say 3000+ files in single directory on ext2 would mean tha

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function an

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Satyam
Since it depends on many factors, some out of your control, some others that might vary over the lifetime of the application, one thing you might do, to be on the safe side is try to put files in different directories, for example, by breaking up their filenames every three characters and making

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Richard Heyes
Dan wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as parameters

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? [/snip] As someone mentioned, directories are just a human convenience. Each file will have an inode and is identified

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Tijnema
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function an

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: Thanks for the replies but I'm not sure I know what to do with them. Is the problem with the number of files, or is the problem with the activity? Can you dumb down your answers at all for me? :) On Jun 15, 2007, at 11:51 AM, Daniel Brown wr

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Tijnema
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? I have no clue how big the files are, but you might want to store them in a database. That can speed up things, but don't as

[PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as parameters. Is there

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? [/snip] As someone mentioned, directories are just a human convenience. Each file will have an inode and is identified by an inode number in the file system where it reside

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Saturday 16 June 2007 02:51, Daniel Brown wrote: > And remember, the fact that they're all > in one directory doesn't matter at all to the system, as directories, > folders, et cetera, are just representations for human readability and >

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
Thanks for the replies but I'm not sure I know what to do with them. Is the problem with the number of files, or is the problem with the activity? Can you dumb down your answers at all for me? :) On Jun 15, 2007, at 11:51 AM, Daniel Brown wrote: 6/15/07, Jay Blanchard <[EMAIL PROTECTED]>

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 02:51, Daniel Brown wrote: > And remember, the fact that they're all > in one directory doesn't matter at all to the system, as directories, > folders, et cetera, are just representations for human readability and > organization. In fact, those files reside on several sec

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://www.xxx

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Jun 15, 2007, at 2:47 PM, Daniel Brown wrote: > On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: >> > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> >> I am currently trying to unsubscribe from this mailing list, >> >> however I >>

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
6/15/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU l

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Jason Pruim
On Jun 15, 2007, at 2:47 PM, Daniel Brown wrote: On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> I am currently trying to unsubscribe from this mailing list, >> however I >> am nor very successful in doing this. The mailer program wil

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> I am currently trying to unsubscribe from this mailing list, >> however I >> am nor very successful in doing this. The mailer program will >> refuse to >> accept my address for removal, it

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering if anyone knows wheth

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Brian Dunning
On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this hap

[PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering if anyone knows whether I'm

Re: [PHP] Form Data Filtering

2007-06-15 Thread Daniel Brown
On 6/15/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: > Tijnema wrote: > > -slut > > Actually it's -Stut. I hate it when people spell my name wrong! > > -Stut > Oh, didn't knew you were on the list of inappropriate words too ;) Tijnema -- PHP General Mailing

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > -slut Actually it's -Stut. I hate it when people spell my name wrong! -Stut Oh, didn't knew you were on the list of inappropriate words too ;) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Form Data Filtering

2007-06-15 Thread Stut
Tijnema wrote: -slut Actually it's -Stut. I hate it when people spell my name wrong! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
On 6/15/07, kvigor <[EMAIL PROTECTED]> wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Instead of

Re: [PHP] Install question

2007-06-15 Thread Jim Lucas
Paul K wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I look to see whats wrong? Paul

Re: [PHP] passing a url to a page

2007-06-15 Thread Jochem Maas
Zoltán Németh wrote: > 2007. 06. 15, péntek keltezéssel 14.45-kor Ross ezt írta: >> I have a display_image.php page >> >> > >> >> >> $image = imagecreatefromjpeg($img_url); > > where do you get $img_url from? GET request? > then do something like > > $img_url = $_GET['img_url']; > if (!file_exist

Re: [PHP] Install question

2007-06-15 Thread Daniel Brown
On 6/15/07, Paul K <[EMAIL PROTECTED]> wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Andrei
Man you have some issues... :p Dave Goodchild wrote: > No, because extra processing is done on the other side - now > > fuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckf

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Dave Goodchild
No, because extra processing is done on the other side - now fuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuck

[PHP] Install question

2007-06-15 Thread Paul K
I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I look to see whats wrong? Paul -- PHP Genera

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 15.48-kor Dave Goodchild ezt írta: > I use something like this: > > $_SESSION['profane'] = false; > > foreach ($_POST as $value) { > foreach ($swearbox as $profanity) { > if (preg_match("/$profanity/i", $value)) { > $errors = tr

Re: [PHP] passing a url to a page

2007-06-15 Thread Stut
Daniel Brown wrote: $image_url = 'http://www.pr0nsite.com/gallery/big-boobs.jpg'; Well that was just too disappointing for a Friday afternoon. Ya tease! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing a url to a page

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 15.28-kor [EMAIL PROTECTED] ezt írta: > Nothing happens no errors or anything I tried to debug using > include('display_image.php?img_url=$image_url') I got a parse error. of course. include is totally different stuff, you can not give GET parameters when includin

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Tijnema
On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this happening

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Dave Goodchild
I use something like this: $_SESSION['profane'] = false; foreach ($_POST as $value) { foreach ($swearbox as $profanity) { if (preg_match("/$profanity/i", $value)) { $errors = true; $_SESSION['profane'] = true; mail(TECHEMAIL, 'profane content

Re: [PHP] passing a url to a page

2007-06-15 Thread Daniel Brown
On 6/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. You can't include a file with a query string attached. However, you /can/ do: http://www.pr0nsite.com/g

Re: [PHP] passing a url to a page

2007-06-15 Thread Stut
[EMAIL PROTECTED] wrote: Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. I would rather use buffers if this is possible? You can't parse GET parameters with include. Try this... $_GET['img_url'] = $image_url; i

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Daniel Brown
On 6/15/07, Chris <[EMAIL PROTECTED]> wrote: ""kvigor"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello, > > I 'm checking form data for profanity but it only works if the > $_POST['var'] is lowercase I was wondering if anyone knew how I could > catch the profanity no

[PHP] Re: GD Library and outputing image

2007-06-15 Thread zerof
Ross escreveu: $image = imagecreatefromjpeg($img_url); $image in this case, is the Image Identifier, and returns something like , Resource id #NUMBER ( Resourse id allocation process, for the generic imagecreate... ). if ($image === false) { die ('Unable to open image'

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Richard Heyes
Have you tried eregi()? You don't need the regex functions, they're slow and you should be using PCRE instead (IMO). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. I would rather use buffers if this is possible? - Original Message - From: "Zoltán Németh" <[EMAIL PROTECTED]> To: "Ross" <[EMAIL PROTECTED]> Cc: Sent: Fri

[PHP] Re: Form Data Filtering

2007-06-15 Thread Darren Whitlen
kvigor wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Instead of the long way: if ($value =

[PHP] Re: Form Data Filtering

2007-06-15 Thread Chris
""kvigor"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello, > > I 'm checking form data for profanity but it only works if the > $_POST['var'] is lowercase I was wondering if anyone knew how I could > catch the profanity no matter what case it was. No matter if it was

Re: [PHP] Form Data Filtering

2007-06-15 Thread Richard Heyes
kvigor wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Use strcasecmp() or perhaps better, st

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Daniel Brown
On 6/15/07, Christian Hänsel <[EMAIL PROTECTED]> wrote: On the weekends, I get to maintain my own websites, do research, satisfy the needs of my girl, learn new stuff (like JS right now *yikes*)... damned, I can't wait til September when I get TWO WEEKS OFF :oD -- ---

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Jim Moseby <[EMAIL PROTECTED]> wrote: > I am currently trying to unsubscribe from this mailing list, > however I > am nor very successful in doing this. The mailer program will > refuse to > accept my address for removal, it will simply continue to > send mail to > my address. Why is

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Daniel Brown
On 6/15/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Friday 15 June 2007 21:23, Jochem Maas wrote: [etc] > IT is a joke, this list is joke, I'm a joke. no joke. Someone give this guy his meds :) -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] passing a url to a page

2007-06-15 Thread Ross
I have a display_image.php page I want to output this as an image but cannot get it working. I need to pass the image url something like this I thought would work echo ""; any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generating an html intro text ...

2007-06-15 Thread Daniel Brown
On 6/15/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: ... Dan, I don't want to put a downer on things, especially considering the ammount of time/energy you spent writing the code you posted. ... but this is not exactly what I was looking for. I guess my feable attempt at exp

Re: [PHP] passing a url to a page

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 14.45-kor Ross ezt írta: > I have a display_image.php page > > > > > $image = imagecreatefromjpeg($img_url); where do you get $img_url from? GET request? then do something like $img_url = $_GET['img_url']; if (!file_exists($img_url)) die "bad hacker"; before

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Crayon Shin Chan
On Friday 15 June 2007 21:23, Jochem Maas wrote: [etc] > IT is a joke, this list is joke, I'm a joke. no joke. Someone give this guy his meds :) -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Jochem Maas
Crayon Shin Chan wrote: > On Saturday 09 June 2007 01:22, Daniel Brown wrote: > >> I actually haven't found a platform yet that I couldn't port PHP >> to, if it wasn't already native. We're talking Windows, Linux, BSD, >> true *nix, MacOS, SunOS, Amiga, et cetera. I doubt it would run on my

  1   2   >