[PHP] Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread Daniel Negron/KBE
Hi all and Good Morning. I have been struggling with this code: I was wondering if someone could lend me a hand. I am working with this code and can't get the error to disappear. After running I get |-| |

Re: [PHP] Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread Jason Wong
On Sunday 17 March 2002 16:38, Daniel Negron/KBE wrote: Hi all and Good Morning. I have been struggling with this code: I was wondering if someone could lend me a hand. I am working with this code and can't get the error to disappear. After running I get

[PHP] Re: Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread jtjohnston
Daniel, $myrow[artist] and $myrow[title] might be a good place to start. It looks like all your ; are in place. I don't think you can place inside [] like that: echo trtd.$myrow[artist].td.$myrow[title]; I have been struggling with this code: I was wondering if someone could lend me a

[PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
I seem to be getting unexpected information from a mysql fetch field query. My table has three fields- here is the schema- CREATE TABLE template ( id smallint(6) NOT NULL auto_increment, name mediumtext NOT NULL, multiple tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (id), UNIQUE

Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Sat, 16 Mar 2002, Edward van Bilderbeek - Bean IT wrote: maybe you better use: session_unregister(counter); I've put that, but it doesn't run. As you can see in the URLs below, my code is: if ($id == logout) { // the user wants logout :( session_unregister(counter); }

RE: [PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
Actually I've alreasdy worked it out- sorry -Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED]] Sent: 17 March 2002 10:31 To: [EMAIL PROTECTED] Subject: [PHP] mysql fetch field I seem to be getting unexpected information from a mysql fetch field query. My table has

Re: [PHP] send fax

2002-03-17 Thread heinisch
At 17.03.2002 07:35, you wrote: Hi, is it possible to send automated faxes via PHP? Thanks in advance, Senih If your ISP or your server is able to, yes. something like exec(sendfax options,$foo); should do this. check out your system and ISP for more infos on it. Some ISP´s offer the sending of

Re: [PHP] retrieving remote web page

2002-03-17 Thread heinisch
At 17.03.2002 00:45, you wrote: Hi, I'm wanting to retrieve a remote page and extract information from it to insert into my own page. I know that this can be done with fopen, however the page I am wishing to retrieve is generated with a POSTed form. Is there any way that I can retrieve a page

[PHP] securing the website with htaccess creates problems with getimagesize

2002-03-17 Thread andy
Hi there, I did put a password via htaccess on my website to hide my testing environment from other users. Now I discovered, that PHP can't read imagefile information via getimagesize because it does not get access to this dir anymore. How could I add php as a user with propper password ?

Re: [PHP] Re: No Sense: [PHP] Update: [PHP] Weird?

2002-03-17 Thread heinisch
At 17.03.2002 17:09, you wrote: Hey folks, I read this with half of mind, but as I know, the function date needs something to convert from. $date = date (MD); for my opinion it should be called $date=date(MD,time()); or $date=date(MD,mktime(..)); then everything should work $to_path =

Re: [PHP] Copy *.*

2002-03-17 Thread heinisch
At 17.03.2002 03:10, you wrote: Does anyone know of another snippet any place where I can copy *.* (files and all sub-directories) from one drive to another? In other words, a backing-up function. The snippet I got from http://www.php.net/manual/en/function.copy.php has been a disaster. John

Re: [PHP] OBJECT£ºWHAT'S THE RALATION BETWEEN A,B AND C?

2002-03-17 Thread Oliver Heinisch
At 17.03.2002 10:01, you wrote: ?php class A { function A($i) { $this-value = $i; // try to figure out why we do not need a reference here $this-b = new B($this); } function createRef() { $this-c = new B($this); } function

Re: [PHP] Problem with sessions.

2002-03-17 Thread Tom Rogers
hi If you put: ? session_start(); as the first line on your page it will behave as you want I think. Tom At 08:41 PM 17/03/2002, Carlos Costa Portela wrote: On Sat, 16 Mar 2002, Edward van Bilderbeek - Bean IT wrote: maybe you better use: session_unregister(counter); I've

Re: [PHP] Class Function Issue

2002-03-17 Thread heinisch
At 16.03.2002 22:24, you wrote: Hi! I'm building a class, and am trying to include an authorization function the code works when used outside of the class, but when I put it inside the class, for some reason my session variables won't get set. Am I attempting the impossible, or am I

[PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread andy
Hi there, I am wondering if it would be possible to replace all chars which are not inbetween [a-z] with a valid asccii coresponding to it. I have a db with a bunch of citynames and I would like to create valid filenames out of those. The prob is, that I do not know all special chars. For

Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Sun, 17 Mar 2002, Tom Rogers wrote: hi If you put: ? session_start(); as the first line on your page it will behave as you want I think. Thank you very much. It runs now ok :-). But I don't understand why, if I call session_destroy(), the system remember the value of the

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread bvr
A good solution is to store the file under a random generated filename and store that name, together with the real name, to the database. bvr. andy wrote: Hi there, I am wondering if it would be possible to replace all chars which are not inbetween [a-z] with a valid asccii coresponding to

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread andy
I don't agree. Under this circumstances no picture search engine is gonna find this file. Thats why I am rewriting this module. Thanx anyway. Andy Bvr [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... A good solution is to store the file under a random

Re: [PHP] Problem with sessions.

2002-03-17 Thread Tom Rogers
Hi As you had not started a session at that point there was none to destroy or unregister :) Tom At 11:53 PM 17/03/2002, Carlos Costa Portela wrote: On Sun, 17 Mar 2002, Tom Rogers wrote: hi If you put: ? session_start(); as the first line on your page it will behave as you want

Re: [PHP] Problem with sessions.

2002-03-17 Thread Carlos Costa Portela
On Mon, 18 Mar 2002, Tom Rogers wrote: Hi As you had not started a session at that point there was none to destroy or unregister :) Ok!!!. Thank you very much, Carlos. http://www.tertulandia.com : sea cual sea tu tema... allí está tu sitio! ___Carlos Costa

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread Michael Sims
At 02:31 PM 3/17/2002 +0100, andy wrote: Hi there, I am wondering if it would be possible to replace all chars which are not inbetween [a-z] with a valid asccii coresponding to it. I have a db with a bunch of citynames and I would like to create valid filenames out of those. The prob is, that I

[PHP] Session --trans-id

2002-03-17 Thread lists
I have complied PHP with the enable trans id option However, when I start a session and go to a relivtive link , (./page.php) I do not get a session id in my URI. Any Ideas? Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Writing files a problem

2002-03-17 Thread Ben Waldher
When writing to a file several problems occur with this code: ?php $stuff = include (news.txt); $file = fopen (news.txt, w); $newnews = include (template.txt) . $stuff; fwrite ($file, $newnews); ? However, this code works: ?php $file = fopen(template.txt, w); fwrite ($file, $temp); fclose

[PHP] Including an external php file existing on another server..

2002-03-17 Thread Martin Stix
Hi! On my Server i can`t use the date(W) function, and on another it works. How can i first run the script on the other server and then include it in a script on my server so i can use the date(W) variable? thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Writing files a problem

2002-03-17 Thread Jason Wong
On Monday 18 March 2002 00:46, Ben Waldher wrote: When writing to a file several problems occur with this code: ?php $stuff = include (news.txt); $file = fopen (news.txt, w); $newnews = include (template.txt) . $stuff; fwrite ($file, $newnews); ? However, this code works: ?php $file

Re: [PHP] Class Function Issue

2002-03-17 Thread Jason Bell
oops... meant to send this to the list - Original Message - From: Jason Bell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 17, 2002 10:27 AM Subject: Re: [PHP] Class Function Issue Thanks for the tip. I tried that... I passed $HTTP_SESSION_VARS as a parameter, and it

php-general Digest 17 Mar 2002 18:49:42 -0000 Issue 1232

2002-03-17 Thread php-general-digest-help
php-general Digest 17 Mar 2002 18:49:42 - Issue 1232 Topics (messages 88804 through 88837): Re: Again, and Again, and AGAIN! 88804 by: Jason Wong Re: check on pictures 88805 by: Martin Kampherbeek send fax 88806 by: Senih 88818 by: heinisch.creaction.de

[PHP] creating a dBase III file

2002-03-17 Thread Don
Hi, I need to create a dBase III file however, my ISP does not have PHP compiled with --enable-debase. Does any one have or know of a class that could accomplish this? Thanks, Don

[PHP] substr_count() and regex

2002-03-17 Thread Gil Disatnik
Hello there, I am trying to use substr_count() to count the number of Hebrew characters in a string, I tried substr_count($test, /[à-ú]/), but it returns 0 as if it can't match the regex I have inserted there, I hoped it will work the same as preg_match() that works great (preg_match(/[à-ú]/,

Re: [PHP] substr_count() and regex

2002-03-17 Thread Bas Jobsen
? function count_hebrew($string) { $i=0; while(preg_match(/[à-ú]/,$string)) { $string=preg_replace(/[à-ú]/,,$string,1); $i++; } return $i; } $hebrew_characters=??? àhhjúkkk; $number_of_hebrew_characters=count_hebrew($hebrew_characters); echo $number_of_hebrew_characters; ? Op zondag 17

Re: [PHP] Class Function Issue

2002-03-17 Thread heinisch
At 17.03.2002 10:49, you wrote: Thanks for the tip. I tried that... I passed $HTTP_SESSION_VARS as a parameter, and it didn't work. :/ I also built another function inside the class to set session variables: function SetSVAR($var,$value) { global

[PHP] Re: index.php question

2002-03-17 Thread LaserJetter
Try adding a slash to the end of the URL i.e. www.whatever.com/~jondoe/ and see if that helps. Maybe Apache tries to parse your PHP file as if it is an HTML file. Omland Christopher M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I'm new to the

[PHP] pdflib

2002-03-17 Thread Ben Edwards
I have a html report and am looking into using phplib to generate a pdf instead. I have got it installed and started experimenting with it but ether it is extremely convoluted or I am missing something. How would I create a simple list report (the type you would do in a table). It seems

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread mnc
I don't agree. First of all, picture search engines don't use filenames, they use ALT attributes and surrounding text. Secondly, you can still make the images available using both the database ID and a urlencoded version of the original filename:

Re: [PHP] pdflib

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, Ben Edwards wrote: I have a html report and am looking into using phplib to generate a pdf instead. I have got it installed and started experimenting with it but ether it is extremely convoluted or I am missing something. How would I create a simple list report (the

[PHP] links

2002-03-17 Thread Morten Nielsen
Hi, I got a table where I on the left has a link to page1. Another place in the table I have a button, which also links to page1. Is it possible to tell which of the two links has been pressed. I need to know so I only show a specific message when the button has been pressed. Regards, Morten

Re: [PHP] links

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, Morten Nielsen wrote: I got a table where I on the left has a link to page1. Another place in the table I have a button, which also links to page1. Is it possible to tell which of the two links has been pressed. I need to know so I only show a specific message when the

[PHP] Web Tables and php forms

2002-03-17 Thread mikeyb
I am completely stuck, and I am preying that someone will be able to help me. I have set up a php web form that allows one of my users to write columns for my site. This works great, I do a search and replace to replace /n with br because they don't know much about html. I have managed to

Re: [PHP] Saving data with cookies

2002-03-17 Thread heinisch
At 17.03.2002 18:21, you wrote: Hi list, I'm developing a system to store Resumes, since my form has a lot of fields, about 70, i'd like to have the ability to save the filled ones if my user wants to finish it later. Wha'ts the best way to implement this kind of feature. Maybe I could use

Re: [PHP] Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, Daniel Negron/KBE wrote: $sql= SELECT * FROM cd_list WHERE $searchstring LIKE '%searchstring%' ORDER BY artist ASC; How about: SELECT * FROM cd_list WHERE searchstring LIKE '%{$searchstring}%' Then again, do you actually have a column called searchstring in your

[PHP] Errormessages

2002-03-17 Thread Markus Falk
I run a script on my page that has worked fine before with 4.0.3 but now when my provider has upgraded to 4.1.2, a bunch of error messages appear. I get some messages about variables not being defined just as if I can't send variables via the adressbar (/ ../index.php?$kat=0 for example. ) How

Re: [PHP] Errormessages

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, Markus Falk wrote: I run a script on my page that has worked fine before with 4.0.3 but now when my provider has upgraded to 4.1.2, a bunch of error messages appear. I get some messages about variables not being defined just as if I can't send variables via the adressbar

Re: [PHP] Web Tables and php forms

2002-03-17 Thread Bogdan Stancescu
If you want to do this the hard way (for you) then you can create a form which asks for the number of rows/columns and pops up another form with a table and rows x columns input boxes - then you can build the table code and maybe even insert it in the original code via JavaScript (assuming

[PHP] Moving server clock?

2002-03-17 Thread Leif K-Brooks
Right now, I have a static server time clock on my page, produced by date(). I would like to make it move, and I was wondering if anyone has code that returns the server time to javascript to animate it or something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Web Tables and php forms

2002-03-17 Thread Justin French
I think you have to draw a line somewhere... you can't give them everything they want, becasue the costs involved in making these simple tools available is massive. And at every step where you give them more control, you lose a little more control. Do you REALLY want them creating tables? This

Re: [PHP] Copy *.*

2002-03-17 Thread jtjohnston
Windows :) John [EMAIL PROTECTED] wrote: At 17.03.2002 03:10, you wrote: Does anyone know of another snippet any place where I can copy *.* (files and all sub-directories) from one drive to another? In other words, a backing-up function. The snippet I got from

Re: [PHP] creating a dBase III file

2002-03-17 Thread Miles Thompson
Don, Since you are creating this file, you can wrap your character fields in quotes. (Surely you can amend it to look after plumbing issues?) They're automatically stripped off in the APPEND FROM .. DELIMITED WITH delimited. Alternately you can use tabs to separate fields, tildes, almost

[PHP] T_CONSTANT_ENCAPSED_STRING error

2002-03-17 Thread Patrick Teague
I'm receiving Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error when trying to require_once a couple of files. top of index.php looks like so (line 3 is where I use $homeDir . /common/header.php) ?php require_once(homedir.php);

Re: [PHP] Moving server clock?

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, Leif K-Brooks wrote: Right now, I have a static server time clock on my page, produced by date(). I would like to make it move, and I was wondering if anyone has code that returns the server time to javascript to animate it or something? Are you particularly concerned

Re: [PHP] Targetted redirection?

2002-03-17 Thread Michael P. Carel
is there any limitation with header function?im wondering why it not realy working for me. it really gives me a headache. i've done exactly what you've told us but it does'nt work. i remove the comment from the left.php or right.php and retain the index.ph as-is, but still it doesnt jump out the

[PHP] Brain Dead...

2002-03-17 Thread Chuck \PUP\ Payne
I am trying to get a form to work with pull down menu. But I am so brain dead I forgot how to get the input from the pull down menu. Where do I put input to pass on to php? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
Dropdownmenu is a select name=ddmenuoption/select So the php variable that will hold the user's choice is stored in variable $ddmenu. Thus, no input needed. cheers, --thalis On Sun, 17 Mar 2002, Chuck PUP Payne wrote: I am trying to get a form to work with pull down menu. But I am so

Re: [PHP] Brain Dead...

2002-03-17 Thread Chuck Payne
Ok, but I have this as an example select name=abc size=1 option value=a selectedA/option option value=bB/option option value=cC/option option value=dD/option /select Are you saying that abc should be $abc? I not

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
What does I get that it can't do the query mean? What error are you getting? On Sun, 17 Mar 2002, Chuck Payne wrote: Ok, but I have this as an example select name=abc size=1 option value=a selectedA/option option value=bB/option

RE: [PHP] Brain Dead...

2002-03-17 Thread Martin Towell
do other variables you pass to the script get set? if not, do you have register_globals (or whatever it is) turned on? maybe use $_GET or $_POST instead? -Original Message- From: Chuck Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 1:36 PM To: Thalis A. Kalfigopoulos Cc:

Re: [PHP] Brain Dead...

2002-03-17 Thread Chuck Payne
When I go to post, I get the following alertCouldn't execute query so I know I can connect, so it must be my SQL statement. That why I wondering how to pass the menu information to php so that it can do the SQL statement. I don't have $abc in the menu but I do have abc. So I am trying to

RE: [PHP] Brain Dead...

2002-03-17 Thread Martin Towell
Another thing you might want to try doing is throwing in phpinfo() somewhere to see what variables you are actually getting -Original Message- From: Chuck Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 1:44 PM To: Thalis A. Kalfigopoulos Cc: PHP General Subject: Re: [PHP]

[PHP] Re: Invalid Argument ??? Not sure how to debug this (RESOLVED)

2002-03-17 Thread Daniel Negron/KBE
I guess I should have walked away then come back to it. I was just trying to get this code to work with little effort as possible. I guess, I should have done it right in the first place. What I didn't realize is that I mistakenly made $sql= SELECT * FROM cd_list WHERE $searchstring LIKE

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
Is it possible to check the Mysql log and tell us its point of view? On Sun, 17 Mar 2002, Chuck Payne wrote: When I go to post, I get the following alertCouldn't execute query so I know I can connect, so it must be my SQL statement. That why I wondering how to pass the menu information

Re: [PHP] Brain Dead...

2002-03-17 Thread Chuck Payne
I think it I am the right path now, it has to do with $_GET or $_POST not passing the information on to mysql. But I will look at the log shortly. Chuck - Original Message - From: Thalis A. Kalfigopoulos [EMAIL PROTECTED] To: Chuck Payne [EMAIL PROTECTED] Cc: PHP General [EMAIL

RE: [PHP] PHP CGI

2002-03-17 Thread Martin Towell
simple answer - yes and possibly I believe, anything that's run on a server to output stuff to a browser, can be considered a CGI program The second question is like asking - Will COBOL ever become obsolete? - maybe, possibly, but there'll, no doubt, be someone, somewhere still using it.

[PHP] Having problems doing a binary upload. open_basedir problem?

2002-03-17 Thread Jack E. Ambrose
I'm attempting to get file uploads via a HTML form to work. I've been working on this for a couple of days, reading the PHP.net manual, and searching the newsgroups and various web sites. Haven't come up with a solution to my problem. Basically I'm unable to upload any files to my web site. I

Re: [PHP] Errormessages

2002-03-17 Thread Jason Wong
On Monday 18 March 2002 06:31, Markus Falk wrote: I run a script on my page that has worked fine before with 4.0.3 but now when my provider has upgraded to 4.1.2, a bunch of error messages appear. I get some messages about variables not being defined just as if I can't send variables via the

[PHP] I need help building The CGI Open Source Foundry (COSF)

2002-03-17 Thread David Duong
I need some experienced people to become managers of the CGI Open Source Foundry (COSF)? I am planning to make a CGI Open Source Foundry We will start in stages. Stage 1 getting initial members (Hard Part) - Once we gain 10-20 members we will start stage 2. Stage 2 Dividing them into

[PHP] password protect off site file

2002-03-17 Thread Sean Karshis
Hello, Is there any way to password protect a file for an include(); that is off site? Server A has a php script that has a call to a text file on server B, but to get access I need the A user to enter a password ID before they can take a look at the file on B. htaccess only works for images

Re: [PHP] PHP CGI

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, David Duong wrote: Can PHP be considered CGI? Sometimes. CGI is a standardized interface between web servers and backend applications. PHP can communicate with web servers using that mechanism, but it doesn't have to (depends on the web server in use). I think the

Re: [PHP] PHP CGI

2002-03-17 Thread David Duong
I mean any time you hear the word CGI it is rarely referring to PHP, always Perl (My most comfortable Web language). You'd think that CGI only refers to Perl. If you goto a site and download scripts under category CGI you would be downloading Perl scripts, PHP has its own category. Should CGI

RE: [PHP] PHP CGI

2002-03-17 Thread Martin Towell
I think the meaning of CGI is quite blured. Anyone else think so? I think the the meaning of CGI (Common Gateway Interface) has lost it's meaning by a lot of people who just hear the acronym and not the full phrase. It's like the term PC - when people hear that, they almost straight away think

Re: [PHP] PHP CGI

2002-03-17 Thread mnc
On Sun, 17 Mar 2002, David Duong wrote: I mean any time you hear the word CGI it is rarely referring to PHP, always Perl (My most comfortable Web language). You'd think that CGI only refers to Perl. Back in the day, CGI repositories had a greater representation of programs written in C and

[PHP] $_SESSION / Windows doesn't work!?

2002-03-17 Thread Hiroshi Ayukawa
Hi, I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version. But it seems that $_SESSION doesn't work, even in the simplest samples like; -- ?php session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else {

[PHP] empty lines cause http headers?

2002-03-17 Thread Michael Zornek
I'm writing a page that will do a little snooping into a db (based on a previous form submit) and start a session based on the results. The problem is that PHP seems to be sending the HTTP headers when it encounters the first blank line in the code (which I do use to help separate the code a

Re: [PHP] empty lines cause http headers?

2002-03-17 Thread mnc
On Mon, 18 Mar 2002, Michael Zornek wrote: The problem is that PHP seems to be sending the HTTP headers when it encounters the first blank line in the code (which I do use to help separate the code a bit). Am I right in this assumption .. and then the big Q.. how do I do PHP calculations

[PHP] unscriber please

2002-03-17 Thread RoyD
Roy Daniel , ST IT Developer System - PT BERCA COMPUTEL My E-mail : [EMAIL PROTECTED] and : [EMAIL PROTECTED] / [EMAIL PROTECTED] My ICQNumber : # 103507581 My Phone Cell : 0816-1192832 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty lines cause http headers? [FIXED]

2002-03-17 Thread Michael Zornek
Twas 3/18/02 12:21 AM, when [EMAIL PROTECTED] [EMAIL PROTECTED] said: Just make sure the blank lines are ? inside php tags ? If they're out in the raw HTML area, the headers will get packaged up and the content output buffer collection will begin. After some investigation I saw an extra

[PHP] pathname

2002-03-17 Thread jtjohnston
I need a function to traverse a pathname to check if the path exists, if not start from scratch and create (MkDir) the path. Let's say: $to_path = c:\\aaa\\bbb\\ccc\\ddd\\; or $to_path = c:/aaa/bbb/ccc/ddd/; if(!is_dir($to_path)) { #I need to explode by both \\ AND / to find out

Re: [PHP] pathname

2002-03-17 Thread mnc
On Mon, 18 Mar 2002, jtjohnston wrote: I need a function to traverse a pathname to check if the path exists, if not start from scratch and create (MkDir) the path. Let's say: $to_path = c:\\aaa\\bbb\\ccc\\ddd\\; or $to_path = c:/aaa/bbb/ccc/ddd/; if(!is_dir($to_path)) { #I need to

[PHP] NNTP Services

2002-03-17 Thread news.php.net
Hello everyone I have a problem to post messages to newsgroups. How can i do it. thanks Muhammad Fawad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] rec_copy

2002-03-17 Thread jtjohnston
http://www.php.net/manual/en/function.copy.php Thanks all! I needed to check if pathname exists: if (!is_dir($to_path)) { echo Creating destination pathbr; create_path($to_path); } John Steele helped out with a few lines of code. I added a comment to