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 path";
create_path($to_path);
}
John Steele helped out with a few lines of code. I added a comment to
http://www.php.net/manual/en/function.cop
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
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 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
mkdir($to_p
Twas 3/18/02 12:21 AM, when "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said:
> Just make sure the blank lines are
>
> 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 space after th
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
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
> calculati
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 bit)
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;
--
".$_SESSION['count'];
?>
!
---
session_id is se
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 an
>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 thin
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 s
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 probl
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
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 group
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
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
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.
-O
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" <[EMAI
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 alert"Couldn'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 informat
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 '%
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] B
When I go to post, I get the following alert"Couldn'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 fi
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: PH
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
>
>
> A
> B
> C
> D
>
>
> Are you saying that abc sho
Ok, but I have this as an example
A
B
C
D
Are you saying that abc should be $abc? I not clear.
I have for my sql as this...
db_name = "xxxinks";
$table_name = "ssslinks";
$connection = @mysql_connect("mybox.
Dropdownmenu is a
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 brain
> dead I forgot how to
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
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
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
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")
contents of homedir.php is
As you c
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
. Alternately you can use tabs to separate fields, tildes,
almost anything.
To traverse a directory tree check out PEAR's Filesystem related utilites File_Find
and in particular File_Find::maptree
http://pear.php.net/manual/en/packages.file.find.php
cheers,
--thalis
On Sun, 17 Mar 2002, jtjohnston wrote:
> Windows :)
> John
>
> [EMAIL PROTECTED] wrote:
>
> > At 17
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
> >http://www.php
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? Thi
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: http:
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 tha
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 adress
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 co
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 u
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 because they
don't know much about html. I have managed to get t
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
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
-
Is there a guide to installing apache on WinMe or Win 98.
Or is there another way I can test me php pages locally?
Cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 cookies, right?!?!? If so, how can I s
Have you looked into clibpdf?
Stephano Mariani
> -Original Message-
> From: Ben Edwards [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 17 March 2002 8:4 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] pdflib
>
> I have a html report and am looking into using phplib to generate a
pdf
> instead.
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 (t
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:
http://myserver.org/fetchimage.php/33445/gubers
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
all
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
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 ma
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) {
> > glob
Op zondag 17 maart 2002 20:15, schreef 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
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("/[à-ú]/
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-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
Cl
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, an
On Monday 18 March 2002 00:46, Ben Waldher wrote:
> When writing to a file several problems occur with this code:
>
> $stuff = include ("news.txt");
> $file = fopen ("news.txt", "w");
> $newnews = include ("template.txt") . $stuff;
> fwrite ($file, $newnews);
> ?>
>
> However, this code works:
>
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,
When writing to a file several problems occur with this code:
However, this code works:
The problem with the first set of code is that it opens template.txt1, and
some letters that were in template.txt become a 1.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
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
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, th
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
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
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 rand
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
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
va
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 example
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
hi
If you put:
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 :(
>
At 17.03.2002 10:01, you wrote:
>
>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);
> }
>
>
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.
>
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_p
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 ?
Thanx
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
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 sendi
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 th
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");
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 i
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 "".$myrow["artist"]."".$myrow["title"];
> I have been struggling with this code: I was wondering if someone could
> lend
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
>
> |-
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
|-|
| W
82 matches
Mail list logo