[PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I am trying to use a command line program in Linux using this form: $result = `/path/prog $arg`; But this doesn't work as the program is expecting and EOF that never comes. If I use the program on the command line when I am finished entering all the data I need to hit return and then CTRL-D to

Re: [PHP] MySQL vs PostgreSQL

2003-01-08 Thread Krzysztof Dziekiewicz
What about transactions ? In all the discussion noone points that PostgreSQL uses them. Maybe noone uses transactions so they have no matter. -- Krzysztof Dziekiewicz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Benjamin Niemann
- Original Message - From: Jean-Christian Imbeault [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 9:52 AM Subject: [PHP] EOF: how to generate one in a string I am trying to use a command line program in Linux using this form: $result = `/path/prog $arg`;

Re: [PHP] Directory Listing with php on unix boxes

2003-01-08 Thread Krzysztof Dziekiewicz
Here is where I'm running into some problems. I need the file listing to be sorted as if I were performing an 'ls -lt' listing on the server itself. I do not think opendir() or readdir() quarantees any sort. You where lucky rather you got dirs in the time order. You should use filemtime() or

Re: [PHP] PHP Editors

2003-01-08 Thread Krzysztof Dziekiewicz
I'm running Apache 2.0 as a service and PHP (like a module) onto a Windows Advanced Server. Im looking for a good and free Editor to use with PHP (With debugging features). Can anyone with experience guide me? Look up archives. You will get full list of PHP editors. -- Krzysztof

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Marek Kilimajer
$result = `echo | /path/prog $arg`; should work Jean-Christian Imbeault wrote: I am trying to use a command line program in Linux using this form: $result = `/path/prog $arg`; But this doesn't work as the program is expecting and EOF that never comes. If I use the program on the command

Re: [PHP] Re: Double entry into MySQL..

2003-01-08 Thread Marek Kilimajer
You should be able to get around it also by checking if $_SERVER[REQUEST_METHOD]=='HEAD' Timothy Hitchens (HiTCHO) wrote: When they first click on the file their browser will make a request for type, size etc then when it display's the dialog box on the screen of the client it will make another

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: $result = `echo | /path/prog $arg`; should work That didn' work ... don't know why. Isn't there a way to say echo EOF? There must be a way to specify the ascii or hex value for EOF in an echo statement no? Jc -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Re: Double entry into MySQL..

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
I wish it was as simple as that but in the past it just hasn't always worked!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 7:29 PM To: Timothy

[PHP] uid checked by file_exists()

2003-01-08 Thread Emmanuel.Leguy
Hello, I've just installed PHP 4.3.0. The 4.0.6 was installed before. With the new version, in safe mode, the 'file_exists' function produce this warning: Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 302 is not allowed to access

[PHP] Build errors: php 4.3.0 on FreeBSD 5.0 RC2

2003-01-08 Thread Alexander Rijnbeek
Hello I try to install php 4.3.0 on FreeBSD 5.0 RC2 Please help Alexander Rijnbeek -su-2.05b# make /bin/sh libtool --silent --mode=compile gcc -Iext/zlib/ -I/usr/local/src/php4/php-4.3.0/ext/zlib/ -DPHP_ATOM_INC -I /usr/local/src/php4/php-4.3.0/include -I/usr/local/src/php4/php-4.3.0/main -

RE: [PHP] uid checked by file_exists()

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Have you checked your php.ini for a safe mode setting to true/on ?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Emmanuel.Leguy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 7:49 PM To: [EMAIL PROTECTED]

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I also tried tried with popen with no success. $fp = popen('/usr/src/bsfmdk/CCCallServer 21', 'r'); fwrite($fp, $query); $result = fread($fp, 8096); echo result is BR; echo $result BR; I get back and empty result string ... Any more hints? Jc -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Marek Kilimajer
No, there is no such value as far as I know, you may try `/path/prog $arg somefile`, but I doubt it will be different. What prog is it anyway. If it is passwd, I know this behaves somewhat different, but I think there is still some workaround, you should as at a linux list. Jean-Christian

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: What prog is it anyway. It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code. If I put all the values in a file I can get the prog to work by doing: #./prog filename It does not

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I'm at wits end ... I've tried everything from system(), shell_exec(), bacticks, popen() and still no go ... I even tried writing the data to file first and then doing a system(./prog 21 ./datafile) and that didn't work either. I know that it shoudl work b/c if from the command line I issue

RE: [PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
I would suggest you have a look at: http://expect.nist.gov/ Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 8:24 PM To: [EMAIL PROTECTED]

[PHP] $_SERVER content

2003-01-08 Thread Fritzek
Hi folks, I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and HTTP_REFERER. someone knows how to get a consitent content of $_SERVER?

Re: [PHP] $_SERVER content

2003-01-08 Thread Jason Wong
On Wednesday 08 January 2003 19:00, Fritzek wrote: Hi folks, I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and HTTP_REFERER.

Re: [PHP] $_SERVER content

2003-01-08 Thread Fritzek
Hmmm. What does it mean? Is PHP deciding at runtime which variable in $_SERVER have to be filled? PATH_TRANSLATED should always be filled because you always have a path where your script is located. Also HTTP_REFERER because in easiest case you refering on the same script at localhost (I guess).

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Ok, found the problem. The external program I was trying to run is only happy is it is called from the same directory as the one it resides in. I guess it needs to access files in it's directory and by calling from php somehow it gets confused as to where to files are. Thanks to everyone for

Re: [PHP] $_SERVER content

2003-01-08 Thread Fritzek
but there must be a way which causes differences. I've searched the net and found a page which shows phpinfo(); and this was the same versions of php, webserver and os and the PATH_TRANSLATED was setted, but not on my server. Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

Re: [PHP] $_SERVER content

2003-01-08 Thread Rick Widmer
At 12:00 PM 1/8/03 +0100, Fritzek wrote: Hi folks, I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and HTTP_REFERER. someone knows

Re: [PHP] $_SERVER content

2003-01-08 Thread Marek Kilimajer
You did not see HTTP_REFERER likely because there was none Fritzek wrote: Hi folks, I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED

Re: [PHP] $_SERVER content

2003-01-08 Thread Marek Kilimajer
Fritzek wrote: Hmmm. What does it mean? Is PHP deciding at runtime which variable in $_SERVER have to be filled? PATH_TRANSLATED should always be filled because you always have a path where your script is located. Also HTTP_REFERER because in easiest case you refering on the same script at

RE: [PHP] Sessions error

2003-01-08 Thread Ford, Mike [LSS]
-Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 01:23 I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the

[PHP] compiling php

2003-01-08 Thread info
Hello list, just a simple question regarding php - compiling: when I compile php --with-gd=/usr... How can I get the exact directory of gd (or gd-libs)??? Qualified answers are welcome. Oliver Etzel

Re: [PHP] Re: custom error handling

2003-01-08 Thread electroteque
actually its getting there $backtrace = debug_backtrace(); foreach ($backtrace as $val) { if (eregi($val['function'],'query')){ echo $val['file'].br; echo $vale['line'].br; } } Michael Sims [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 8

[PHP] PHP 4.3.0 and multibytestrings?

2003-01-08 Thread Simon Dedeyne
I got a simple question. What do you have to do when you want to use multibytestring functions under PHP 4.3.0 assuming you're using the windows binaries and you're running on XP? Is it standard or do you have to adjust some things? Cheers, Simon -- PHP General Mailing List

[PHP] Warning: Unlink failed (Permission denied) in

2003-01-08 Thread Kevin Meredith
Please could someone let me know the cause of this error message Warning: Unlink failed (Permission denied) in Regards Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP mySQL Syntax problem

2003-01-08 Thread Jo Ann Comito
I'm working in PHP4 and have suceeded in creating a mySQL table. I can fill the table using the INSERT command as follows: ? //some code here to establish connection, define and create table, etc. . MYSQL($Dbname, INSERT INTO $Tbname_1 VALUES(1, 'John Doe', 'red')); MYSQL($Dbname, INSERT INTO

RE: [PHP] Warning: Unlink failed (Permission denied) in

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You are trying to delete/unlink a file with a php script. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Kevin Meredith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 9:54 PM To: PHP Subject: [PHP] Warning: Unlink

Re: [PHP] PHP mySQL Syntax problem

2003-01-08 Thread Marek Kilimajer
MYSQL($Dbname, INSERT INTO $Tbname_1 VALUES(1, 'John Doe', '$color')); - single quotes around $color Jo Ann Comito wrote: I'm working in PHP4 and have suceeded in creating a mySQL table. I can fill the table using the INSERT command as follows: ? //some code here to establish connection,

[PHP] Re: Img src

2003-01-08 Thread Robert Fisher
Try using single quotes inside your double quotes, just like you did with the width and haight values. he following line: print img src=' . $row[foto] . ' width='104' height='137'; __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up

[PHP] Re: Img src

2003-01-08 Thread Robert Fisher
Try using single quotes inside your double quotes, just like you did with the width and haight values. The following line should work: print img src=' . $row[foto] . ' width='104' height='137'; Robert Fisher Axis Solutions, Inc. __ Do you

[PHP] How do I get the entire data sended to the web server?

2003-01-08 Thread Heiko Mundle
Is it possible with php to print the http header and the attached data for a transmitted http request? How can I do this? an example of what I want to see: POST /cgi-bin/CgiMfc1?MyQuery%3dQData HTTP/1.1 Accept: text/* User-Agent: HttpCall Accept-Language: en-us Host: localhost:680

Re: [PHP] How to detect a PHP script time-out?

2003-01-08 Thread Robert Fisher
If you are willing to do a rewrite, then have your main script start a fork, or child process. The child process would run your script while the parent would do nothing else but wait for the child. if the child times out the parent will know and you can then print out a error message. See the

Re: [PHP] Re: PHP and MySQL bug

2003-01-08 Thread Nuno Lopes
@mysql_select_db(be); // this doesn't fail, because only the second (UPDATE) query fails. The first query (SELECT) is done! - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Nuno Lopes [EMAIL PROTECTED] Cc: MySQL List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday,

Re: [PHP] Re: PHP and MySQL bug

2003-01-08 Thread Nuno Lopes
Doesn't you have any simpler answer?? Maybe installing the new version of mysql server - I have version 3.23.49 - should do the trick - Original Message - From: Larry Brown [EMAIL PROTECTED] To: Nuno Lopes [EMAIL PROTECTED]; MySQL List [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003

Re: [PHP] How do I get the entire data sended to the web server?

2003-01-08 Thread Marek Kilimajer
I don't think there is a single variable, but you can build it from various variables and functions: $_SERVER array: REQUEST_METHOD REQUEST_URI SERVER_PROTOCOL function getallheaders() |$HTTP_RAW_POST_DATA| |this should be all you need| Heiko Mundle wrote: Is it possible with php

[PHP] Re: graph libs

2003-01-08 Thread rosie storey
I use chartDirector (http://www.advsofteng.com) for generating graphs and reports with PHP. chartDirector charts look really good and the license is cheap. There's also jpGraph: http://www.aditus.nu/jpgraph/ -Rosie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to detect a PHP script time-out?

2003-01-08 Thread Tamas Arpad
On Wednesday 08 January 2003 06:42, Jean-Christian Imbeault wrote: Timothy Hitchens ) wrote: Issue... as I said before the register shutdown won't work because: - output from the shutdown is not visible nor do you have access to some variables You are right. From the manual:

Re: [PHP] graph libs

2003-01-08 Thread Marek Kilimajer
http://www.aditus.nu/jpgraph/ Larry Brown wrote: Can anyone give any suggestions on the best/most intuitive tools or libraries for generating graphs with PHP? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] unlink ($files);

2003-01-08 Thread Adam Voigt
Can't do wildcards like * because thats something that as I found out a few days ago, is expanded by the shell into a full command, so because your not running a shell, it can't be expanded and the raw unlink call to *.* fails because the unlink function doesn't understand wildcards. If you

Re: [PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Matt Vos
What is the ASCII value of an EOF? Find that and use ? echo chr($eof_ascii_value); ? Matt - Original Message - From: Jean-Christian Imbeault [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 5:24 AM Subject: [PHP] Re: EOF: how to generate one in a string I'm at

[PHP] Looping through directories?

2003-01-08 Thread Jeff Lewis
Currently I have a script that reads an index file and from that index file it then loops through all files in that directory based on the index. Instead of one directory now I have several and I want to loop through each directory and go to each directory's index file. Since there is no

[PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
Hey all. I noticed a string containing slashes was breaking some code of mine on an w2k/IIS box running php 4.2.3. For example - a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I applied str_replace('\', '', $var) and that worked.

[PHP] Re: confirm unsubscribe from php-general@lists.php.net

2003-01-08 Thread Turbo Fredriksson
-- Ft. Meade cryptographic KGB munitions jihad nitrate class struggle Semtex radar spy Iran supercomputer Treasury FSF nuclear [See http://www.aclu.org/echelonwatch/index.html for more about this] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] graph libs

2003-01-08 Thread Larry Brown
This is by no means an advertisement, just one of the results I got looking around for charts. The following link lists a few viable solutions. http://www.hotscripts.com/PHP/Scripts_and_Programs/Graphs_and_Charts/ Jpgraph renders an excellent image from the examples but the prerequisite

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, Gerard Samuel wrote: a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I applied str_replace('\', '', $var) and that worked. Any idea as to why stripslashes would not remove the slashes in the string?

RE: [PHP] graph libs

2003-01-08 Thread Larry Brown
My extreme apologies to jpgraphs. They are more in line with phplot. I might even end up using them instead. Vagarant is the more difficult package. Again, their graph examples are pretty smooth but required a lot of package/dependency updates to RH. This is by no means an advertisement, just

Re: [PHP] Looping through directories?

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, Jeff Lewis wrote: pattern for the name if the indexes, I assume I need to create an array holding the directory name and the associated index file name like so $dirs = array(Sports = spindex.xml, Business News = business.xml) etc Now, I need help with the loop to whip

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
I figured out the problem. magic_quotes_sybase was turned on, on the IIS box. All is well with stripslashes() again. Chris Wesley wrote: On Wed, 8 Jan 2003, Gerard Samuel wrote: a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I

Re: [PHP] Sessions error

2003-01-08 Thread Mike Tuller
That did it! Thanks. On Wednesday, January 8, 2003, at 05:16 AM, Ford, Mike [LSS] wrote: -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 01:23 I am working with sessions, and following an example in a book and am getting an error that I am not

Re: [PHP] Upgrade help!

2003-01-08 Thread PHP List
In case any one else needs to know: I had to erase the rpm version of gd, gd-devel and libpng, libpng-devel The rpm versions were 1.0.12. For some reason the configure option -with-png-dir=../libpng-1.2.1 was using the headers from the right dir, but somehow used the rpm version for compiling

[PHP] Terminal text objects (PHP CDK NCURSES)

2003-01-08 Thread Nikolai Vladychevski
Hello, I want to share the code (php-extension) I have included into php-4.2.2 to support CDK widgets (http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gztype=listing) to enable PHP to use text based GUI in terminal environment. CDK supports: -Alphalist (list with alphanumeric search) -Calendar

RE: [PHP] Zend IDE vs. PhpEd

2003-01-08 Thread Lumpkin, Buddy
I thought autocompletion would help you _avoid_ silly mistakes. For example, defining $varName then trying to use $varname when you really meant to use $varName. In php I would say it's a tossup because if you reference a variable that doesn't exist it will contain a NULL or FALSE value but

[PHP] Strange file upload problem in php 4.2.3

2003-01-08 Thread Submission.org.ru Team
Hello php-general, I'm trying to figure out why I can't upload any file in php. Form code form name=photoform action=photos.php method=post enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=40960 table border=0 cellspacing=0 cellpadding=2 tr td colspan=2

[PHP] PHP 4.3.0 with Oracle

2003-01-08 Thread José Manuel Valente
Hy Guys, I´m a newby here. I´am trying to compile PHP 4.3.0 with Oracle support. When it compiles oci8.c , it returns an error, like follows: /bin/sh libtool --silent --mode=compile gcc -Iext/oci8/ -I/usr/src/php-4.3.0/ext/oci8/ -DPHP_ATOM_INC -I/usr/src/ph p-4.3.0/include

[PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
Hi, I am running a really simple php script to upload files on my server via ftp. But it always return this warning: ftp_put(): Permission denied I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't know what else it is but I guess it's a pretty common problem. Thx for any

RE: [PHP] ftp_put: permission denied

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
I am assuming you have testing from a desktop client. Are you sure that the PHP script has been logged in?? Can you see via a log file of the successful authentication?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Oliver

[PHP] fletcher's checksum

2003-01-08 Thread Dave Gervais
Does anybody know how to implement the 8 and 16 bit versions of Fletcher's checksum using PHP? I hit google and came up dry. It's easy enough to find how to do it in C, but PHP if a different story. I know there are plenty of perfectly good checksum options that are standard in PHP, but I'm

[PHP] apache + mod_php question

2003-01-08 Thread Hugh Beaumont
Hello, I have searched the archives and not been able to find the solution to the following problem. I would be very grateful if someone here could help or provide some pointers. The basic problem is this: Our apache server will not start if there are system processes running that were spawned

RE: [PHP] apache + mod_php question

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
use: apachectl graceful It will reload the config's and allow operation to continue!! See apachectl (help) start - start httpd stop - stop httpd restart- restart httpd if running by sending a SIGHUP or start if not running fullstatus - dump a full status screen;

Re: [PHP] anyway to do a 'whos online' from session variable?

2003-01-08 Thread Jeff Bluemel
ok - let me take that a step further - if I store the SID in the table also are the files in the /tmp directory stored with the SID? if they are this may be a way I can delete out inactive session, but be able to allow extended inactive sessions for users who may be pulling lengthy reports...

RE: [PHP] anyway to do a 'whos online' from session variable?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
If you use a database for session management you have total control over when and what is garbage collected and therefore extend / delete whatever anytime you want. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Jeff Bluemel

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
Timothy Hitchens ) schrieb: I am assuming you have testing from a desktop client. Are you sure that the PHP script has been logged in?? Can you see via a log file of the successful authentication?? I logged in using the same information as I used to upload that script. if ((!$conn_id) ||

RE: [PHP] ftp_put: permission denied

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Using ftp_login() ?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Oliver Witt [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 5:30 AM To: [EMAIL PROTECTED]; Timothy Hitchens ) Subject: Re: [PHP] ftp_put: permission

RE: [PHP] Re: Need a suggestion on developing a php-related system

2003-01-08 Thread Kelvin Poon
HI, Thanks for all the suggestions. I guess I should have given a more detail description. My employer have just provided me with some background information of the setup: Our data come in mostly automatically by FTP on to our Vax, then eventually moved on to our R30 (RS6000/AIX) and then

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
I uploaded that script with a common ftp program on my server in the internet. FOr the host, user and pw, I use the same data as I use to log in with my ftp program. So the mistake can't be there. This is how that script basically works: ?php if(isset($destiny)){ $ftp_server = host; $benutzername

RE: [PHP] Adding HTTP URL Code

2003-01-08 Thread ELLIOTT,KATHERINE A (HP-FtCollins,ex1)
OK, so I've gotten NO responses to my query below so I thought I'd ask for something slightly different and see what I get. If I have a bunch of plain text data, how can I pull out the strings containing http. I've tried several different things but what I end up with is more or less than what I

[PHP] How can I redirect to another php page

2003-01-08 Thread Teo Petralia
Hi All! I would like to redirect the user to another php page accordingly to his/her chosen options, example: if ($Color == Yellow) { go to page else if ($Color == Green) go to page } Does anyone knows how to achieve the goal?? Thanks Teo -- PHP General Mailing List

Re: [PHP] Img src

2003-01-08 Thread Sean Burlington
Ezequiel Sapoznik wrote: I am having a parse error in the following sentence: print img src=\ . $row[foto] . width='104' height='137'\; it would help if you posted the actual error message ! but try this ... print 'img src=' . $row[foto] . ' width=104 height=137'; or print img src=\ .

Re[2]: [PHP] Img src

2003-01-08 Thread Martin Hudec
Hello Sean, or try to use this: print img src=\.$row[foto].\ width=\104\ height=\137\; or just print img src=\.$row[foto].\ width=104 height='37\; looks like u have error here: print img src=\ . $row[foto] . width='104' height='137'\; ^

Re[2]: [PHP] Img src CORRECTION

2003-01-08 Thread Martin Hudec
Hello Sean, oh i must correct myself ;)) . or try to use this: print img src=\.$row[foto].\ width=\104\ height=\137\; or just print img src=\.$row[foto].\ width=104 height=137; looks like u have error here: print img src=\ . $row[foto] . width='104' height='137'\;

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Kevin Stone
http://groups.google.com/groups?num=30hl=enlr=ie=UTF-8oe=UTF-8safe=off; q=url+redirect+php -Kevin - Original Message - From: Teo Petralia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 1:46 PM Subject: [PHP] How can I redirect to another php page Hi All! I

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Tom Ray
You could use an include statement in one of two ways. 1) you can just include the page that you want to show, however the url doesn't change it will still be select.php 2) if you want to sent them to yellow.php or green.php you could include an html page that had a meta-refresh in it set for 0

Re: [PHP] unlink ($files);

2003-01-08 Thread Jason Sheets
That will usually work on Unix but will not work on Windows. Rather than executing an external program you can use PHP itself to do a recursive delete. There are examples at http://www.php.net/manual/en/function.rmdir.php if you read the user notes you will see several posts about doing this.

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Rick Emery
header(location: nextpage.php); the above must be sent before any other text is output - Original Message - From: Teo Petralia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 2:46 PM Subject: [PHP] How can I redirect to another php page Hi All! I would like

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Thomas Seifert
it may be, that destiny is wrong. the error-message tells that you don't have access to where you are trying to upload the file to. Thomas On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote: I uploaded that script with a common ftp program on my server in the internet.

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Jason Wong
On Thursday 09 January 2003 04:07, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote: OK, so I've gotten NO responses to my query below so I thought I'd ask for something slightly different and see what I get. With regards to your original query, the answer is in the archives. Try searching for

[PHP] fast template over xsl

2003-01-08 Thread electroteque
hi i am considering the move from fast template to xslt , is there any benifits for this ? also is there a way to intergrate xsl like fast template ie parse rows in the php script -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML email that generates !s - any ideas?

2003-01-08 Thread Philipp Hartmann
Hi everyone, I am new to this list, so this is my first post. I am trying to sen dan HTML email, and so far I got everything running, except for one very odd problem. 1.) I am setting up all my variables within the .php Script. 2.) I generate my HTML email 3.) I am outputting the email to the

RE: [PHP] Adding HTTP URL Code

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote: OK, so I've gotten NO responses to my query below so I thought I'd ask for something slightly different and see what I get. The follow-up inquery makes much more sense than the original ;) If I have a bunch of plain text

Re: [PHP] Re: Double entry into MySQL..

2003-01-08 Thread Altug Sahin
Is this a php.ini or apache setting? Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You should be able to get around it also by checking if $_SERVER[REQUEST_METHOD]=='HEAD' Timothy Hitchens (HiTCHO) wrote: When they first click on the file

[PHP] Submit Form

2003-01-08 Thread Stephen
Hello, I have a question. First of all, I want to save the data a user has typed in a form into a MySQL database so they can load it up for later use but, I need to first submit all the form vars on the current page from a link. This may be _javascript_, but either way, I'm not sure how to

[PHP] How Do I Return Values Across Servers

2003-01-08 Thread Bill Arbuckle, Jr.
This may be a no-brainer for everyone but me but ... I have several php scripts residing on a web site on Server A. In a library file on Server A are misc. functions, some of which query an underlying database and return a text string as the result. On another web site on Server B I would like

[PHP] read javascript variable php?????

2003-01-08 Thread Ysrael Guzmán
example: location.href=$destination; or location.href=?php $destination; ; or echo location.href=', $destino, ';; PLEASE GIVE A IDEA Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Can anyone see a problem in this? When i run the script i am getting this error Notice: Undefined variable: action in C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13 ? // addpoll.php // Case Study 1: User Poll - Foundation PHP for Flash // If the form has been submitted... (line 13) if

RE: [PHP] How Do I Return Values Across Servers

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
If I understand you want to be able to get a value from a script on another server. Well I would suggest a really each way would be to do have the calling server call a script on the supplying server using include(); which is supported but please see this page regarding URL fopen wrappers:

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Martin Hudec
Hello Paul, well problem is this: you don't have defined variable $actionmaybe you are not posting it correctly from form...what is on first 12 lines? try to add $action=value; on line 12...just define any suitable value... -- Best regards, Martin mail [EMAIL

RE: [PHP] strange problem (user poll)

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
You need to check like this: if (isset($action) $action == 'add') AND if it is 4.1 + and global vars are turned off?? if (isset($_GET['action']) $_GET['action'] == 'add') ** The above will need to changed if it is POST in the above example!! Timothy Hitchens (HiTCHO) Open Platform

RE: [PHP] read javascript variable php?????

2003-01-08 Thread Bill Arbuckle, Jr.
location.href=?= $destination ? should work ... hth ... Bill -Original Message- From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:30 PM To: [EMAIL PROTECTED] Subject: [PHP] read javascript variable php? example: location.href=$destination; or

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Sorry guys ingore the post, i have narrowed the problem down to a problem with posting the vairables from flash. cheers - - [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone see a problem in this? When i run the script i am getting this error Notice:

Fw: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
[EMAIL PROTECTED] It would help to know where $action is being defined. - Original Message - From: - [ Paul Ferrie ] - [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 3:43 PM Subject: [PHP] strange problem (user poll) Can anyone see a problem in this? When

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
I have no idea what I did but this email was not supposed to go to the list.. my apologies. *LOL* -Kevin - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 4:18 PM Subject: Fw: [PHP] strange problem (user poll) [EMAIL

RE: [PHP] How Do I Return Values Across Servers

2003-01-08 Thread Bill Arbuckle, Jr.
Yes, I want to get a value from a script on Server A that runs against a database on Server A, returning that value to a script variable on Server B. I read the manual but must have missed something. This is what *seemed* as if it should work: Server A (containing functions and database)

Re: [PHP] HTML email that generates !s - any ideas?

2003-01-08 Thread Tom Rogers
Hi, Thursday, January 9, 2003, 7:31:35 AM, you wrote: PH Hi everyone, I am new to this list, so this is my first post. PH I am trying to sen dan HTML email, and so far I got everything running, PH except for one very odd problem. PH 1.) I am setting up all my variables within the .php Script.

RE: [PHP] How Do I Return Values Across Servers

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Issue you have is that if it is on another server you must you a http etc transport to get it!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Bill Arbuckle, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 9:38 AM

[PHP] Will pay for PHP

2003-01-08 Thread Andy Cook
I am bringing up a site in March, but I am working on it now. I need some PHP (not a lot). Please email me at [EMAIL PROTECTED] and let me know if you are interested in helping. I'll make it worth your while. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >