RE: [PHP] Nasty DoS in PHP

2002-04-18 Thread Jason Murray
Mine produced the same error message as yours, Jason, but the memory and CPU usage continued until I hit the 'stop' button on the browser. It seemed to have overridden both time and memory limits, as it had racked up 320 megs of my RAM by the time I stopped it. It certainly didn't do that

Re: [PHP] PHP and Quicktime...

2002-04-18 Thread Michael Zornek
Twas 4/18/02 1:48 AM, when Pusta [EMAIL PROTECTED] said: Hello all, I'm new at PHP but learning and loving it. For a school project, I have to use PHP to display a video on a web page using QuickTime. Can anyone point me to where I can get some info on how to do this?

RE: [PHP] Nasty DoS in PHP

2002-04-18 Thread Jason Soza
Very odd indeed. Well, here's my setup: Windoze2K PHP 4.1.2 Apache 1.3.something Accessing it via IE 6.0, although this should not have any bearing on anything I'd be interested in knowing your versions and the versions of the first guy that posted about this. Maybe he has the same setup as me,

RE: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Jason Murray
I'd be interested in knowing your versions and the versions of the first guy that posted about this. Maybe he has the same setup as me, or close enough, but both of us are different from you. Actually, I just thought about it - maybe you guys are both running it on Windows (shame on you

[PHP] ImageMagik

2002-04-18 Thread Richard Lynch
I have used PHP to generate a series of JPEG files, which after doing: convert -delay 0 *.jpg animated.gif make a rather nifty animated GIF file. Just one tiny problem... How the heck do 8 files, ~24 K each, turn into 3 *MEGS* worth of animation?... I mean, I've read the GIF spec, and there

Re: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread DRaGoNLz
- Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Jason Soza' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 11:36 PM Subject: RE: [PHP] Nasty DoS in PHP | Windows only? I'd be interested in knowing your versions and the versions of the first guy

RE: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Jason Murray
I know what you are saying. I've taken down apache on win32 with setcookie [snip] I'm pretty sure they ran PHP on apache, not IIS. Maybe this problem is only with the win32 version of the PHP module. Yep, apparently I can't read. Apache, IIS, same header() probs. Nonetheless, a bug is

[PHP] Apache 2.0.35 php 4.2.0 RC4 includes

2002-04-18 Thread Chris Fraser
Greetings, Is anyone having problems with includes or include path with this configuration? I'm running Apache 2.0.35/php 4.2.0 RC4 on WinXP pro. Warning: Failed opening 'mod//index.php' for inclusion (include_path='.;c:\php4\pear') in D: \Internet\Apache\htdocs\urswerks\mod.php on line 14

Re: [PHP] Link

