Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
Victor Polyushko wrote: > > Hi Guys, > > Thank you fo your input. I am sorry I am new to the list so + English is not > my first language :-( anyhow., I shoudl 've made my question more clear. > > I am trying to save the image from the given URL > (http://domain.com/image.gif) running a PHP scr

[PHP] Key is an undefined function?

2002-05-16 Thread Damian Harouff
Fatal error: Call to undefined function: key() in /var/www/explorer/test.php on line 18 When it's listed right here: http://www.php.net/manual/en/function.key.php I was playing with the library from: http://phpconcept.free.fr/pclzip/index.en.php This is the code: -

Re: [PHP] BUG?: for loop using chars

2002-05-16 Thread Kevin Stone
No, no bug. I believe you would end up with something like that if the for loop is evaluating the letters numerically (either as ASCII values or some other value). The examples below would be the proper way of printing a range of letters... $letters = range('a', 'z'); for ($i=0; $i To: <[EMAIL

[PHP] odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch
odbc_fetch_array not working in php 4.2.1 for win? Here it says undefined function :( How can i solve it, do i have an old version or something?? Warm regards Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date and time functions

2002-05-16 Thread DC
Hi all, I am on the East Coast of Australia. Do you know if by default if the date/time display will display only East coast Australia time, or will display from the user's time zone? eg Will USA users see the Australian time or their own time? Would this cause a issue with timestamping an orde

[PHP] Re: odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch
does'n't matter anyway i rule so i solved it already :D a nice workaround i made :D /me is sleepy nighty nighty "Emile Bosch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > odbc_fetch_array not working in php 4.2.1 for win? > > Here it says undefined function

FW: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Peter
For me personally I find working with ASP & .NET to be a pain in the butt, yeah sure you can to use all the fancy GUI's that can take care of some code for you etc.. but then there's the argument about php and having to write the code your self. Personally I find that a better approach as for m

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Victor Polyushko
Does anyone know if there is any global reliable and free :-) statistics on usage of PHP vs ASP. I am having the same dilemma., do I need to stick to going deeply into PHP (which in my opinion rulez!!) or start paying more attention to ASP... Best Regards, Victor Polyushko - Original

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
BINGO!! thank you guys for your input I used a very simple command to accomplish that and it works!! http://domain.com/images/somepic.gif";; system( $command, $result); echo $result; ?> Victor Polyushko - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Victor Polyushk

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Victor Polyushko wrote: > Does anyone know if there is any global reliable and free :-) statistics on > usage of PHP vs ASP. I am having the same dilemma., do I need to stick to > going deeply into PHP (which in my opinion rulez!!) or start paying more > attention to ASP...

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Victor Polyushko
hmm.. good question, I guess number of active job openings will be the best measure :-)) (or websites using PHP vs ASP) - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Victor Polyushko" <[EMAIL PROTECTED]> Cc: "Php" <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 5:1

RE: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Peter
I think he was meaning in terms of PHP can do this ASP can't .. ASP can do that this way and PHP does it that way.. etc.. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 10:11 AM To: Victor Polyushko Cc: Php Subject: Re: [PHP] Done w/ PHP - VB or

Re: [PHP] Date and time functions

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, DC wrote: > I am on the East Coast of Australia. > > Do you know if by default if the date/time display will display only > East coast Australia time, or will display from the user's time zone? eg > Will USA users see the Australian time or their own time? Would this > cause

RE: [PHP] Date and time functions

2002-05-16 Thread David Freeman
> I am on the East Coast of Australia. I'm in central Queensland... > Do you know if by default if the date/time display will > display only East coast Australia time, or will display > from the user's time zone? eg Will USA users see the > Australian time or their own time? Would this

Re: [PHP] PHP and MySQL

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, City Colleges of Chicago - Mannheim wrote: > > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > This wasn't your question, but... $i"; ?> miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newline in fputs

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Henry Grech-Cini wrote: > header("Content-type: Application/octet-stream"); > > The downloaded file does not contain Windows type carriage returns of > newlines! However it does contains the data thank goodness. If you want the newlines converted, then you need to use a text

[PHP] Configuration.... XML.... Life

2002-05-16 Thread Michael Dransfield
I have started writing an app which helps (mainly win32, new) users to generate config files correctly to prevent glaring security holes on production servers. I started by using parse_config_file(), but this ends up causing problems because it strips comments. This means that some variables

[PHP] Re: Configuration.... XML.... Life

2002-05-16 Thread Manuzhai
Do you really have to use attributes for things like name? And the sense of having section-description inside section escapes me. Regards, Manuzhai "Michael Dransfield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have started writing an app which helps

