[PHP] slow upload with http post

2004-04-20 Thread Yavuz Maşlak
Hello I have a webserver that running php4.3.x,mysql3.5x,apache1.3.x on Mandrake9. I intended to transfer this server to another server. I installed Freebsd4.9 on newserver. and certainly apache1.3x,php4,mysql and concerning components. it works well. and I have a problem. We have 100Mbit/s Lan

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Red Wingate
Aidan Lister wrote: > Why do these functions wrap at approximately 80 chars? It's stupid! How > can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Red Wingate
Red Wingate wrote: > Aidan Lister wrote: > >> Why do these functions wrap at approximately 80 chars? It's stupid! How >> can this be worked around? > > It doesn't check the source to see that the browser wraps the text as it > reaches the border of the window. Oh just another note, use to skip

[PHP] Re: slow upload with http post

2004-04-20 Thread Red Wingate
Yavuz maFelak wrote: > Hello > I have a webserver that running php4.3.x,mysql3.5x,apache1.3.x on > Mandrake9. I intended to transfer this server to another server. > I installed Freebsd4.9 on newserver. and certainly apache1.3x,php4,mysql > and concerning components. it works well. and I have a

Re: [PHP] FW: Resizing Pictures

2004-04-20 Thread Lester Caine
Ryan Schefke wrote: How do you resize pictures once they're in a certain directory? I have the script to upload a picture, that's working fine. I just need some help with resizing it. Can someone help? Grab a copy of TikiWiki - http://freshmeat.net/projects/tiki/ It's quite a large system, but

Re: [PHP] FW: Resizing Pictures

2004-04-20 Thread Brent Clark
> Grab a copy of TikiWiki - http://freshmeat.net/projects/tiki/ > It's quite a large system, but there are lots of useful libraries in it. > lib/imagegals/imagegallib.php has a nice sample of building thumbnails > and smaller copies of the original as well as managing them. > Alternatively phpgall

Re: [PHP] Re: slow upload with http post

2004-04-20 Thread Yavuz Maslak
yes more or less we wait - Original Message - From: "Red Wingate" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 12:09 PM Subject: [PHP] Re: slow upload with http post > Yavuz maFelak wrote: > > > Hello > > I have a webserver that running php4.3.x,mysql3.5x,ap

RE: [PHP] Encrypting Source

2004-04-20 Thread Clifford W. Hansen
Thanx to all for the suggestions... Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +27 (0) 83 761-0240 (Mobile) [EMAIL PROTECTED] (EMail) http://chansen.aspivia.com (Web) Registered Linux user

[PHP] Parse error: parse error, unexpected '='

2004-04-20 Thread Lasse Motroen
I have received some code and am trying to run it. However, I get the following error: *Parse error*: parse error, unexpected '=', expecting ')' It happens on this line when &$args=array() is reached: function array_key_remove(&$args=array(), $keys=array(),$replacement=NULL) I have php-4.2.2-1

Re: [PHP] Parse error: parse error, unexpected '='

2004-04-20 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 20 Apr 2004 08:24, Lasse Motroen wrote: > I have received some code and am trying to run it. However, I get the > following error: > > *Parse error*: parse error, unexpected '=', expecting ')' > > It happens on this line when &$args=array()

[PHP] <button> tag

2004-04-20 Thread Richard Lewis
Hello PHPers, I'm not sure whether this is the best place to post this message... Some of the forms I'm using in a PHP project I'm working use the http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Re: sessions getting destroyed for *Some* clients

2004-04-20 Thread Jaskirat Singh
I do not think it is the server name issue. I used www.original-remote-control.co.uk for testing ..and I have done that scores of times now :) .. I do not use setcookie .. I just call session_start() in the beginning to set the cookie for session. Jas -- Make sure it's no

RE: [PHP] <button> tag

2004-04-20 Thread Hawkes, Richard
> Some of the forms I'm using in a PHP project I'm working use the > mailto:[EMAIL PROTECTED] Sent: 20 April 2004 09:45 To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Re: Parse error: parse error, unexpected '='

2004-04-20 Thread Craig
"Lasse Motroen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have received some code and am trying to run it. However, I get the > following error: > > *Parse error*: parse error, unexpected '=', expecting ')' > > It happens on this line when &$args=array() is reached: > > fun

RE: [PHP] <button> tag

