[PHP-WIN] Re: IIS, PHP and LANs

2001-10-29 Thread CJD
t; www.php4win.com. > > Also be sure to give the appropriate permissions on the share to the > anonymous user in IIS. Usually this has to be a valid network user. And you > should also check 'check that file exists' in the script mapping panel where > you map .php files to php.e

[PHP-WIN] IIS, PHP and LANs

2001-10-28 Thread CJD
I am running IIS on my PC as a development platform, and all is good. I'm wanting to set up a virtual directory to a network drive on the LAN and it works fine for HTML files, but when accessing a PHP file I get The specified CGI application misbehaved by not returning a complete set of HTTP hea

[PHP-WIN] Re: Mail and NT

2001-10-24 Thread CJD
just use the IP address of the Exchange server, or your ISPs smtp server "Joseph Koenig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I'm developing a site on a NT box (I'm much more familiar with unix) and > am unable to get mail to send on NT. I'v

[PHP-WIN] unique sessions

2001-10-11 Thread CJD
When using sessions, is each session_id unique? Is there a way of making sure they are? CJD -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP-WIN] Exec() again

2001-10-10 Thread CJD
exec() will execute the app as the system, not a user, so cannot interact with the desktop. One way of getting around this would be (for NT) to use the exec() command to create an AT schedule for 1 min in the future and set it to /interactive which would cause the app to load and interact with th

[PHP-WIN] Re: problem with exec()

2001-10-07 Thread CJD
Depending on the command you are trying to run, you might have to put "command /c " as calls like copy, del, dir etc are internal to command.com and need to be poped into a new shell to run. "Christian Dechery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP-WIN] Re: uploading files

2001-10-07 Thread CJD
This is usually because PHP does not have write/create permission on the server's web directory. Ask you host to alter it for you. "Alexandre Busquets Trioal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I´tring to do an upload images files script for my re

[PHP-WIN] Re: path

2001-10-07 Thread CJD
You can use basename() to get the file part, dirname() to get the directory part, or pathinfo() to get all of it in an array. "Alexandre Busquets Trioal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > There are any function there returns de completly pat

[PHP-WIN] Re: creating ZIP files

2001-09-20 Thread CJD
use exec() to call the zip/unzip command "Raphael Pirker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Guys, > > Is there any way I can create a zip file from files? (filenames and their > paths will be specified in an array) Any help would be very much >

[PHP-WIN] Re: text file question thanks

2001-09-20 Thread CJD
user as the webserver) and what rights it has. "Clock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > µL? > ­Ócode ¨Ó¦Û¥xÆW®Ñªºexample > ¦³ÉN¥i¥Hsolve? > > Cjd ¼g¤J¡G > > > PHP probably does not have write acces

[PHP-WIN] Re: text file question thanks

2001-09-19 Thread CJD
PHP probably does not have write access to the disk. "Clock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > Warning: fopen("9-02_counter.txt","w") - Permission denied in > c:\inetpub\wwwroot\9-02_pcounter.php on line 20 > > Warning: Supplied argument is

[PHP-WIN] Re: form submission --- help