RE: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Vail, Warren
Does this work on Windows, or is it restricted to Linux/unix? Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:58 AM To: DoL Cc: [EMAI

Re: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Markus Fischer
Windows too. - Markus On Thu, May 16, 2002 at 02:31:52PM -0700, Vail, Warren wrote : > Does this work on Windows, or is it restricted to Linux/unix? > > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > > -Origina

[PHP] remote fetching??

2002-05-16 Thread Gerard Samuel
I was about to modify a script that fetches files for xml content. It currently does so using fsockopen. I originally was going to use plain fopen, and I know that curl can also be used. Im looking for preferences as to use one method over another. Why one is better than the other etc. Thanks

[PHP] PHP in HTML

2002-05-16 Thread Jeremy
Hi Folks, A simple question that has me puzzled, obviously I have a config file wrong somewhere.. Why does a filename.php file run as php and a filename.html with php code embedded not produce a php result? cheers, Jeremy Burton Senior Consultant PERTH TOURIST LOUNGE Level 2 Carillon City Mur

Re: [PHP] PHP in HTML

2002-05-16 Thread Justin French
Your Apache config file will be set to only parse PHP pages if they have the .php extension this is a feature, not a big, because otherwise every html page on your server will be parsed, rather than just the php ones... you could modify your apache config iff you wished, but I wouldn't. .html

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
if your using apache for you web server .. in httpd.conf you can set it so you have the following config.. (this is on windows but same basically applies to other OS's) LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll AddType application/x-httpd-php .php .html this will enable .html file

RE: [PHP] Generate every possible combination

2002-05-16 Thread Lance Lovette
Here's the function I use: // array array_permute(array [, string]) // // Returns an array containing the permutations of the values in an array. // // Example: // $a = array(1, 2, 3); // $p = array_permute($a) // // Result: // p[0] = '1,2,3' // p[1] = '1,3,2' // p[2] = '2,1,3' // p[3] = '2,3,1'

Re: [PHP] Passing to an Applet

2002-05-16 Thread Dennis Moore
Am I missing something? This is too easy... But here goes... - Original Message - From: "Joshua Baker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 5:18 PM Subject: [PHP] Passing to an Applet All right I've s

RE: [PHP] Passing to an Applet

2002-05-16 Thread Peter
Should be ;) -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 1:10 PM To: Joshua Baker; [EMAIL PROTECTED] Subject: Re: [PHP] Passing to an Applet Am I missing something? This is too easy... But h

[PHP] can any one see a problem with this script?

2002-05-16 Thread Peter
hi can any one see a problem with this script .. I am trying to use phpbuilder's rss link for a site but am having errors \n\n"; $content .= "test\n"; $content .= "\n"; $content .= "\n"; //line 8 starts { $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10 ", "r") or die("Er

Re: [PHP] remote fetching??

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Gerard Samuel wrote: > I was about to modify a script that fetches files for xml content. It > currently does so using fsockopen. > I originally was going to use plain fopen, and I know that curl can also > be used. > Im looking for preferences as to use one method over ano

Re: [PHP] can any one see a problem with this script?

2002-05-16 Thread Steve Buehler
Not sure, but it might be the space that you have after the limit=10 Steve At 11:39 PM 5/16/2002, Peter wrote: >hi can any one see a problem with this script .. I am trying to use >phpbuilder's rss link for a site but am having errors > > >$content .= "\n\n"; >$content .= "test\n"; >$content .=

RE: [PHP] can any one see a problem with this script?

2002-05-16 Thread Peter
I have also tried adding the r option as I only want to read the file as follows $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10";, "r") or die("Error reading RSS data."); but I still get the same error message.. -Original Message- From: Steve Buehler [mailto

Re: [PHP] PHP in HTML

2002-05-16 Thread Jerome Houston
yeah, just find in your web server where to tell it what kind of files to send through php. there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome Original Message Follows From: Just

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome a better way to do that would be to make up your own extension so instead of having your server use .php for php files make it use .web

Re: [PHP] PHP in HTML

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 13:33, Jerome Houston wrote: > yeah, just find in your web server where to tell it what kind of files to > send through php. > > there are also possible good reasons for sending .html files through php. > like if you don't want users to know that your website is written in ph

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, Peter wrote: >> there are also possible good reasons for sending .html files through >> php. like if you don't want users to know that your website is written >> in php. > > a better way to do that would be to make up your own extension so > instead of having your server use

Re: [PHP] can any one see a problem with this script?

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 13:26, Peter wrote: > I have also tried > > adding the r option as I only want to read the file as follows > > $fp = fopen("http://www.phpbuilder.com/rss_feed.php?type=general&limit=10";, > "r") or die("Error reading RSS data."); > > but I still get the same error message..

[PHP] Sending data from java applet on client ?

2002-05-16 Thread Marco Laponder
Hi All, Does anybody know how to send binary data from an applet to a php page and save this into a blob ? Or is using afile upload my only option ( would like that because then it would have to be a signed applet :-( ) Any suggestions welcome ! Marco Laponder ( [EMAIL PROTECTED]

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
I find it better than having every page go thru php not to mention quicker. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 3:52 PM To: Peter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP in HTML On Fri, 17 May 2002, Peter wrote: >> there are a

[PHP] Can anyone help me with fopen ?

2002-05-16 Thread Roman Duriancik
I have some text file, in this text file i write some information. But my problem is : How write/append new information on beginning of document but old information will be there too. When I used fopen with option "a" or "r+" and with command rewind new information rewrited old information. Thanks

[PHP] Multiple Upload using list

2002-05-16 Thread Triax
Hello, currently I want to implement a multiple upload using a listbox. I have 2 link which will dynamically add or remove a file to/from the list box, I'm writing it as a java script as below. - function addFile(){ var temp, ext

[PHP] Problem with sending information with quotes

2002-05-16 Thread Rosen
Hi, I have follow PHP file test.php: if ($action=="") { echo ""; echo ""; echo ""; echo ""; echo ""; } if ($action=="send") { echo "$text"; // if in the input form I enter something with quotes, i.e. "TEST" //here the value of $text is \"TEST\" . The PHP send value to me with

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
Do you really find it noticeable quicker? Benchmarks I've seen (none of them that current) don't seem to support that. Depending on the software versions involved, it seems to be anywhere from much faster through PHP to a few % slower. Certainly no major penalty in any case. If there's interest I

Re: [PHP] Problem with sending information with quotes

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, Rosen wrote: > // if in the input form I enter something with quotes, i.e. "TEST" > //here the value of $text is \"TEST\" . The PHP send value to > me with backslah. > // > //How can I get the real entered, i.e. "TEST" ? Where is the problem ? http://php.n

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
true there's not that much difference .. though it would depend on the server's connection speed as well as the machines "grunt" as to how much of a difference there is. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 4:40 PM To: Peter Cc: [EMAIL

<    1   2