2004-04-20 Thread Nunners
is not a standard HTML v4 tag You need: > -Original Message- > From: Richard Lewis [mailto:[EMAIL PROTECTED] > Sent: 20 April 2004 09:45 > To: [EMAIL PROTECTED] > Subject: [PHP]

Re: [PHP] <button> tag

2004-04-20 Thread Richard Davey
Hello Richard, Tuesday, April 20, 2004, 9:44:59 AM, you wrote: RL> They are working fine on Konqueror but don't seem to work properly on MSIE. RL> I tried inserting the debug code: I'm amazed that worked on Konqueror. It's not even valid HTML. You sure you didn't mean ? -- Best regards, Rich

[PHP] Re: <button> tag

2004-04-20 Thread Richard Lewis
Acutally, I've just worked out why its not working: I have multiple tags on the same page which all do different things (edit/delete/new...). They are all called 'submit' (name='submit') and have different 'value' values in order that the receiving script may distinguish between them: Edit Item

Re: [PHP] Re: <button> tag

2004-04-20 Thread Richard Davey
Hello Richard, Tuesday, April 20, 2004, 9:55:15 AM, you wrote: RL> Acutally, I've just worked out why its not working: Other than it not being valid HTML you mean? :) RL> I have multiple tags on the same page which all do different things RL> (edit/delete/new...). They are all called 'submit'

Re: [PHP] Re: <button> tag

2004-04-20 Thread Richard Lewis
>In all fairness to IE, it WILL send the value of each button - but PHP >cannot distinguish between them all because you have given them all >the same name! :) > >RL> Does allow this sort of functionality? > >If it has a unique name, sure: > > So what if I want to know which button was pressed to

Re[2]: [PHP] Re: <button> tag

2004-04-20 Thread Richard Davey
Hello Richard, Tuesday, April 20, 2004, 10:17:42 AM, you wrote: >>In all fairness to IE, it WILL send the value of each button - but PHP >>cannot distinguish between them all because you have given them all >>the same name! :) >> >>RL> Does allow this sort of functionality? >> >>If it has a uniq

Re[2]: [PHP] <button> tag

2004-04-20 Thread Richard Davey
Hello Mike, Tuesday, April 20, 2004, 11:15:07 AM, you wrote: FML> Bzzt! Completely wrong. See FML> http://www.w3.org/TR/html401/interact/forms.html#h-17.5. Yeah, already covered this. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http

RE: [PHP] Unwanted e-mails

2004-04-20 Thread Ford, Mike [LSS]
On 19 April 2004 23:02, Lester Caine wrote: > OK 72 Hours later I got 6 bounce messages back related to Fridays > eMails direct to lists.php.net ( one of which is yet another attempt > to unsubscribe from php-db ) > > > Delivery-date: Mon, 19 Apr 2004 20:30:30 +0100 > > Received: from dswu27.btc

[PHP] Re: $PHP_SELF problem

2004-04-20 Thread Red Wingate
[EMAIL PROTECTED] wrote: > Hi > > $thisFileName = $PHP_SELF; works in a file just a few lines after the > program start. > > $thisFileName = $PHP_SELF; doesn't work (echo ("Debug: self: > $PHP_SELF"); returns Debug: self: ) if it's within function > getNavigation() in the Navigation object calle

RE: [PHP] <button> tag

2004-04-20 Thread Ford, Mike [LSS]
On 20 April 2004 09:45, Nunners wrote: > is not a standard HTML v4 tag Bzzt! Completely wrong. See http://www.w3.org/TR/html401/interact/forms.html#h-17.5. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, L

[PHP] Re: $PHP_SELF problem

2004-04-20 Thread Craig
http://ie.php.net/globals Instead of $PHP_SELF use $_SERVER['PHP_SELF'] Craig "Red Wingate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > > Hi > > > > $thisFileName = $PHP_SELF; works in a file just a few lines after the > > program start. > > > > $t

[PHP] $PHP_SELF problem

2004-04-20 Thread john
Hi $thisFileName = $PHP_SELF; works in a file just a few lines after the program start. $thisFileName = $PHP_SELF; doesn't work (echo ("Debug: self: $PHP_SELF"); returns Debug: self: ) if it's within function getNavigation() in the Navigation object called by another program. Why? The Navigatio

RE: [PHP] Unwanted e-mails

