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 i

[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: ... ... In my PHP script, I have the following: for ($i = 1; $i <= 5; $i++) { if (is_uploaded_file($HTTP_POST_FILES['userfile'][$i]['tmp_name'])) { $hasNoPics = false; move_uploaded_file($HTTP_POST_FILES['userfile'][$i]['tmp_name'], "$DOCU

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

[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 foll

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

[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 w

[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(); sessio

[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 RewriteCond

[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 scrip

[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 General

[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 cont

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 algorith

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 C

[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 (http://www.ph

[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); heade

[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, Me

[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, Me

[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

[PHP] find value of image tag

2002-04-18 Thread bill
How can I find the value of image tags in an HTML file: 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: http://www.php.net/unsub.php

[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.. > >

[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 ret

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 UltraSP

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 er

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,

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

2002-04-18 Thread Justin Farnsworth
I have jumped into this thread late, perhaps this has alread been mentioned. Why don't you use PEAR Error _justin 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

[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 PR

[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 l

[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

[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, $file_where_ha

[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 ${sessio

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... Billy

[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 se

[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 bo

[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 for

[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 (http://www.php.ne

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: 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_SELF question did u

[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 group\apache\htdocs\webmissions\picupload\

[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 group\apache\htdocs\webmissions\picupload\

[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_

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 seperate

[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(), w

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 n

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 fr

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 o

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 err

[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

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 don

[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 " In USA/Canada ", tabbing in the for

[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...    // this is the script to upload the file // Note: if you want to only upload certain file types... change the eregi('.jpg$ sting to whatever your file extension shoul

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 w

[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 cont

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 > i

[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. Than

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] 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, and

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 yo

[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 tha

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.