2002-04-18 Thread Matt Williams
On Wednesday 17 April 2002 15:37, SHEETS,JASON (Non-HP-Boise,ex1) wrote: if(Criteria=$Input) { Header(Location: http://www.yourplace.com/Pagename.php;); exit; } elseif(Criteria=$SomethingElse) { Header(Location: http://www.yourplace.com/somewhereelse.php;);

[PHP] How do I handle file uploading for several files at one time?

2002-04-18 Thread Phil Powell
Consider this block of code: form enctype=multipart/form-data action=... method=post ... input type=file name=photo1 size=50 input type=file name=photo2 size=50 input type=file name=photo3 size=50 input type=file name=photo4 size=50 input type=file name=photo5 size=50 ... /form In my PHP

RE: [PHP] save html created by loop in variable

2002-04-18 Thread Tim Ward
How about something like ... $agents = array(); If ($result = mysql_query(SELECT h.title, h.address, a.agentname FROM homes h, agents a WHERE h.owner=a.id AND a.id=$aid)) { while ($array = mysql_fetch_array($result)) {

[PHP] Re: [PHP-DEV] what does is happening to the list

2002-04-18 Thread Hartmut Holzgraefe
Eduardo Melo wrote: What is happening to the list ... No body anwser ... I will be waiting for some contact. we are finaly ignoring you as you are neither able to switch of HTML (as requested) as anybody else does nor understand the concept of which list is which (by crosposting to

[PHP] Pb with checkbox

2002-04-18 Thread Frédéric Mériot
Hello, I've got a little pb with checkboxes. In my form I've got 5 checkboxes which have the same name sel. When I submit the form and when I display the form variable sel, it displays the last value only. I cannot catch all the value checked in the form. If I try this code with coldfusion or

Re: [PHP] Pb with checkbox

2002-04-18 Thread Jason Wong
On Thursday 18 April 2002 17:19, Frédéric Mériot wrote: Hello, I've got a little pb with checkboxes. In my form I've got 5 checkboxes which have the same name sel. When I submit the form and when I display the form variable sel, it displays the last value only. I cannot catch all the value

[PHP] How to create, name and start PHP sessions

2002-04-18 Thread Phil Powell
Will the following lines set up a session by the name of hasLoggedIn with HTTP_SESSION_VARS[username]? $stuff = session_name(hasLoggedIn); $HTTP_SESSION_VARS[username] = $username; session_start(); I am trying to create a page that sets a session variable upon successful login,

Re: [PHP] FreeBSD fsockopen problem

2002-04-18 Thread Charles Williams
fixed, chuck - Original Message - From: Charles Williams [EMAIL PROTECTED] To: Php-General (E-mail) [EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 2:34 PM Subject: [PHP] FreeBSD fsockopen problem Hey all, I am in need of opening a UDP socket on a FreeBSD box. The following code

Re: [PHP] Pb with checkbox

2002-04-18 Thread Frédéric Mériot
Ok, thanks - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 11:31 AM Subject: Re: [PHP] Pb with checkbox On Thursday 18 April 2002 17:19, Frédéric Mériot wrote: Hello, I've got a little pb with checkboxes. In my form I've

[PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Michael Andersson
Maybe you want to share with the rest of us, or at least me how you did it? :) /Micke Jas [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Nevermind... =) Jas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am wondering if

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Michael Virnstein
session_name will retur the previos name of the session, so in your case $stuff will contain PHPSESSID and i think you have to call session_start(); before you do $HTTP_SESSION_VARS[username] = $username; so perhaps this will work: session_name(hasLoggedIn); $stuff = session_name();

[PHP] Re: mod_rewrite

2002-04-18 Thread Maxim Maletsky
Seriousely speaking, I don't think I can create you a working example here because your case might be a whole different one, so you'd better read the docs to get it right. To just give you an idea, here's what I use on PHPBeginner.com: # VHosts: RewriteEngine On

[PHP] Re: mod_rewrite

2002-04-18 Thread Maxim Maletsky
forget about using .htaccess for mod_rewrite. It often fails through it. Use it directly from httpd.conf Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] [ rswfire ] writes: .htaccess (returns 500 misconfiguration

[PHP] debug NOTICE without disturbing browser

2002-04-18 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, If you want to see NOTICE errors, but not in the browser: - Set your own error_handler as described in the documentation - And include these lines: if ( ( $errno == E_USER_NOTICE ) || ( $errno == E_NOTICE ) ) system

RE: [PHP] Nasty DoS in PHP

2002-04-18 Thread Darren Gamble
Good day, Just reading this thread, figured I would put my $0.02 in. This is apparently a known problem. It seems to occur whenever the php script uses lots of memory, actually, and it does the same thing whether it's run standalone or as a module. I first experienced it when I had a PHP

[PHP] How to get Specific Data from an CSV format file to PHP

2002-04-18 Thread Jack
Dear all I had tried to fetch the data from CSV file by using PHP, what i did is fetch the whole file content! But now i only want specific data from that CSV file, is there anyway in php that can point the pointer to specific data i want? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP

[PHP] Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
Anyone recommend a good one? I am in need of the following features: 1) Catch any type of errors, 2) Actions like: Show on the screen, log on a file or database, or email, 3) Different actions for each error level/warning type, etc.. I have searched Hotscripts, but only found classes to

Re: [PHP] Nasty DoS in PHP

2002-04-18 Thread Justin Farnsworth
Darren Gamble wrote: This is probably just one of those cases that by the time the application determines that its child has exceeded its configured limits in resources, there are not enough resources (memory in this case) left to do the housekeeping and kill off the child. An acceptable

Re: [PHP] How to get Specific Data from an CSV format file to PHP

2002-04-18 Thread Luc Saint-Elie
Jack You may want to have a look at : http://cvs.php.net/cvs.php/pear/File Hope this helps Luc At 20:41 18/04/02 +0800, Jack wrote: Dear all I had tried to fetch the data from CSV file by using PHP, what i did is fetch the whole file content! But now i only want specific data from that CSV

[PHP] how to get row by row from CSV file

2002-04-18 Thread Jack
Dear all I'm a beginner of php, i tried to get the CSV file, but it return like Column by Colume, but how i can get it in Row by Row, cause i want to point to specific data i want, but not the whole file content! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
Hello! I have a PDF-File, which the user should download (it should not open in the browser, even if the Adobe-Reader-Pluging is installed). I use: $filename = $DOCUMENT_ROOT./.$QUERY_STRING; $fd = fopen ($filename, rb); $contents = fread ($fd, filesize ($filename)); fclose ($fd);

[PHP] Convert

2002-04-18 Thread Roman Duriancik
How to convert string in windows-1250 to asci, I need convert special national characters to standard english characters. Thank you roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-18 Thread Manuel Lemos
Hello, Sp wrote: Can someone with database expertise who has used metabase and adodb cut through this rhetoric and give an objective view of these two packages. From what I got from this convo is that metabase is slower but more portable but adodb is faster but not as portable. No,

[PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-18 Thread Manuel Lemos
Hello, Sp wrote: Can someone with database expertise who has used metabase and adodb cut through this rhetoric and give an objective view of these two packages. From what I got from this convo is that metabase is slower but more portable but adodb is faster but not as portable. No,

[PHP] Re: Global variable

2002-04-18 Thread Michael Andersson
Maybe you could use sessions like: session_start(); session_register('verified'); $verified=0 Erich Kolb [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have developed a simple login script. Right now it will check a submitted username and password and

[PHP] find value of image tag

2002-04-18 Thread bill
How can I find the value of image tags in an HTML file: IMG SRC=some_value.jpg alt=blah height=xx width=yy No line breaks are in the tags but they do have other parameters. kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: Anyone recommend a good one? I am in need of the following features: 1) Catch any type of errors, 2) Actions like: Show on the screen, log on a file or database, or email, 3) Different actions for each error level/warning type, etc.. I have

[PHP] $PHP_SELF question

2002-04-18 Thread Brinkman, Theodore
I've got an include file that provides the basic framework for every page on my site, and at the bottom of each page, I want to spit out when the page was last updated. I used $PHP_SELF inside the include file, and got the include file's path. Is there a variable equivalent to $PHP_SELF that

Re: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Billy S Halsey
Actually, it occurs on Solaris as well. I just coded up the script, and it brought my server to its knees, though I was able to break it before it hanged hard. My configuration: * Solaris 8 108528-12 * PHP 4.1.1 as an executable (didn't try through Apache) * 512mb ram, 1 @ 440MHx

Re: [PHP] Error Handling Class - Any Recommendations?

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 08:53 AM, Julio Nobrega Trabalhando wrote: Anyone recommend a good one? I am in need of the following features: 1) Catch any type of errors, 2) Actions like: Show on the screen, log on a file or database, or email, 3) Different actions for each error