2004-04-20 Thread Ford, Mike [LSS]
On 20 April 2004 07:47, Lester Caine wrote: > Chris W. Parker wrote: > > > but your messages *ARE* getting accepted otherwise i would not be > > reading this email right now! > > NO THEY ARE NOT - This reply HAS to be sent via the newsgroup! > > The bounce messages I am getting are as a result

Re: [PHP] Unsubscribing Was: Unwanted e-mails

2004-04-20 Thread David Robley
[EMAIL PROTECTED] (Lester Caine) wrote in news:[EMAIL PROTECTED]: > Chris Shiflett wrote: > >>>If you look at the first post above, it appears he is hitting >>>"Reply" to list messages, trying to unsubscribe by sending a post >>>to the list. If you look at the text of the return that he passed o

RE: [PHP] Unwanted e-mails

2004-04-20 Thread Red Wingate
[...] >> > but your messages *ARE* getting accepted otherwise i would not be >> > reading this email right now! >> >> NO THEY ARE NOT - This reply HAS to be sent via the newsgroup! >> >> The bounce messages I am getting are as a result of .php.net NOT >> accepting my perfectly valid posts! > > N

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
No, PHP explicity inserts at 80chars "Red Wingate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Red Wingate wrote: > > > Aidan Lister wrote: > > > >> Why do these functions wrap at approximately 80 chars? It's stupid! How > >> can this be worked around? > > > > It doesn't check

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Red Wingate
I just build a testcase to check wether PHP does or not and it doesn't even if i have 1080 chars in a line :p -- red > No, PHP explicity inserts at 80chars > > > "Red Wingate" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Red Wingate wrote: >> >> > Aidan Lister wrote: >> >

[PHP] Whats faster? text files or mysql?

2004-04-20 Thread Andrew Fenn
I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putting it in a mysql table? - Yahoo! Messenger - Communicate instantly..."Ping" your friends

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
It seems they've fixed this in php5, so I can't complain. "Aidan Lister" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why do these functions wrap at approximately 80 chars? It's stupid! How can > this be worked around? -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Unsubscribing Was: Unwanted e-mails

2004-04-20 Thread Lester Caine
David Robley wrote: If all else fails, does an email to listname-owner work for you? Also, the info at http://auseinet.flinders.edu.au/links/lists/ezmlm.html might be helpful. Unfortunately not :) The list owner is [EMAIL PROTECTED] which is still a .php.net address, and so gets a bounce messag

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Aidan Lister
Here's a PHP4 example: http://ircphp.com/users/imho/?file=function.str_chop.php Here's an example where PHP has explicitly wrapped at 80 chars, but only the PHP, not the HTML. http://ircphp.com/users/imho/ "Red Wingate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I just build

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Jay Blanchard
[snip] I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putting it in a mysql table? [/snip] Sounds like the perfect opportunity to set up a test! File I/O is always slower. -- PHP General Mailing

[PHP] Re: Whats faster? text files or mysql?

2004-04-20 Thread Aidan Lister
Ofcourse "Andrew fenn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putting it in a mysql table? > > > > >

Re: [PHP] Re: <button> tag

2004-04-20 Thread John W. Holmes
From: "Richard Lewis" <[EMAIL PROTECTED]> > >In all fairness to IE, it WILL send the value of each button - but PHP > >cannot distinguish between them all because you have given them all > >the same name! :) > > > >RL> Does allow this sort of functionality? > > > >If it has a unique name, sure: >

RE: [PHP] PHP Web Hosting

2004-04-20 Thread Martin, Stanley G [Contractor for Sprint]
This was the email I was looking for. I found my answer in this forum. Come to find out, the owner of Domehost.com was in jail and it was/is a one man operation. Too bad, everything they had was working great, just couldn't get any minor support from them. Got my money's worth and now it's time to

Re: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Travis Low
Isn't the database kept in a file? Why would that file be faster than a plain text file? cheers, Travis Jay Blanchard wrote: [snip] I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putting it i

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Jay Blanchard
[snip] Isn't the database kept in a file? Why would that file be faster than a plain text file? [/snip] Of course it is, but the file is kept accessible by the database server deamon so you are not reading from a file in the tradional sense. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Re: sessions getting destroyed for *Some* clients

