[PHP] mysql - xml

2002-11-26 Thread Snijders, Mark
hello, For connection data between my site, and another site, I need to export my MySql data to a XML file. Does anybody know any excisting scripts for this? so I don't have to make it all myself? Thanks, Mark Snijders -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] mysql - xml

2002-11-26 Thread @ Edwin
Hello, Snijders, Mark [EMAIL PROTECTED] wrote: hello, For connection data between my site, and another site, I need to export my MySql data to a XML file. Does anybody know any excisting scripts for this? so I don't have to make it all myself? Have you checked the latest version of

Re: [PHP] Re: Sorting parsed XML

2002-11-26 Thread @ Edwin
Geoff Hankerson [EMAIL PROTECTED] wrote: This seems to me to be more easily handled by XSLT. (Not the only option but a good one). XSLT lets you select only the nodes you want and also sort them as well. Perhaps... but not all browsers support it. Anyway, you can also select the nodes in

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread Beauford.2002
Thanks for the reply, however, that will not work. The only line breaks you may get with that are those layed out in a text box or from your mail client. What if I have other variables that need to be put in the body of the email. i.e. Age: 16 Height: 168 Weight: 120 etc etc etc. These are

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread Ewout de Boer
Try '\r\n' instead of '\n' regards, Ewout de Boer - Original Message - From: Beauford.2002 [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Kyle Gibson [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:17 AM Subject: Re: [PHP] Re: More mail() questions. Thanks for the reply, however,

Re: [PHP] amp; in Query String

2002-11-26 Thread Marek Kilimajer
Get mailed also $_SERVER['HTTP_USER_AGENT'], I would like to see which browser does that. amp; should get translated to , but not vice versa Jonathan Rosenberg wrote: I have a page with thumbnail pictures that can be clicked on to see a larger picture. Each picture is hyperlinked as follows

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread Beauford.2002
Tried that, but no go. I did figure it out however. Putting the following at the bottom of the $header seemed to work. $headers .= --=MIME_BOUNDRY_message_parts\n; $headers .= Content-Type: text/plain; charset=\iso-8859-1\\n; $headers .= Content-Transfer-Encoding:

[PHP] Re: Making verification code harder to OCR?

2002-11-26 Thread Steve Edberg
There was a thread about something similar to this on Slashdot oh, at least a year ago. One technique that was suggested was to draw a random image on the screen - say, a grid of colored squares, or a set of different shapes/images - and just direct people to 'pick the blue square' or 'click

[PHP] executing a command in different prompt through PHP

2002-11-26 Thread Sanjoy Kumar Roy
hi, i want to know how to execute a command of another program in PHP. For example, i run a server program and get a command prompt from that server program. Now i want to execute a command of that server program in that command prompt from a web interface that is going to be designed in PHP. i

Re: [PHP] array manipulations

2002-11-26 Thread Marek Kilimajer
if all you might have there is 'error', try if(array_search('error',$array) === FALSE) { echo 'not ok'; } if you might have different strings, do $result='ok'; foreach($array as $v) { if($v) { $result ='not ok'; break; } } Mattia wrote: Can anyone suggest an ELEGANT way

[PHP] session.save_path = /dev/shm

2002-11-26 Thread Jacob Larsen
When I use session.save_handler = mm I can only make it work by setting session.save_path = /dev/shm Is that how it should be? Regards, Jacob www.sharksforum.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Missing images

2002-11-26 Thread Martin Johansson
I had this problem when I stored my images on another webserver, and linked the images with the whole adress like img src=http://somewhere/image.gif; I solved the problem by copying the images to the same webserver that views the page. The last webserver was to slow to replay that it had the

[PHP] Re: session.save_path = /dev/shm

2002-11-26 Thread Jacob Larsen
sorry, the solution was not to use session.save_path=/dev/shm, but to install a new version of mm. Regards, Jacob www.sharksforum.com When I use session.save_handler = mm I can only make it work by setting session.save_path = /dev/shm Is that how it should be? -- PHP General Mailing

[PHP] calling a php function

2002-11-26 Thread Adrian Partenie
Hello, Can I call a php function using forms in the same way as I do for a javascript function? (in the same page, not with php_self). ?php function() {... } ? form method=post action=function() . /form Thanks, Adrian

Re: [PHP] calling a php function

2002-11-26 Thread John Nichel
No, you can't. PHP is run on the server side. JavaScript is client side. Adrian Partenie wrote: Hello, Can I call a php function using forms in the same way as I do for a javascript function? (in the same page, not with php_self). ?php function() {... } ? form method=post

[PHP] store images in mysql tables

2002-11-26 Thread Vivek Kedia
can i store images in mysql table using php , is it possible if yes then pl show me where i can read more about it [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP

Re: [PHP] store images in mysql tables

2002-11-26 Thread Justin French
Please do a quick google search first: http://www.google.com/search?hl=enie=ISO-8859-1q=storing+images+in+mysqlb tnG=Google+Search Or at least TRY to find the answer by yourself. on 26/11/02 11:42 PM, Vivek Kedia ([EMAIL PROTECTED]) wrote: can i store images in mysql table using php , is it

[PHP] If statement w/ multiple conditions

2002-11-26 Thread ed
I'll be trying to use a routine that checks 4 seperate variables for content and need to know the easiest method to do so. The function works on 2 conditions; either all the variables are empty and I do something or I do something else. $lineone $linetwo $linethree $linefour Would you use

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
At 13:50 26.11.2002, [EMAIL PROTECTED] said: [snip] I'll be trying to use a routine that checks 4 seperate variables for content and need to know the easiest method to do so. The function works on 2 conditions; either all the variables are empty and I do

Re: [PHP] Automajickally POST to a remote form

2002-11-26 Thread Kris Williams
You can post with PHP using cURL or doing it yourself manually. Search the archives for this, as the previous answers to this are more complete than what I have time to explain now. Here is a quick example of the manual approach: http://shiflett.org/tutorials/php_post.txt Thanks Chris. A

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread ed
All four must be an empty string. I will be pulling the values from a MySQL database. If these fields are empty I'll be prompting for information. If any one of them contain anything I'll be showing it to the user and asking if they want to change it. Thanks, Ed On Tue, 26 Nov 2002, Ernest E

Re: [PHP] store images in mysql tables

2002-11-26 Thread Martin Johansson
Yes you can store images in a mysql table. But you will have to create a new binary database. You can read here how it works: http://www.phpbuilder.com/columns/florian19991014.php3 It is a easy to understand text. /Martin Justin French [EMAIL PROTECTED] skrev i meddelandet [EMAIL

[PHP] IIS and PHP with $HTTP_SERVER_VARS

2002-11-26 Thread Shaun Garriock
Hi The problem I am having is as follows: I setup PHP with IIS and it seems to work fine. I am creating a Intranet site and would like to obtain the user logged on to the networks username. I have setup basic auth but when I visit the site it asks me for my username and password before I can get

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread DL Neil
Ed, Assuming there will be a response from the db-tbl, here is another choice: if ( $lineone . $linetwo . $linethree . $linefour ) { //show it to the user and ask if they want to change it } else { //prompt for information } Do you mean that the db-tbl will have a row of data even if the

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread ed
The db will include these 4 rows even though they don't store data. Eventually they will contain data for contact info as soon as the users log in and it prompts them for it. On Tue, 26 Nov 2002, DL Neil wrote: Ed, Assuming there will be a response from the db-tbl, here is another choice:

[PHP] passing complete URL through php scripts using javascript popup

2002-11-26 Thread Nicole Lallande
Gretings: I am trying to set up a referal script; I want to pass a URL query string to another php script. I am able to pass the complete query string with all the variables I want through to the javascript function call but then the string gets cut in the php script: in the shopping cart:

[PHP] DBX: eq to mysql_insert_id

2002-11-26 Thread Mirek Novak
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, does anybody know how to obtain id of last inserted row via dbx ? - -- - -- Mirek Novak ICQ:119499448 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: [PHP] Re: Sorting parsed XML

2002-11-26 Thread Geoff Hankerson
You don't need to do client-side transformation (although you could check user agent and do it client-side if the browser supports it). You can use Php's XSLT functions see the manual for more info. I was just suggesting this as a potential option. It may not be appropriate in this situation. I

[PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... ?php if(empty($_GET['1']) empty($_GET['2']) empty($_GET['3']) empty($_GET['4'])){ echo All vars are EMPTY; }else{ echo Some vars contain Content; } ? [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'll be

[PHP] base64_decode()

2002-11-26 Thread Cenk Uysal
hi, i want to save a base64 encoded string after i decode it. i saw that base64_decode function returns a string. so how do i save it as a binary file? i plan to save it to postgresql database field. thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... ?php if(empty($_GET['1']) empty($_GET['2']) empty($_GET['3']) empty($_GET['4'])){ echo All vars are EMPTY; }else{ echo Some vars contain Content; } ? [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The db will

Re: [PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread ed
That's what I was looking to acheive. Thanks! Ed On Tue, 26 Nov 2002, Craig wrote: Something like this will work... ?php if(empty($_GET['1']) empty($_GET['2']) empty($_GET['3']) empty($_GET['4'])){ echo All vars are EMPTY; }else{ echo Some vars contain Content;

[PHP] can't pass complete URL (part of the query string) from one scriptto another --??

2002-11-26 Thread Nicole Lallande
Gretings: I want to pass a URL query string to another php script. I am able to pass the complete query string with all the variables I want through to the javascript function call but then the string gets cut in the php script: in the shopping cart: a href=javascript:

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread 1LT John W. Holmes
Tried that, but no go. I did figure it out however. Putting the following at the bottom of the $header seemed to work. $headers .= --=MIME_BOUNDRY_message_parts\n; $headers .= Content-Type: text/plain; charset=\iso-8859-1\\n; $headers .= Content-Transfer-Encoding:

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread 1LT John W. Holmes
Thanks for the reply, however, that will not work. The only line breaks you may get with that are those layed out in a text box or from your mail client. What if I have other variables that need to be put in the body of the email. i.e. Age: 16 Height: 168 Weight: 120 etc etc etc.

AW: [PHP] can't pass complete URL (part of the query string) from one script to another --??

2002-11-26 Thread Martin Lucas
hi nicole, do you have an example what your query contains ? maybe urlencode($pageURL) or quoting will help greetings martin -Ursprüngliche Nachricht- Von: Nicole Lallande [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 26. November 2002 15:40 An: [EMAIL PROTECTED] Betreff: [PHP]

[PHP] Re: can't pass complete URL (part of the query string) from one script to another --??

2002-11-26 Thread Erwin
Nicole Lallande wrote: Gretings: I want to pass a URL query string to another php script. I am able to pass the complete query string with all the variables I want through to the javascript function call but then the string gets cut in the php script: in the shopping cart: a

[PHP] using mbstring without having /configure'd it

2002-11-26 Thread Oliver Spiesshofer
Hi, Is it possible to use mbstring after setting the necessary values in ini_set() or htaccess without having it enabled during /configure? thanks Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multiple page form

2002-11-26 Thread Shane McBride
Hi there. It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call them on the last page. The

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Boget
It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call them on the last page. The application

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Ernest E Vogelsinger [EMAIL PROTECTED] wrote: At 13:50 26.11.2002, [EMAIL PROTECTED] said: if ($lineone $linetwo $linethree $linefour = ) Your expression yields true if 1-3 are not-empty AND four is an empty string. Actually, this expression yields true when $lineone, $linetwo, and

[PHP] Re: using mbstring without having /configure'd it

2002-11-26 Thread Erwin
Oliver Spiesshofer wrote: Hi, Is it possible to use mbstring after setting the necessary values in ini_set() or htaccess without having it enabled during /configure? Nope...the functions of mb are unknown, because you didn't compile them. Grtz Erwin -- PHP General Mailing List

Re: [PHP] Re: Sorting parsed XML

2002-11-26 Thread @ Edwin
Geoff Hankerson [EMAIL PROTECTED] wrote: You don't need to do client-side transformation (although you could check user agent and do it client-side if the browser supports it). You can use Php's XSLT functions see the manual for more info. I was just suggesting this as a potential option.

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Shiflett
--- Shane McBride [EMAIL PROTECTED] wrote: I don't remember if I need to pass variables along with the form for each page, or can I just call them on the last page. Consider using sessions: http://www.php.net/manual/en/ref.session.php Chris -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Multiple page form

2002-11-26 Thread Shane McBride
So, you are using a database to store the records? -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:45 AM To: Shane McBride; [EMAIL PROTECTED] Subject: Re: [PHP] Multiple page form It's been a while since I have done any PHP work. I am

[PHP] Re: amp; in Query String

2002-11-26 Thread Erwin
Derick Rethans wrote: Jonathan Rosenberg wrote: I have a page with thumbnail pictures that can be clicked on to see a larger picture. Each picture is hyperlinked as follows a HREF=show_pic.php?pic=blahcaption=Some+Text I access the 'pic' 'caption' attributes with $_GET['pic'], etc.

[PHP] using declare .. ticks functionality

2002-11-26 Thread Simon Taylor
Hi All, Quick question, has anyone had any luck using the register_tick_function and declare (ticks=32){ ...} construct? I have a need to try this out to measure the times taken in various functions etc using this sort of method, I want to know is there any way of extracting the function

Re: [PHP] using mbstring without having /configure'd it

2002-11-26 Thread @ Edwin
Hello, (B (B"Oliver Spiesshofer" [EMAIL PROTECTED] wrote: (B (B Hi, (B (B Is it possible to use mbstring after setting the necessary values in (B ini_set() or htaccess without having it enabled during /configure? (B (BNo. (B (BWell, if you're using windoze, you can probably just do it

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Jason Wong
On Tuesday 26 November 2002 23:45, Chris Shiflett wrote: --- Ernest E Vogelsinger [EMAIL PROTECTED] wrote: At 13:50 26.11.2002, [EMAIL PROTECTED] said: if ($lineone $linetwo $linethree $linefour = ) Your expression yields true if 1-3 are not-empty AND four is an empty string.

[PHP] Re: Starting an application on web server

2002-11-26 Thread Erwin
Nic Fordham wrote: Hi there, I am hosting a server running castle wolfenstein for a few friends of mine want to make a web page to run on the same server that they can log in to to stop start the game when they want. I have tried putting the following code in a web page - ? exec

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Boget
So, you are using a database to store the records? Yes. What's the point in taking the user's information if you aren't going to store it somewhere. Even if all you need to do is email the data upon completion of the form, storing the data for later use would be a good idea. Chris -- PHP

RE: [PHP] Re: amp; in Query String

2002-11-26 Thread Jonathan Rosenberg \(Tabby's Place\)
In an earlier message, Derick Rethans [mailto:[EMAIL PROTECTED]] said ... Yes it is. Actually, you should specify the URL with the amp; yourself, like this: a HREF=show_pic.php?pic=blahamp;caption=Some+Text otherwise it is not valid HTML. I understand that using '' is technically not

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: At 13:50 26.11.2002, [EMAIL PROTECTED] said: if ($lineone $linetwo $linethree $linefour = ) Actually that expression will always be FALSE. $linefour = does not evaluate to TRUE thus the whole expression to be FALSE! Yes, you're right. Of course, I

RE: [PHP] Re: amp; in Query String

2002-11-26 Thread Jonathan Rosenberg \(Tabby's Place\)
Not, this answer makes sense. I couldn't see how using 'amp;' in the query string would work. I'm gonna take the advice augment my error message to include browser name other info. I've been wondering if a web crawler might be causing this. I'll let you know what turns up (of course, the

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: So, you are using a database to store the records? Yes. What's the point in taking the user's information if you aren't going to store it somewhere. Even if all you need to do is email the data upon completion of the form, storing the data for

Re: [PHP] Re: amp; in Query String

2002-11-26 Thread Erwin
I'll let you know what turns up (of course, the problem will stop occurring once I add this info :-). As it always does ;-)) Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: amp; in Query String

2002-11-26 Thread @ Edwin
Hello, Jonathan Rosenberg (Tabby's Place) [EMAIL PROTECTED] wrote: [snip] I'm missing something here. If you use 'amp;' to separate arguments on the query string, how do they get separated out for access via $_GET? [/snip] Don't worry about it, just try it :) Anyway, the link that has amp;

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Boget
Yes. What's the point in taking the user's information if you aren't going to store it somewhere. Even if all you need to do is email the data upon completion of the form, storing the data for later use would be a good idea. Since it seems like you are inferring otherwise, I should say

Re: [PHP] Multiple page form

2002-11-26 Thread @ Edwin
Chris Boget [EMAIL PROTECTED] wrote: So, you are using a database to store the records? Yes. What's the point in taking the user's information if you aren't going to store it somewhere. Even if all you need to do is email the data upon completion of the form, storing the data for later

RE: [PHP] Re: amp; in Query String

2002-11-26 Thread Chris Shiflett
--- Jonathan Rosenberg (Tabby's Place) [EMAIL PROTECTED] wrote: In an earlier message, Derick Rethans [mailto:[EMAIL PROTECTED]] said Yes it is. Actually, you should specify the URL with the amp; yourself, like this: a HREF=show_pic.php?pic=blahamp;caption=Some+Text otherwise it is

Re: [PHP] Multiple page form

2002-11-26 Thread Chris Boget
Yes. What's the point in taking the user's information if you aren't going to store it somewhere. Even if all you need to do is email the data upon completion of the form, storing the data for later use would be a good idea. Not always. Are your users aware of this? Just wondering...

[PHP] Re: PHP] can't pass complete URL (part of the query string) from

2002-11-26 Thread Nicole Lallande
Dear Martin Erwin, Tried the urlencode - same thing happened - the variables after the first one were chopped off - so a href=email.php?ref=?=urlencode($pageURL);?this page/a where the url is http://mydomain.com/displayem.php3?cat=5olimit=0zid=1lid=1 results in

Re: [PHP] Re: PHP] can't pass complete URL (part of the query string) from

2002-11-26 Thread Chris Shiflett
--- Nicole Lallande [EMAIL PROTECTED] wrote: a href=email.php?ref=?=urlencode($pageURL);?this page/a where the url is http://mydomain.com/displayem.php3?cat=5olimit=0zid=1lid=1 results in http://mydomain.com/displayem.php3?cat=5 being passed and the 'olimit=0zid=1lid=1' gets cut off

[PHP] spawing new PHP process

2002-11-26 Thread ROBERT MCPEAK
I'm interested in spawing a new PHP process -- if that's the correct terminology. The situation is that I've got a very slow loading page, where, for example, I'm using PHP to send, say, 1000 emails. The user clicks submit, and, although PHP is firing out the emails, it appears to the user

RE: [PHP] Re: Sorting parsed XML

2002-11-26 Thread Chris
Okay, that's neat and I get what you're saying with xml_process() to handle this. From what I'm reading, it would not allow this sort of procedure, but please let me know otherwise: == echo td . $ServerName; if ($ServerType) { echo i(

Re: [PHP] spawing new PHP process

2002-11-26 Thread Rasmus Lerdorf
The correct solution for this particular problem is to just queue the outbound mail and have your MTA deliver them out of band. man sendmail -Rasmus On Tue, 26 Nov 2002, ROBERT MCPEAK wrote: I'm interested in spawing a new PHP process -- if that's the correct terminology. The situation is

Re: [PHP] spawing new PHP process

2002-11-26 Thread Marco Tabini
Assuming you're working on UNIX--you need to use one of the execute functions (search for exec in the manual). You can spawn a separate PHP in the background in a number of way, for example, by using the screen program. If I remember correctly, you can't instantiate it directly and run it in the

[PHP] Re: Multiple page form

2002-11-26 Thread Manuel Lemos
Hello, On 11/26/2002 01:42 PM, Shane McBride wrote: It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I

[PHP] Re: suEXEC and PHP

2002-11-26 Thread Serge A.
Hi, suEXEC will only work if PHP is installed as CGI, not Apache module... Regards, Serge Hi, Apache 1.3.24, PHP 4.2.2 I am running a php script which executes something like system(scp -r -S ssh host1:/home/dir host2:/home); The scp command executes as the apache user, in my

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
At 16:45 26.11.2002, Chris Shiflett spoke out and said: [snip] --- Ernest E Vogelsinger [EMAIL PROTECTED] wrote: At 13:50 26.11.2002, [EMAIL PROTECTED] said: if ($lineone $linetwo $linethree $linefour = ) Your expression yields true if 1-3 are

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Ernest E Vogelsinger [EMAIL PROTECTED] wrote: if ($lineone $linetwo $linethree $linefour = ) Your expression yields true if 1-3 are not-empty AND four is an empty string. Actually, this expression yields true when $lineone, $linetwo, and $linethree are all true. The variable

Re: [PHP] Re: amp; in Query String

2002-11-26 Thread Ernest E Vogelsinger
At 16:54 26.11.2002, Erwin spoke out and said: [snip] Actually, you should specify the URL with the amp; yourself, like this: a HREF=show_pic.php?pic=blahamp;caption=Some+Text Of course not...this is a HREF tag, which can use instead of amp;. amp; is

Re: [PHP] spawing new PHP process

2002-11-26 Thread Adam Voigt
Have your page before the email's would actually be sent, submit to a page with a frameset, in the bottom frame have a height of 1 pixel so that it's invisible. Then, in your PHP page, add something like: script language=javascript parent.topframe.progress.value =

[PHP] Re: PHP] can't pass complete URL (part of the query string) from

2002-11-26 Thread Nicole Lallande
Chris -- thanks! didn't think to look - the 'ref' variable is being passed correctly in the form action=: form action=http://embitec.com/fishcart/email.php?ref=http://embitec.com/fishcart/displayem.php3?cat=5olimit=0zid=1lid=1; method=post but below in the text area where I display it: ?php

Re: [PHP] Re: PHP] can't pass complete URL (part of the query string) from

2002-11-26 Thread Chris Shiflett
--- Nicole Lallande [EMAIL PROTECTED] wrote: form action=http://embitec.com/fishcart/email.php?ref=http://embitec.com/fishcart/displayem.php3?cat=5olimit=0zid=1lid=1; method=post There is your problem right there. Here are the variables you are passing:

[PHP] FTP and security

2002-11-26 Thread Richard Fox
My company, as a matter of policy, closes the ftp ports of the servers in the DMZ. However, I am not convinced that this is necessary, given the advent of very secure ftp servers. I would appreciate any comments on the security of an open ftp port. To relate this to php, I am ready to give up

Re: [PHP] FTP and security

2002-11-26 Thread Marco Tabini
Rich, Why don't you create an ssh tunnel between your two boxes and then perform you ftp connection through there? This way, the connection would be secure and you could impersonate whichever user you need to. There is also a secure version of ftp, but I don't think that it can be instantiated

[PHP] Re: PHP] can't pass complete URL (part of the query string)

2002-11-26 Thread Nicole Lallande
Chris - Tried that -- I have urlencode in the script that sends the url and I have url encode right below the form action -- ref is getting cut off at the first ampersand - regardless: where: form

[PHP] PHP/MySQL Installation

2002-11-26 Thread manh
Hello, I am a beginner of PHP/MySQL. I have tried several times to install PHP3 and MySQL (free products) to conduct some web pages for my company, but lots of trouble came up. I just followed the instruction on www.php.net but it did not help. Can you help me? Thanks. Manh. [EMAIL PROTECTED]

Re: [PHP] Linux Question

2002-11-26 Thread Brian V Bonini
On Mon, 2002-11-25 at 20:22, Justin French wrote: I don't think I was being clear enough at all :) 12px is 12pixels... there is no way for it to *reliably* be reset to 14px, or 10px by the user on all browser. That's like saying 10% is 10%. 10% of what? The physical size of a pixel varies

[PHP] Re: IIS and PHP with $HTTP_SERVER_VARS

2002-11-26 Thread Brian McGarvie
it's to do with probably folder permissions, the folder all your web files are should have IUSR_machinename added to the folder with full rights, the login box should then not appear... Shaun Garriock [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: PHP] can't pass complete URL (part of the query string)

2002-11-26 Thread Chris Shiflett
--- Nicole Lallande [EMAIL PROTECTED] wrote: Tried that I'm thinking you haven't, but I might be wrong. The HTML you showed us previously was of a form tag. The action attribute of that form tag is where your problem lies. form

Re: [PHP] implode()

2002-11-26 Thread Jef
implode() expects an array as the second argument. You're passing a string. In fact with the code you have above I don't see why you don't just tack the comma on the end in the first place: if($image11_name != '') $sqlUpdate .= image11='$image11_name', ; The reason being the comma at the

[PHP] re-writing to the same socket

2002-11-26 Thread Gareth Thomas
Hi, I have some code that writes data to a socket (works fine) and stores the resource id created in a table with the column defined as varchar (80). Then the next time I need to write data to the same IP I retrieve the resource id and reuse it. Problem is that the socket_write seems to work fine

[PHP] Re: PHP] can't pass complete URL (part of the query string) - aha-- that worked - except for the javascript

2002-11-26 Thread Nicole Lallande
Chris -- I took out the javascript call to window.open and included the fix the way you described it and it worked! Thanks for clearing it up for me. Now I just have to figure own why the javascript is chopping the variable. Thanks for all your help! Best regards, Nicole I'm thinking

Re: [PHP] implode()

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 02:19, Jef wrote: implode() expects an array as the second argument. You're passing a string. In fact with the code you have above I don't see why you don't just tack the comma on the end in the first place: if($image11_name != '') $sqlUpdate .=

Re: [PHP] implode()

2002-11-26 Thread Jef
implode() expects an array as the second argument. You're passing a string. In fact with the code you have above I don't see why you don't just tack the comma on the end in the first place: if($image11_name != '') $sqlUpdate .= image11='$image11_name', ; The reason being the

Re: [PHP] FTP and security

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 01:42, Richard Fox wrote: To relate this to php, I am ready to give up trying to make my system(scp ..); code work, because I will have to give the apache user more permissions than I am comfortable with. What exactly are the problems you're encountering

[PHP] Newbie: Can't get my PHP server to work

2002-11-26 Thread Marcos Bastian
Hello Everyone: First of all: I've been dealing with PHP for less than 24 hours, so please forgive me if my questions are too basic... I'm using Xitami on a Windows 2000 server. I installed PHP and it seems to be working fine, but then, I tried to add a few file management scripts: PHP Commander

[PHP] Getting the script path of a commandline script

2002-11-26 Thread Ryan Grove
Anyone know how to get the script path (not the current working directory, but the actual path of the executing script) of a commandline script? I've dug through the docs and can't find this anywhere. None of the typical $_SERVER variables return the script path (although several of them return

Re: [PHP] implode()

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 02:57, Jef wrote: The problem is I don't know which will be the last element in the string. I am allowing 9 images to be changed, 9 text labels to be changed, and 9 links to be changed. I don't know which will be the last. I'm using an update sql command to

Re: [PHP] implode()

2002-11-26 Thread Joakim Andersson
Jef wrote: implode() expects an array as the second argument. You're passing a string. In fact with the code you have above I don't see why you don't just tack the comma on the end in the first place: if($image11_name != '') $sqlUpdate .= image11='$image11_name', ; The reason being the

Re: [PHP] re-writing to the same socket

2002-11-26 Thread Matt Vos
This happens because the Resource ID is a pointer to the socket, not the socket itself. You are storing the value of the resource ID (i.e. '1') in the database. However, when you are pulling it out, you are pulling it out as an int, and not a socket identifier. Keep the socket identifier as a

[PHP] Bug with register_globals on versus 1 and php_value vs php_flag?

2002-11-26 Thread Daevid Vincent
I don't know if this is a known bug or it's supposed to work like this, but after randomly trying things, this finally worked: VirtualHost * DocumentRoot /home/interact/public_html ServerName interact ServerAlias www.interact.com *.interact.* ErrorLog logs/interact-error_log

[PHP] IE Problems: disappearing text with 'Back' button

2002-11-26 Thread Andre Dubuc
A few people using IE have complained that when they click the 'Back' button to edit their registration form, all info is lost and they're presented with a blank form. I've read archives on this, and I really don't know what to do. The referring page starts with ?php session_start()

Re: [PHP] FTP and security

2002-11-26 Thread Richard Fox
To relate this to php, I am ready to give up trying to make my system(scp ..); code work, because I will have to give the apache user more permissions than I am comfortable with. What exactly are the problems you're encountering using scp? I created an apache user, which I

[PHP] decimal places

2002-11-26 Thread Bryan Koschmann - GKT
Hello, Does anyone here have a good way to make sure dollar amounts are formatted properly? I have something that returns data, but the problem is it's stored where any trailing zero isn't kept, like this: $16.95 or $172.82 are fine $17.90 or $190.20 come back as $17.9 and $190.2 I would like

Re: [PHP] Getting the script path of a commandline script

2002-11-26 Thread DL Neil
Ryan, Anyone know how to get the script path (not the current working directory, but the actual path of the executing script) of a commandline script? I've dug through the docs and can't find this anywhere. None of the typical $_SERVER variables return the script path (although several of

RE: [PHP] Bug with register_globals on versus 1 and php_value vs php_flag?

2002-11-26 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 19:23 To: [EMAIL PROTECTED] Subject: [PHP] Bug with register_globals on versus 1 and php_value vs php_flag? I don't know if this is a known bug or it's supposed to work like this, but

Re: [PHP] spawing new PHP process

2002-11-26 Thread ROBERT MCPEAK
Rasmus, Thanks for you reply. I agree that what you suggest is the correct solution for the mail delivery scenario I used as an example. My example was poor in that in limited the scope of what I was asking. I have other situations where I would like to somehow spawn a new php process so

  1   2   >