RE: [PHP] Open Download-Box

2002-04-18 Thread James E. Hicks III
try header(Content-type: application/pdf); James -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Open Download-Box Hello! I have a PDF-File, which the user should download (it should not

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
Hi Manuel! I am looking for anything that's already done, constructed, tested. PHP does have error handling, and I could code my own class to glue all functions/necessities together, but that would take too much time. Just something at least to start from is a good thing... Saves a lot of

Re: [PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
try header(Content-type: application/pdf); Thanx, but it doesn't work, too, on IE. Another effect is, that Netscape now opens it in the broser window instead of downloding it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and if statement if a page isnt there using iframes

2002-04-18 Thread Craig
i am using iframes to display a page within a page the iframe is named and the page is dynamic the iframe displays a page using generated php. is there a way of using php to redirect to nopage.php if the page does not exist? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] RE: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-18 Thread SP
Hi Manuel, I still don't see a problem in others telling their experiences with certain packages. If someone has just used metabase or has just used adodb then I would like to hear how easy/hard it was to port to another database. -Original Message- From: Manuel Lemos [mailto:[EMAIL

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Phil Powell
Thanx, however, I cannot retain the session_name when I go to the next URL. How do I retain the session_name especially when I have to use a form method=POST? I have a URL that will be the login Once you login you will have a session (that works now) That page with the session will have a form

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: Hi Manuel! I am looking for anything that's already done, constructed, tested. PHP does have error handling, and I could code my own class to glue all functions/necessities together, but that would take too much time. Just something at least

[PHP] Sorting an array.

2002-04-18 Thread Mike Mike
Hello, Here's what i'm working with. I'm figuring the distance between to points based on latitude and longitude. while ($row = mysql_fetch_array($result)) { //calculate distance between the two cities. $Lat2 = $row[Latitude]; $Lon2 = $row[Longitude]; $x = 69.1

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
I am looking for something like this: if (error($anything)) { $method = Array('show_on_page', 'email', 'file'); $my_error_message = 'We are in trouble!'; $severity = 'Light'; $error_class-LogError($method, $my_own_error_message, $natural_error_message, $severity,

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Michael Virnstein
you have to put this on top of every of your pages: - session_name(hasLoggedIn); $stuff = session_name(); session_start(); - session_name first sets the name. then you call session_start which will look for the sessionid in

Re: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Gerard Samuel
Just catching up on my emails and saw this thread. Just a note that it didn't happen under FreeBSD 4.5-R p3 PHP 4.1.2 (Apache module) 386M Ram, PIII 450 box The script died after the max_time setting, and apache's children returned back to their happy go lucky nature all by themselves...

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Uchendu Nwachukwu
In your example, simply place this line in your code (on *every* page you want the session to be on): session_name(HasLoggedIn); session_register(username); If your PHP was compiled with '--enable-trans-sid' you shouldn't have to worry about anything else. PHP will automatically store the

[PHP] Re: $PHP_SELF question

2002-04-18 Thread Joel Colombo
did u try $HTTP_REFERER ? that might do it... havent tested with an include though. Joel Theodore Brinkman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've got an include file that provides the basic framework for every page on my site, and at the bottom

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Michael Virnstein
Use PEAR_Error. It's really powerful and has yll you need. there's no logging method in PEAR_Error afaik, but you can easily do this with PEAR's Log class, same for mailing. use PEAR's mail class to send mails. I like PEAR very much. It has lots of good things to offer and is easily extendable

[PHP] Re: Open Download-Box

2002-04-18 Thread Michael Virnstein
this is a problem of IE, not of PHP. it seems that IE is ignoring headers in some cases. Regards Michael Martin Thoma [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I have a PDF-File, which the user should download (it should not open in the

RE: [PHP] Convert

2002-04-18 Thread Mark Charette
How to convert string in windows-1250 to asci, I need convert special national characters to standard english characters. Discard all characters with a value over 127 (high bit set). ASCII is only defined for 7 bit encoding. Mark Charette -- PHP General Mailing List

RE: [PHP] Re: $PHP_SELF question

2002-04-18 Thread Stampe, Lars
Try and create a new php file with the following code and read the result: ?php phpinfo(); ? thats it, a lot of useful info there! Regards Lars -Original Message- From: Joel Colombo [mailto:[EMAIL PROTECTED]] Sent: 18 April 2002 16:03 To: [EMAIL PROTECTED] Subject: [PHP] Re:

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Phil Powell
I am now getting the following errors on every page: Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\webmissions\picupload\miss_pic_upload.php:25) in c:\program files\apache

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Phil Powell
I am now getting the following errors on every page: Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\webmissions\picupload\miss_pic_upload.php:25) in c:\program files\apache

[PHP] Re: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-18 Thread Manuel Lemos
Hello, Sp wrote: Hi Manuel, I still don't see a problem in others telling their experiences with certain packages. If someone has just used metabase or has just used adodb then I would like to hear how easy/hard it was to port to another database. Sure, but what I meant is that since

[PHP] function returning true or errors

2002-04-18 Thread Erik Price
I am writing a function that performs some actions. I would like to return true if the actions succeed, or return an error message if the actions fail. How should I go about it? The following code doesn't do it, because the returned error message is interpreted as a boolean true (I think

[PHP] Re: function returning true or errors

2002-04-18 Thread Julio Nobrega Trabalhando
function custom_function() { if ($error == 0) { return true; } else { return Error!; } } if (custom_function() != Error!) { echo Success; } else { echo Error; } Also, you could still return false on your custom_function(), if before the return you

Re: [PHP] Sorting an array.

2002-04-18 Thread Richard Emery
Perhaps you could store $row in an array of arrays; store only $row within 100 miles. Add another field, Distance, to each row that holds the calculated distance. Then, after creating the array, sort the final array by Distance. - Original Message - From: Mike Mike [EMAIL PROTECTED] To:

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Manuel Lemos
Hello, Julio Nobrega Trabalhando wrote: I am looking for something like this: if (error($anything)) { $method = Array('show_on_page', 'email', 'file'); $my_error_message = 'We are in trouble!'; $severity = 'Light'; $error_class-LogError($method, $my_own_error_message,

Re: [PHP] Re: function returning true or errors

2002-04-18 Thread Robert Cummings
I think this is more along the lines of what was wanted :) function custom_function() { if( $problem1 ) { return 'Problem 1 occured!'; } elseif( $problem2 ) { return 'Problem 2 occured!'; } elseif( ... ) { ... } return true; } if(

[PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Chris Hall
Morning all, I'm using the mail() function on a project for a client. His hosting provider currently offers php3, meanwhile I've been developing in php4. So far, I don't haven't found any problems other than the following: In php4, inside the mail function I use newline definitions to

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
Thanks Manuel, that's indeed a large portion of my needs. But still, from the time of my first post, among the new replies, I have found dozens of features that I think it would be interesting, and currently there's nothing suited to my needs. So I will base my work largely on use error_log(),

Re: [PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Miguel Cruz
On Thu, 18 Apr 2002, Chris Hall wrote: I'm using the mail() function on a project for a client. His hosting provider currently offers php3, meanwhile I've been developing in php4. So far, I don't haven't found any problems other than the following: In php4, inside the mail function I use

Re: [PHP] Sorting an array.

2002-04-18 Thread Miguel Cruz
Sounds like it'd be a lot easier to let MySQL do the calculation and sorting. $userLatitude = 50; $userLongitude = 70; $sql = select companyname, blah, blah, ceiling(sqrt(pow(69.1 * (latitude - $userLatitude), 2) + pow(53 * (longitude - $userLongitude), 2))) as distance

Re: [PHP] ImageMagik

2002-04-18 Thread Miguel Cruz
On Thu, 18 Apr 2002, Richard Lynch wrote: I have used PHP to generate a series of JPEG files, which after doing: convert -delay 0 *.jpg animated.gif make a rather nifty animated GIF file. Just one tiny problem... How the heck do 8 files, ~24 K each, turn into 3 *MEGS* worth of

Re: [PHP] function returning true or errors

2002-04-18 Thread Jason Wong
On Thursday 18 April 2002 23:25, Erik Price wrote: I am writing a function that performs some actions. I would like to return true if the actions succeed, or return an error message if the actions fail. How should I go about it? The following code doesn't do it, because the returned error

[PHP] php snmp

2002-04-18 Thread Scott Baer
Hello... Could some one please direct me in the right direction. I am trying to get an snmpwalk on an snmp device.. I have set up the community and IP correctly.. I can do a manually by doing the fallowing: snmpwalk 126.4.202.157 public from a terminal,,, and I do get some responses

Re: [PHP] Re: function returning true or errors

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 11:38 AM, Julio Nobrega Trabalhando wrote: function custom_function() { if ($error == 0) { return true; } else { return Error!; } } if (custom_function() != Error!) { echo Success; } else { echo Error; } Your

RE: [PHP] function returning true or errors

2002-04-18 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Rather than using true and false you can use 1, 0 it saves key strokes, reduces script size, etc Also use ' instead of if you don't need it evaluated by PHP. if (custom_function) { print 'Custom Function succeeded!'; } else { print 'There was a problem!'; } One thing I've

[PHP] Tabs + SELECTED

2002-04-18 Thread Andre Dubuc
An interesting problem has surfaced while finishing the coding for an input form. The usual text inputs fields are in place for first name, surname, address etc. However, I've created a drop-down list for state and country. Since these drop-down lists have OPTION SELECTEDIn USA/Canada ,

[PHP] Re: verify file types when uploading to server...

2002-04-18 Thread jas
Oops... Hope this helps others, here is what I did: // This is your form... form name=img1 method=post action=done.php target=box enctype=multipart/form-data input type=file name=img1 size=25 brbr input type=submit name=Submit value=save nbsp;nbsp; input

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Miguel Cruz
Not sure what you're tring to achieve, but that only checks the file's name. You might want to use file (man 1 file) to verify that it actually is a JPEG, since people can put malicious data into a file named xxx.jpg and perhaps fool IE into doing bad things. miguel On Wed, 17 Apr 2002, jas

[PHP] multiple select list

2002-04-18 Thread Preston Wade
Hello All, I have seen what I am trying to do on other web sites, but they were written in client side scripting languages. This may or may not be a limitation of server side scripting languages. What I am trying to do is dynamically generate 2 drop down list. I want the second list to

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread jas
Could you explain that a little more? thanks, Jas Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not sure what you're tring to achieve, but that only checks the file's name. You might want to use file (man 1 file) to verify that it actually is a

[PHP] Images don't save

2002-04-18 Thread Manu Verhaegen
Hi, You can right click on a image on your browser and choose save. I want to disable this option, how can i do this Greetings, Manu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] equivalent of qw?

2002-04-18 Thread Jack Dempsey
Hi all, I often find myself creating long arrays like so $a = array( a b c d e f r foo bar etc ... ); is there an easy way I don't know about to quote those vars? Basically just looking for an easier way to make such an array without adding teh quotes and commas, something like perl's qw.

Re: [PHP] Images don't save

2002-04-18 Thread Gunther E. Biernat
You can't. Period. Simple as that. Oh, and BTW, it's not even a PHP question... On Thu, 18 Apr 2002 20:10:13 +0200, Manu Verhaegen wrote: Hi, You can right click on a image on your browser and choose save. I want to disable this option, how can i do this Greetings, Manu -- PHP

[PHP] Re: multiple select list

2002-04-18 Thread Julio Nobrega Trabalhando
http://www.zend.com/zend/tut/drop-down.php -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: equivalent of qw?

2002-04-18 Thread Julio Nobrega Trabalhando
$str = 'a b c foo bar'; $array = explode(' ', $str); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Images don't save

2002-04-18 Thread Jule Slootbeek
I'm not sure of it'll work, never tried it, but you might be able to show the pics using a Java applet..that way one cannot copy them. Jule. On Thursday 18 April 2002 14:17, Gunther E. Biernat typed on his or her keyboard, and sent me the following: You can't. Period. Simple as that. Oh,

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
Actually you can do this if all you are trying to do is disable right clicking. If you are thinking this will stop people from getting your pictures this is not the case. When a picture is viewed by someone it is downloaded to there comp first. No way to disable this. To disable right clicking

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Uchendu Nwachukwu
Make sure you aren't sending any HTML to the browser for any reason before the session_start(); call. Surefire way to prevent this error: place the following line as the first line of PHP script you execute on every page: ob_start(); Check out http://www.php.net/ob_start for details on what

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
This is not PHP so does not really belong here but since you asked. Here is a java script that will disable right clicking and display a copyright. Script language='Javascript' !-- var message='Copyright (c) 1999 Sakki.'; function click(e) { if (document.all) { if (event.button == 2) {

Re: [PHP] Images don't save

2002-04-18 Thread Miguel Cruz
On Thu, 18 Apr 2002, Jule Slootbeek wrote: I'm not sure of it'll work, never tried it, but you might be able to show the pics using a Java applet..that way one cannot copy them. 1) A lot of people won't see your site then, and if you have many pictures on the page, it'll be slower than

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Miguel Cruz
Unix systems have a program called 'file' that will look inside a file to try to figure out what sort of data it contains, regardless of how it's named. Generally it just looks at the first few bytes for a telltale fingerprint but there are all sorts of rules for different file types. This is

Re: [PHP] Tabs + SELECTED

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 12:33 PM, Andre Dubuc wrote: Since these drop-down lists have OPTION SELECTEDIn USA/Canada , tabbing in the form jumps over these drop-downs [simply becuase they're filled]. I would like them to be included in the tabbing. Originally I used tabindex to

Re: [PHP] function returning true or errors

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 11:56 AM, Jason Wong wrote: What I tend to do is define functions like so: function doo($dah, $dib, $error) { ... I had not even thought about passing an extra parameter by reference -- great idea. Erik Erik Price Web Developer Temp Media

[PHP] php printer functions...

2002-04-18 Thread Jimmy
I'm running PHP 4.1.1 on a Win2K box. If I understand the manual correctly, the printer functions have been integrated into PHP as of v4.0.4. However, when I try to call any of the printer functions, nothing works. Any ideas or suggestions? TIA -josh -- PHP General Mailing List

[PHP] difference between $foo and isset($foo)

2002-04-18 Thread Norman Zhang
Hi, I am looking at some codes. Some authors use $foo and isset($foo) interchangeably. Just to want to make sure that the statement, if ($foo) { ... } is different from if (isset($foo)) { ... } Right? if ($foo) means variable exists and can be null. Whereas, isset($foo) means that the value

Re: [PHP] Tabs + SELECTED

2002-04-18 Thread Andre Dubuc
On Thursday 18 April 2002 02:31 pm, you wrote: On Thursday, April 18, 2002, at 12:33 PM, Andre Dubuc wrote: Since these drop-down lists have OPTION SELECTEDIn USA/Canada , tabbing in the form jumps over these drop-downs [simply becuase they're filled]. I would like them to be

Re: [PHP] difference between $foo and isset($foo)

2002-04-18 Thread Miguel Cruz
On Thu, 18 Apr 2002, Norman Zhang wrote: I am looking at some codes. Some authors use $foo and isset($foo) interchangeably. Just to want to make sure that the statement, if ($foo) { ... } is different from if (isset($foo)) { ... } Right? if ($foo) means variable exists and can be

[PHP] Re: difference between $foo and isset($foo)

2002-04-18 Thread Jim Winstead
Norman Zhang [EMAIL PROTECTED] wrote: Right? if ($foo) means variable exists and can be null. Whereas, isset($foo) means that the value in $foo cannot be null? you've got it backwards. 'if (isset($foo))' tests that the variable has been set to some value, possibly including false or null. 'if

[PHP] Number checker

2002-04-18 Thread Jeroen Timmers
i want to check if a given string has only numbers for exampl $test = 343124312 TRUE $test1 = q34daf23423 FALSE Jeoren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] limit on extended classes

2002-04-18 Thread Erik Price
Is there a limit on how many times you can extend a class in PHP 4? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Number checker

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 02:58 PM, Jeroen Timmers wrote: i want to check if a given string has only numbers for exampl $test = 343124312 TRUE $test1 = q34daf23423 FALSE use either is_numeric(), or for whole numbers only, use a regex: preg_match('/^\d+$/', $test); Erik

Re: [PHP] Number checker

2002-04-18 Thread Robert Cummings
Jeroen Timmers wrote: i want to check if a given string has only numbers for exampl $test = 343124312 TRUE $test1 = q34daf23423 FALSE I'm tempted to say go read about ereg(), but since it's just as long to provide a response... return ereg( '^[[:alpha:]]*$', $testString ); Cheers,

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: Is there a limit on how many times you can extend a class in PHP 4? Was there ever? Curious to know! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer |

  1   2   >