2004-04-20 Thread Hardik Doshi
The another problem could be your clients have disabled the cookies on their browsers. Are you taking care of that consideration while writing your scripts? If your clients have disabled the cookies on their browsers then you need to pass session id value from the URL. Let me know if that is the

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Mark Cubitt
I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. I could be wrong though Regards Mark Cubitt > -Original Message- > From: Travis Low [mailto:[EM

RE: [PHP] FW: Resizing Pictures

2004-04-20 Thread Hardik Doshi
You can resize a file using the GD library. Look for the GD library functions in php manual. Hardik Doshi > [...] > > Hi Warren, > > > > Thanks for the reply; however, that wasn't the > answer I was searching for. > > Using PHP, I would like to resize a file once it's > store in a directory on >

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread T. H. Grejc
Justin Patrin wrote: The threading works just fine. The problem is that users have ignorant mail software that don't set the thread headers correctly. Even newsgroup client software might do this. This is *not* the server's fault in any way, shape, or form. Sure it's not servers fault, knowing t

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Jay Blanchard
[snip] I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. [/snip] There is always awk! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread John W. Holmes
From: "Andrew Fenn" <[EMAIL PROTECTED]> > I have two text files with two rows of data on each > line sperated by a tab for about 20 lines in each file. > Would it be faster accessing this data by putting it in a > mysql table? Depends what you want to do with the data. If you're searching through

Re: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread John Nichel
Mark Cubitt wrote: I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. I could be wrong though It would really depend on the size of the file, and how the db t

[PHP] single quote escape questions

2004-04-20 Thread Kathleen Ballard
I would like some advice on special/reserved chars in strings, especially single quotes. I am developing an application that requires using a Name field in the url for navigation. I have a case where "Toni's" in the url is returned in $_SERVER['PATH_INFO'] as "Toni\'s" eventhough the address bar

Re: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread John Nichel
Jay Blanchard wrote: [snip] I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. [/snip] There is always awk! Aw, no votes for cat | grep? ;) -- *

Re: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread John W. Holmes
From: "Tom Rogers" <[EMAIL PROTECTED]> > JWH> Does anyone know of a script that'll receive the results of a form, > JWH> parse the original form and substitute the user supplied data in for the > JWH> form elements and then send an HTML email of the "form"? > > Here is a class I use with my templat

Re: [PHP] single quote escape questions

2004-04-20 Thread Hardik Doshi
> Secondly, what is best/favorite way to escape chars > for mysql? I know that mysql_real_escape_string() > has been recommended recently. But that brings up > the > issue of magic quotes. Would > set_magic_quotes_runtime(0) be a reliable way of > making sure my code runs with magic quotes off

Re[2]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Tom Rogers
Hi, Tuesday, April 20, 2004, 11:29:41 PM, you wrote: JWH> From: "Tom Rogers" <[EMAIL PROTECTED]> >> JWH> Does anyone know of a script that'll receive the results of a form, >> JWH> parse the original form and substitute the user supplied data in for JWH> the >> JWH> form elements and then send an

RE: [PHP] PHP Web Hosting

2004-04-20 Thread Ryan A
On 4/20/2004 3:03:36 PM, Martin, Stanley G [Contractor for Sprint] ([EMAIL PROTECTED]) wrote: > This was the email I was looking for. I found my answer in this forum. > Come to find out, the owner of Domehost.com was in jail and it was/is a > one man operation. Too bad, everything they had was wor

[PHP] Extension : compiling several .C files ?

2004-04-20 Thread user
Hi, I've learn how to compile a simple (with only one .C file) extension under Windows and Linux. And multi .C file compilation with Windows. But how can I compile a PHP extension composed by several .C files ? I'm not an expert in GCC compilation. So perheaps I've missed something. For linux,

Re: Re[2]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread John W. Holmes
From: "Tom Rogers" <[EMAIL PROTECTED]> > It does not need to know the form elements, only the reserved words it > uses and you take those out and pass them directly to the class if > needed. It takes the variable name from the POST array and uses it with > the value. No need to know what the input

[PHP] Re: show_source or highlight_string wrapping

2004-04-20 Thread Red Wingate
Maybe you take a look at the source as there ARE NO linebreaks in any wrong places. I know the source produced by PHP's Source functions is a mess but take yourself a while and you will see there are no linebreaks at all :p -- red Aidan Lister wrote: > Here's a PHP4 example: > http://ircphp.com/

Re: [PHP] Re: <button> tag

2004-04-20 Thread Red Wingate
Try something like this: function submit_form( type ) { document.forms['submit_form'].elements['mode'].value = type; document.forms['submit_form'].submit(); } [...] > switch ($_POST['submit']) > { > case "edit": ... > case "new": ... > } [...] -- PHP General Mailing List

Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Tom Rogers
Hi, Wednesday, April 21, 2004, 12:05:08 AM, you wrote: JWH> I see what you're doing here, but it doesn't fit what I'm looking for JWH> exactly. You just create a Key : Value list to include in the email. I want JWH> the email to look exactly like the form, only substitute in the values JWH> submit

[PHP] Upload file form

2004-04-20 Thread Jeff McKeon
Ok, not exactly pure PHP problem but I hope someone here has seen this before.. I'm got an upload form on a webpage, here's the code: SNIP ?> Select the file type and browse for that file. The press 'Upload'. The file will be uploaded to the server. No changes in the database are done du

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread -{ Rene Brehmer }-
At 16:29 19-04-2004, Curt Zirzow wrote: * Thus wrote T. H. Grejc ([EMAIL PROTECTED]): > Hello, > > I've seen this subject before, but never really got any answer. PHP have > news server at news.php.net but it is 'always' down and it is only a > mailing list mirror, so some messages get lost or get

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread Red Wingate
[...] > That is mostly Outlook and OE that are real good at trashing the Xref ... > others (old) clients do it too, but OE is the biggest sinner in that > aspect... (and Outlook runs on the OE engine when it comes to mail). [...] who is outlook ? :-) -- PHP General Mailing List (http://www.php.n

Re: [PHP] PHP Web Hosting

2004-04-20 Thread -{ Rene Brehmer }-
Don't know about that particular host either ... But I'm very happy with Westhost (http://westhost.com/) ... I moved over from DotServ ... Nomatter what my question's been, I've gotten response from Westhost within the matter of 30 minutes ... and it's been kind responses too, even when I've cr

Re: [PHP] PHP Web Hosting

2004-04-20 Thread -{ Rene Brehmer }-
At 21:19 19-04-2004, John Nichel wrote: Greg Donald wrote: Your signature is twice the rfc1855 suggested limit. http://www.faqs.org/rfcs/rfc1855.html - If you include a signature keep it short. Rule of thumb is no longer than 4 lines. And the RFC1885 'guidelines' are also almost 10 years old. I

RE: [PHP] PHP Web Hosting

2004-04-20 Thread -{ Rene Brehmer }-
Yes... Of course you can, it's yours. I've got mine registered at enom through Westhost, and westhost gives me a registrar interface so I can do whatever I want with my domain ... make new TLDs, add/remove pointers, and stuff like that ... not sure what other hosts provide just as simple a way

Re: [PHP] PHP Web Hosting

2004-04-20 Thread John Nichel
-{ Rene Brehmer }- wrote: At 21:19 19-04-2004, John Nichel wrote: Greg Donald wrote: Your signature is twice the rfc1855 suggested limit. http://www.faqs.org/rfcs/rfc1855.html - If you include a signature keep it short. Rule of thumb is no longer than 4 lines. And the RFC1885 'guidelines' are

RE: [PHP] Re: Converting XML into something PHP like....

2004-04-20 Thread Nunners
Hi Folks, At the end of the email is a var_dump of my XML... I can go through and do foreach on each section, however, this is completely useless in practice. How do I call things like $data["Title"] and $data["avail_dataset"]["0"]["dept_date"]? At the moment, every time I do this, it comes out

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread -{ Rene Brehmer }-
Isn't there a european mirror of that server ??? ... I can't even get a connection to news.php.net Rene At 21:46 19-04-2004, Red Wingate wrote: Same here, just installed some Newsgroup Software and everything works just fine for me :-) -- red Justin Patrin wrote: Curt Zirzow wrote: * Thus wr

RE: [PHP] Upload file form

2004-04-20 Thread Jeff McKeon
> -Original Message- > From: Jeff McKeon > Sent: Tuesday, April 20, 2004 10:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Upload file form > > > Ok, not exactly pure PHP problem but I hope someone here has > seen this before.. > > I'm got an upload form on a webpage, here's the code:

Re: [PHP] Unwanted e-mails

2004-04-20 Thread -{ Rene Brehmer }-
At 00:16 20-04-2004, Andy B wrote: > BUT that does not help at all. btconnect is my service provider, and I > have to send my eMails through them. The messages are caused by > lists.php.net not accepting my messages >but your messages *ARE* getting accepted otherwise i >would not be >reading t

RE: [PHP] Re: Converting XML into something PHP like....

2004-04-20 Thread Red Wingate
Nunners wrote: Array != Object echo $data->Title .''; echo $data->avail_dataset[0]->dept_date .''; etc. pp There are some examples on how to convert your XML-Dump into an Array check out the comments over at php.net -- red [...] > Hi Folks, > > At the end of the email is a var_dump of my XM

[PHP] Logic problem

2004-04-20 Thread Alex Hogan
Hi All, I am having a logic problem. (insert jokes here) I am trying to create a function that will allow me to pass any number of fields and tables into a blanket query. I am getting an error; Unexpected foreach. I have tried placing the loop in several different places and am getting the same

[PHP] Re: Logic problem

2004-04-20 Thread Red Wingate
As foreach is a language-construct you cannot concat it to a string. try something like: $temp = '.'; foreach ( $array AS $key ) $temp .= ''.$key.''; $temp .= ''; instead --red [...] > Hi All, > > I am having a logic problem. (insert jokes here) I am trying to create a

RE: [PHP] CURL Help

2004-04-20 Thread jon roig
You wanna feed it an array - something like this: $post_array = array( "x_Login"=> $config['authnetLogin'] ,"x_Password"=> $config['authnetPass'] ,"x_Type"=> $config['authnetXtype'] ,"x_Method" => "CC" ,"x_Version" => "3.0" ,"x_A

Re: [PHP] Logic problem

2004-04-20 Thread John Nichel
Alex Hogan wrote: Hi All, I am having a logic problem. (insert jokes here) I am trying to create a function that will allow me to pass any number of fields and tables into a blanket query. I am getting an error; Unexpected foreach. I have tried placing the loop in several different places and am

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-20 Thread Curt Zirzow
* Thus wrote T. H. Grejc ([EMAIL PROTECTED]): > Justin Patrin wrote: > >The threading works just fine. The problem is that users have ignorant > >mail software that don't set the thread headers correctly. Even > >newsgroup client software might do this. This is *not* the server's > >fault in any

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] > $query = "SELECT "; > $start = true; > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds[$i]; > $start = false; > } else { > $query .= ", " . $flds[$i]; > } > } > $query .= " FROM "; > $start = true; > foreach ( $

Re: [PHP] slow upload with http post

2004-04-20 Thread William Lovaton
full duplex or half duplex? El mar, 20-04-2004 a las 02:00, Yavuz Maşlak escribió: > Hello > I have a webserver that running php4.3.x,mysql3.5x,apache1.3.x on Mandrake9. > I intended to transfer this server to another server. > I installed Freebsd4.9 on newserver. and certainly apache1.3x,php4,

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
[snip] I do have one question though. I ran your code and it only returns the first letter for that element in the array. For instance fieldone returns as f and tableone returns as t. The output looks like this; SELECT f,f,f FROM t,t. [/snip] Never mind I found it. It should be; $query = "SELEC

[PHP] session variables

2004-04-20 Thread Charles Collins
I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session Support = Enabled session.auto_start = Off session.cache_expir

RE: [PHP] session variables

2004-04-20 Thread Vincent DUPONT
I would do script 1 : $_SESSION['test'] = "hello world"; and in script2 : print($_SESSION['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files r

Re: [PHP] Logic problem

2004-04-20 Thread Kelly Hallman
Apr 20 at 9:55am, Alex Hogan wrote: > function myselect($array1, $array2){ > $query = "SELECT".foreach($array1 as $flds){ $flds[$i]; }. > "FROM".foreach($array2 as $tbls){ $tbls[$n]; } ... Alex, if you merely wish to place the values of an array into your query, you might also try doing it th

Re: [PHP] session variables

2004-04-20 Thread Charles Collins
Dear Vincent, Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get the damn thing working. Regards, Charlie. "Vincent Dupont" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I would do script 1 : $_SESSION['test'] = "hello world"; and in script2 : print($_SESSI

[PHP] Forking external binaries

2004-04-20 Thread Mark
Hello All, I was hoping to benefit from the collective wisdom of the list. We have a web application that forks off an external program to inject an email in the outgoing queue. At busy periods this external program (qmail-inject) can take a little while to return. I'm currently using popen() to

RE: [PHP] Logic problem

2004-04-20 Thread Ford, Mike [LSS]
On 20 April 2004 16:44, Alex Hogan wrote: > foreach ( $array1 as $flds ) { > if ( $start ) { > $query .= $flds; > $start = false; > } else { > $query .= ", " . $flds; > > } > } $query .= implode(", ", $array1); Cheers! Mike --

RE: [PHP] Upload file form SOLVED

2004-04-20 Thread Jeff McKeon
The problem is solved. /etc/httpd/conf.d/php.conf the parameter LimitRequestBody is set to 524288 by default. Jeff > -Original Message- > From: Jeff McKeon > Sent: Tuesday, April 20, 2004 10:48 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Upload file form > > > > -Original Me

Re: [PHP] Logic problem

2004-04-20 Thread John Nichel
Alex Hogan wrote: I gotcha.., I do have one question though. I ran your code and it only returns the first letter for that element in the array. For instance fieldone returns as f and tableone returns as t. The output looks like this; SELECT f,f,f FROM t,t. alex What's in your array? -- ***

[PHP] Search for a *

2004-04-20 Thread Brent Clark
Hi all how do you search for a * in preg_match Kind Regards Brent Clark

Re: [PHP] Search for a *

2004-04-20 Thread Curt Zirzow
* Thus wrote Brent Clark ([EMAIL PROTECTED]): > Hi all > how do you search for a * in preg_match You need to escape it: preg_match('/\*/', $var); Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Logic problem

2004-04-20 Thread Alex Hogan
> What's in your array? $array1[0] = 'firstname'; $array1[1] = 'lastname'; $array1[2] = 'tkt_title'; I got that fixed. Thanks. alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and i

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
hum. Try $_SESSION['test'] on page 2. > I have two test files running on a server, which is giving me a headache, > due to the fact the session variables are not been maintained across the > two > pages. > > The server is running ... > > PHP Version = 4.0.5 > register_globals = ON > Session Supp

Re: [PHP] Search for a *

2004-04-20 Thread Brent Clark
> preg_match('/\*/', $var); Thanks, worked like charm Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
Does page1 call page2? Or do you open another browser window and open page2? My understanding is some browsers to NOT transfer the same session info to another borwser window. > Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get > the damn thing working. > > Regards, > Cha

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Charles Collins ([EMAIL PROTECTED]): > I have two test files running on a server, which is giving me a headache, > due to the fact the session variables are not been maintained across the two > pages. > > The server is running ... > > PHP Version = 4.0.5 > register_globals = ON > Se

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > This looks like output from 'php -i'. The php module *can* have a > different config, check these values from phpinfo() in a webpage > in the same directory as your scripts with I fired my proofreader so I have to do this manually now :) s/ with/.

[PHP] ADOdb SQL Updates

2004-04-20 Thread Gabe
I'm trying to do a simple update to an access database using the ADOdb library. For some reason I can't get it to work. I can however, get a simple select statment to work just fine. Take a look at my code below as well as the error message. Maybe someone can help me out. As you'll see bel

RE: [PHP] FW: Resizing Pictures

2004-04-20 Thread Vail, Warren
OK, here you have lots of options using PHP gd extensions just to start (or not). Just specifying width and height in your html IMG statement will result in the image being resized by the browser, however, the entire image file must be transferred to the browser. http://www.php.net/manual/en/ref.

RE: [PHP] ADOdb SQL Updates

2004-04-20 Thread Jay Blanchard
[snip] I'm trying to do a simple update to an access database using the ADOdb library. Any help is much appreciated! [/snip] What error message are you getting? You are outputting an error message when queries fail, aren't you? Does the connected user have permission to perform updates on the sp

Re: [PHP] ADOdb SQL Updates

2004-04-20 Thread Curt Zirzow
* Thus wrote Gabe ([EMAIL PROTECTED]): > ... > (access): UPDATE tblFAQ_Book SET tblFAQ_Book.fldTitle = "one more test" > WHERE (tblFAQ_Book.autoBookID = 1) > > Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1., SQL state 07001 in > SQLE

[PHP] Resizing Pictures

2004-04-20 Thread Ryan Schefke
How do you resize pictures once they're in a certain directory? I have the script to upload a picture, that's working fine. I just need some help with resizing it. Can someone help? Thanks!

  1   2   >