2001-09-16 Thread CJD
In the page which receives the post, simply do: insert into TABLE (x,y,z) values ($x,$y,$z); mail("me@mymail","subject","$x\n$y\n$z); <[EMAIL PROTECTED]> wrote in message OF8F2A938C.D46863F6-ON65256AC8.002FEFF3@domain">news:OF8F2A938C.D46863F6-ON65256AC8.002FEFF3@domain... > Dear List

[PHP-WIN] Re: How to make a script run itself ?

2001-09-16 Thread CJD
I do a similar thing. Sending a message to almost 2,000 people each month (subscriptions - not spam!) on behalf of a client. I run it on the command line, and it never times out. "John Lim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check out the at com

[PHP-WIN] Re: securing PHP on Win32

2001-09-16 Thread CJD
Best thing to do is create a user for the webserver/php and run as this user. You can then restrict the access of that user to specific areas. This is OK if you are running a single server/domain model, but if running virtual domains or multiplue websites, to secure the other peoples websites, yo

[PHP-WIN] Re: reading arrays within a field from mysql and separating the values

2001-09-10 Thread CJD
If I read this right, the data field actually contains "name1, name2, name3, name4" in which case, you'll need to explode the field to access it's parts. $vals=explode(", ", $DCD); foreach ($vals as $val ) { print "$val\n"; } "Robert Trembath" <[EMAIL PROTECTED]> wrote in message [EMAIL PRO

[PHP-WIN] Re: searching for a file

2001-09-10 Thread CJD
if you know the name of the file, and the directory, then use: if (file_exists("directory/filename.jpg")) { print "found"; } Watch out for case sensitive OS's tho. x.jpg != X.JPG A more complete method for searching a directory would be: $handle=opendir('.'); while (($file = re

[PHP-WIN] Re: Array

2001-08-21 Thread CJD
To have the items auto-numberd so as to skip blank entries, use: for ($i = 1; $i<6; $i++) { print "\n"; } then if on items 1,2 and 5 are filled in, you will have a array with just 3 elements in it. "Mike Flynn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

[PHP-WIN] Re: How do I get information from a URL?

2001-08-21 Thread CJD
create a form which posts to itself and in the page have this: if ($Submit=="Submit") { # where $Submit is the name of the submit button. # do form validation/actions here } else { # display the form here } "Jeff Howard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

Re: [PHP-WIN] Network Documents

2001-08-15 Thread CJD
no matter if it's mapped or UNC'd If anyone has a cure, or can actually do this, please post here, as I have met many other people in the same boat. CJD "Paul Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try ma

[PHP-WIN] Re: How do you step through a database?

2001-08-13 Thread CJD
while ($item=mysql_fetch_array($result)) { print $item[title]; } The loop will continue until the result reaches the end then stops. Also works for $result with no results in it (skips the loop) and you can use mysql_data_seek($result,0); to reset the counter to the top ready for the next

[PHP-WIN] Re: Printing functions

2001-08-12 Thread CJD
I believe the functions are used to write to printers local to the webserver, not the client. "Deleo Paulo Ribeiro Junior" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello! > > I have sent some questions about printing functions and unfortunately I had > no answer. > > Does

Re: [PHP-WIN] money format

2001-08-12 Thread CJD
much easier to use: number_format($number,2); "Jason Brooke" <[EMAIL PROTECTED]> wrote in message 019201c123a6$d4d69320$58c2a4cb@co3040297a">news:019201c123a6$d4d69320$58c2a4cb@co3040297a... > > does anyone know > > how to convert a > > number like 324.42932 to 324.43 format > > > >

[PHP-WIN] Re: Trying to assosiate .wml

2001-08-06 Thread CJD
a.. Run Regedit. b.. Navigate to: HKEY_LOCAL_MACHINE /System /CurrentControlSet /Services /W3Svc /Parameters /ScriptMap. c.. On the edit menu select: New->String Value. d.. Type in the extension you wish to use for your php scripts. ex: .php e.. Double click on the new string value a

[PHP-WIN] Re: php/apache install

2001-08-05 Thread CJD
Try using short names not long names for your paths instead of c:\Program Files use c:\progra~1 and so on. "Clive Porter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi i just installed PHP4/Apache on W98 > when I call a .php file from PWS the line > > [0

[PHP-WIN] Re: how to update the cookie?

2001-08-05 Thread CJD
Remember that the value of a cookie if updated is not available until the next time it's loaded. So, updated & set the cookie, then set a variable to the new value and use the variable in the page. e.g. setcookie("blah"..etc) $blah="xxx"; "Science" <[EMAIL PROTECTED]> wrote in mes

[PHP-WIN] Re: newbie question: stripslashes vs. changing the php.ini file

2001-08-05 Thread CJD
I recently transfered a site from a server which WAS using 'magic_quotes_gpc' to one which wasn't. MAJOR pain to go through all of the code and add the addslashes() command, so probably (for portability reasons) bettert o use the addslashes() command by default. "Matt Cahill" <[EMAIL PROTECTED]