I'm stuck. I have been to the MySQL lists for this.
Now I'm reconsidering my PHP code.
http://ccl.flsh.usherb.ca/print/display.table.inc.phps
I just don't know where I'm going wrong anymore.
If I run this SQL in PHPMyAdmin, it works. jdaxell.ccl should have one
entry for "ready maria".
SELECT i
Chris, or anyone,
I have tried to escape the slashes. Debugging ...
$sql = 'SELECT ... ...
AGAINST (\'"ready maria"\' IN BOOLEAN MODE) ...';
This works. But if I addslashes or stripslashes, or do nothing, it does not
work.
See these 3 variations. Neither work. What should I do? A part from hang
foreach($newlines as $newline) {
#how do I get the index of the array each time $newline is printed out?
echo ??;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can someone see clearly through what I'm trying to do please?
I've been at this for 4 hours trying to see where I have gone wrong.
# contents of a text file #
Enregistrement
TI: ... So They Understand ...: Cultural Issues
AU: Schneider,-William
PB: Logan, UT : Utah
Hi,
I am parsing the contents of a text file.
I have certain lines that start with "&&4;" I would like to attach these
lines to the previous line as follows. But I don't know how. I figure I
have to search and replace for "\n&&4;" but ... ?
BEFORE:
Here is an example of before.
&&4; here is the
This is the input of a . I don't suppose there is an easier
way of doing this?
$mydata->KW = str_replace("\r", "", $mydata->KW);
$mydata->KW = str_replace("\n", "", $mydata->KW);
$mydata->KW = str_replace("", "", $mydata->KW);
What does htmlspecialchars do exactly?
Yes I've read the docs, but di
Let's say I have two fields TNum and AU.
TNum is a BritishAmericanCanadian
AU name of an author. I want to sort them as follows.
British
Shakespeare
American
Joyce
Samuels
Twain
Canadian
Majors
uot;".$mydata->TNum.":";
> }
> $body .= "".$mydata->AU."";
> }
> ------
>
> tada!!
>
> Martin
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:05 PM
>
$mydata->TNum;
> $body .= "".$mydata->TNum.":";
> }
> $body .= "".$mydata->AU."";
> }
> ------
>
> tada!!
>
> Martin
>
> -Original Message---
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I have read the FAQ
http://www.php.net/manual/en/function.mysql-close.php
This might even be a mysql question, but I could really use some advice
from people using php scripts to access mysql.
I have been getting a lot of this on my windows/mysql server:
020130 16:11:08 C:\PROGRA~1\EASYPHP\MySq
Towell wrote:
> sure about that ?
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] .
>
> .
>
> --
> PHP General Mailing List (http://www.php.net/)
> T
I'm having growing pains with my mysql server (Windows).
I get a lot of "Forcing close of thread ..."
Do I need to add mysql_close() to the end of everything? I never had to
before on a Unix mysql server. Is "mysql_close($myconnection);" correct?
Is it necessary?
$myconnection = mysql_pconnect($
What is the difference between:
$myconnection = mysql_connect($server,$user,$pass);
and
$myconnection = mysql_pconnect($server,$user,$pass);
I read the faq.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
be
persistent only until the script finishes, but I can prove otherwise. A windows
thing? Who knows?
John
Jeff Sheltren wrote:
> At 11:09 PM 1/2/2002 -0500, jtjohnston wrote:
> >What is the difference between:
> >
> >$myconnection = mysql_connect($server,$user,$pass);
>
Actually, from what I understand, with the persistent connection, it is
left open even after the script is finished - that's why it's called
persistent.
Jeff, (Not Jim :) - it's getting way late for my tired eyes :) Sorry.
Thanks. I suppose I had to read it one more time.
That at least makes sen
I want to do something like this on a page:
Pages: 1 2 3 [Next>>]
How can I code SELECT * FROM `bookmarks` LIMIT 0, 30 ?
Thanks?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
Anyone Awake? Up?
I'm using 12 checkboxes
dynamically generated by mysql. Each has an id as primary index so I do
this:
id."\"
VALUE=\"".$mydata->yourname."\">
When I submit, I want to echo to see if anyone clicked on them. But I
can't get my variable right to find $check1 through $check12.
lt;= $NMax; $i++)
{
#$varname = "$Check".$i;
$varname = "Check".$i
#echo $varname;
if ($varname)
echo "$varname = $i";
}
Thanks much!
John (Brr it's cold up here.)
Luke Welling wrote:
> "Jtjohnston" wrote:
> > Anyone Awake? Up?
>
;");
> echo $string."";
> }
>
> Niklas
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: 1. helmikuuta 2002 9:16
> To: [EMAIL PROTECTED]
> Subject: [PHP] Anyone Up?
>
> Anyone Awake? Up?
>
> I'm using 1
Good day, morning, night? It's dark, so that makes it sleepy bye time.
Bit before I do, I'm trying to work this out.
I have a little bit of code to print Next n>> articles in my database.
Can someone help me straighten out these lines of code, pretty please
... before I go fleeping nuts :)
if(!$r
Is there a function or class written to convert rtf reliably to html? :)
Let me know,
John
A post & reply would be helpful if you can.
"Jason G." wrote:
> MS Word is a proprietary, binary (i think), format... Have fun.
>
> There may be a solution out there.
>
> If you could convince her to save
In MySQL, I have a date field that is formatted 000-00-00 Is there a
function in PHP I did not find yet that does this?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$date = date ("Y-m-d"); #works?
:)
Jtjohnston wrote:
> In MySQL, I have a date field that is formatted 000-00-00 Is there a
> function in PHP I did not find yet that does this?
> John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using this code to create a "Next n Articles >>" on my index.page
from my mysql database.
I worked most of it out myself. Then I got some help. It works. I
thought I understood my own code enough to be able to construct a "<<
Previous n Articles". I guess not. My coding skills need help.
So ho
Michael,
I think you're trying to kill yourself coding. here's what I do for myself:
Select Someone
EM."\">".$mydata->FirstName."
".$mydata->LastName."\n";
}
mysql_close($myconnection);
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to reset the autoindex in a mysql table using php if I can.
I found this. Can anyone help?
http://www.mysql.com/doc/m/y/myisamchk_other_options.html
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason,
I'm not ssure I follow.
$offset is the number i read in in my
$limit is the number displayed.
$num_rows is the number of rows in my database.
What are you doing with $previous? $previous would be my string, not the
previous offset?
Could you show me again?
> > if(!$offset)
> > {
> > $of
I'm looking for a function that will find occurences of urls in any
given string and do this:
http://www.nowhere.com/
becomes
http://www.nowhere.com/";>http://www.nowhere.com/
Could, should also look for
mailto:[EMAIL PROTECTED]
telnet:blah.blah
or even news:blaj.blah
Does such a thing exist?
Hello,
I'm looking for code to display all my mysql databases in a .
On change, I want to display all my tables in a .
Finally, on change, it has to display all record of the table selected:
Print Record
id YR AU BT
1 1997 Fee, Margery Writing Orality: Interpreting
Heres's a frustrating, and maybe not so stupid question?
I'm getting "Warning: Supplied argument is not a valid MySQL result
resource" on this line:
while ($mydata = mysql_fetch_object($news))
So what am I doing wrong here:
$where = "id like $id";
$news = mysql_query('select * from ccl where '
> > while ($mydata = mysql_fetch_object($news))
> > So what am I doing wrong here:
> > $where = "id like $id";
> > $news = mysql_query('select * from ccl where '.$where.' order by AU desc');
> //desc => z-a
> A) Have you already confirmed that a valid database connection was made?
Yes. A copy an
This is a bug "Feature/Change Request" I made to:
http://bugs.php.net/bug.php?id=17158
setcookie() states "cookies must be sent before any other headers
are sent (this is a restriction of cookies, not PHP).
I argue this is a restriction of PHP, not cookies.
Here is my proof:
http://www.college
als with server-side
> issues. If you want to write javascript that sets a client-side
> Javascript cookie, go ahead. It has nothing to do with PHP and PHP will
> certainly not get in your way.
>
> -Rasmus
>
> On Sat, 11 May 2002, jtjohnston wrote:
>
> > This is a
PHP and PHP will
> > certainly not get in your way.
> >
> > -Rasmus
> >
> > On Sat, 11 May 2002, jtjohnston wrote:
> >
> > > This is a bug "Feature/Change Request" I made to:
> > > http://bugs.php.net/bug.php?id=17158
> > >
I know I'm not doing this right, but ..
What I want to do is display the value of $q1 through $q3.
How? I can't get eval() to do it, can I?
for ($i = 1; $i <= 3; $i++)
{
$x= eval ("\$q".$i);
echo"$x\n";
echo"\n";
}
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I want to detect the url my .php lies in.
This is over kill and BS:
$myurlvar = "http://".$SERVER_NAME.parse($SCRIPT_NAME);
How do I get "http://foo.com/dir1/dir2/dir3/";.
There seems to be nothing in phpinfo() that will give me a full url to
play with.
Flame me if you will, but I browsed TFM
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Yeeesch! I neet help.
I need a method to flush out lists of authors in a MySQL field called
"KW".
The field looks a bit like this:
&&1; Caribbean and West Indies; Guyana;&&4;
I know this is a bit off the wall for most, but for what purpose do you
use phpmyadmin & mysql?
What are your projects?
Does anyone know of any good articles that discuss databasing, PHP,
MySQL and or PHPMyAdmin for academic purposes?
I'm a university researcher and want to collect some data.
Joh
What header do I type to gzip something out on the screen? To make the
output go faster, such as this text output:
http://ccl.flsh.usherb.ca/db/export_to_nb_format.php
I don,t want to actually zip the output, just make it go faster. Someone
once told me I could do that so the server spits output f
It's called GZIP output buffering whatever that may be?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does this do it?
ob_start();
while ($personne = mysql_fetch_object($news))
{
$output = "";
$output .= "R#:".$personne->id."¶\n";
if($personne->TNum != ""){$output .= "T#:".$personne->TNum."¶\n";}
$output = ob_get_contents($output);
echo $output;
ob_end_clean();
}
--
PHP General Mailing Lis
I've narrowed down working code to this, but does it really do the job?
Does this really go faster?
header("Content-type: text/plain");
...
while ($personne = mysql_fetch_object($news))
{
ob_start();
$output = "";
$output .= "R#:".$personne->id."¶\n";
if($personne->TNum != ""){$output .= "T#:".$
Question 1:
How can I append strings to my authors array?
Me thinks this doesn't work :§) ?
$authors .= explode(";", $mydata->KW);
I'm getting "Invalid argument supplied for foreach()"
Question 2:
Once I get this working, I want to (a) alphabetise the contents of the
array, (b) count repititions,
I guess it's because I didn't really follow Niklas' post, so I'll ask
the first part of yesterday's question again, if someone can help me
think my way through it. I've been looking at
http://www.php.net/manual/en/ref.array.php but don't really get HOW to
build an array from my MySQL data.
I'm ex
OK. I use:
while ($mydata = mysql_fetch_object($news))
{
$authors = explode(";", $mydata->AS);
}
Then why "Invalid argument supplied for foreach()"
Am I indeed building an array as I go through my database?
foreach($authors as $author)
{
#echo sort($author)".\n";
echo "$author\n";
}
ht
Yeah but, this doesn't work either? I'm trying :)
$news = mysql_query("select AS from $table");
while ($mydata = mysql_fetch_object($news))
{
# $authors = explode(";", $mydata->AS);
array_push ($authors, explode(";", $mydata->AS));
}
foreach($authors as $author)
{
echo "$author\n";
}
What's the difference between
if (isset($submit_happening))
and
if $submit_happening)
John
[EMAIL PROTECTED] wrote:
> On Fri, 22 Feb 2002 21:38:16 -0500, you wrote:
>
> >I'd to know how difficult it is to achieve the following:
> >
> >Create login page, when the submit button is clicked, the us
I'm splitting mysql entries to build an array of author names called $authors.
> As someone already suggested, you could use:
> array_push($authors, explode(";", $mydata->AS));
http://ccl.flsh.usherb.ca/db/authors_under_study.php
It works, but still gets "First argument to array_push() needs t
Success. After a bit of tinkering :) and reading up. Thanks for the
ideas.
Now one last question. here is my array $authors:
http://ccl.flsh.usherb.ca/db/authors_under_study.php
sorted alphabetically.
How do I go about sorting again it so it renders:
Aguiar, Flavio1
Andrade, Mario d
rand (1, 2)
http://www.php.net/manual/en/function.rand.php
?
J
"Philip J. Newman" wrote:
> I'm trying to make a random number kind of a coin toss,
>
> heads = 1 = left
> tales = 2 = right
>
> any solutions
>
> Philip J. Newman
> Philip's Domain - Internet Project.
> http://www.philipsdomain.com/
http://ccl.flsh.usherb.ca/db/authors_under_study.php
or
$names = array ("john", "mary", "bill", "mary", "bill", "mary", "bill",
"john", "bill", "john");
1) How do I count the elements of $names to produce:
bill 4
john 3
mary 3
2) How do I store the counted elements into a new array? How d
I knew there was areason why I stopped Perling :) THANKS!
How do I disassemble its values? How would I foreach? Something like this?
foreach (array_count_values ($names) as $name and $count) <-??
{
echo"".$name." (".$count.")`;
}
bill (3)
john (3)
mary (4)
http://www.php.net/manual/en/f
Is this what you want?
function validateEmail ($email) {
return (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' .
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email));
}
This will also do the job. It actually connects to the mail ser
What's their deal? How do they offer all that and be so cheap?
Using my site like Geocities to advertise?
http://www.phpwebhosting.com/host_details.html
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:)
foreach (array_count_values ($names) as $name=>$count)
Thanks M! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know if mysql 4 windows is up to snuff yet?
I'm running http://www.easyphp.org/
Can it be installed as localhost2?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Has anyone tried:
instead of :
>\">
I can't get this to work:
if(isset($submit))
with:
I'm not coding correctly?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Your smtp is valid? Try error checking for that? See you php.ini. If you are
running it on localhost you might try the same smtp that is used in your
emailer. I gaffed on that once. :)
Brad Wright wrote:
> Hi all... I have a line in a page that should send me an email when the page
> is loaded.
ubmit.y=20
>
> so php would get this as $submit_x and $submit_y
>
> HTH
> Martin
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] if(isset($submit))
>
&
ubmit.x=118&submit.y=20
>
> so php would get this as $submit_x and $submit_y
>
> HTH
> Martin
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] if(i
&submit.y=20
>
> so php would get this as $submit_x and $submit_y
>
> HTH
> Martin
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] if(isset($submit))
So what is the good of isset? What does if(isset($submit)) do
differently than if($submit) ??
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Over kill?
Martin Towell wrote:
> or have a hidden field, maybe, called "submit"
>
> -Original Message-
> From: jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] if(isse
Hi,
No one seems to be home at my favourite apache newsgroup :) so I'll ask
here.
I'm trying to reconfigure my PHPMyAdmin.
What do I add to my conf file so as in http://phpmyadmin.somehere.com/
points
to a specific directory on my (windows) drive?
For example, how would I point http://www.somehe
Does anyone follow what I'm trying to do?
I have a list of authors I explode from a field called AUS. I sort them
sort($authors);
The layout is agreeable. What I would like now to do is change:
array_push($authors,$singleauthor);
for
array_push($authors,$singleauthor,$mydata->id);
But
Can you show me how :) ? I'm in over my head.
I get working with arrays, but need more practice,
examples etc. to learn how to code from. How would two arays work?
John
> Does anyone follow what I'm trying to do?
>
> I have a list of authors I explode from a field called AUS. I sort them
> sort(
Is this over kill? Is there a "better" way? I have an array.
I want to display all occurences of strings that start with "a" or "A".
http://www.php.net/manual/en/function.substr.php
$rest = substr($mystring, 0, 1); // returns "a"
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
I need to make this case insensitive. This seems like over kill?
if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a"))
{
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks!
Has this ever been improved? It sorts but case insensitively. Is this
over kill :)
usort($authors, create_function('$a,$b','return strcasecmp($a,$b);'));
D'Alpuget, Blanche
d'Alpuget, Blanche
da Silva e Orta, Teresa Margarida
Dabydeen, Cyril
de Campos, Haroldo
De Certeau, Michel
de Certe
It's late, I'm tired.
I want to parse $searchenquiry
if("%" exists in $searchenquiry)
{
do ...
}else{
do ...
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysql-list-dbs works but displays all databases. How do I limit to
display those that a user has access rights to?
http://www.php.net/manual/en/function.mysql-list-dbs.php
$link = mysql_connect($server, $user, $password);
$db_list = mysql_list_dbs($link);
while ($row = mysql_fetch_object($db_
[Posted and Replied]
Salut Marc,
You could find an ini file function. Something like:
http://www.zend.com/apidoc/c1948.php
http://ca.google.yahoo.com/bin/query_ca?p=how+to+access+an+ini+file+using+PHP&y=on&hc=0&hs=0
You would have to add one line:
[MyData]
name=foo
age=100
sex=y
I've done it
I know you would want to code your chmod, but I use my CuteFTP window to
auto-calculate which permissions I want to use/code. Not necessary on Windows,
but on Unix it's an absolute.
I use 644 (Read Owner, Read Group, Read Public,Write Owner, on a Unix
server with no trouble for normal *.PHP files
Group: Is flock even necessary?
Allan: You look like you have Perled. It was necessary for Perl.
Have you thought of MySQL instead?
Alan McFarlane wrote:
> I've just written a couple of simple routines which read an write small text
> files to the server:
>
> function readData( $filename, &$dat
Anyone know of an easy to use library/or code that will read and write
an ini file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > Anyone know of an easy to use library/or code that will read and write
> > an ini file?
> See parse_ini_file() together with the file handling functions.
Dave,
http://www.php.net/manual/en/function.parse-ini-file.php
Good, but no code to write to an ini file?
:) John
--
PHP General Mailing
Has anyone any code that creates a CSS file? A GUI?
As in:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone recommend a good CSS news group?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not really a php thing, more a loss of php :) !
My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!
I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
a
Not really a php thing, more a loss of php :) !
My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!
I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
a
Not really a php thing, more a loss of php :) !
My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!
I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
a
You might have seen a version of this function:
http://www.php.net/manual/en/function.copy.php
I would like to rework this line:
mkdir($to_path, 0777);
where mkdir will ignore $to_path if
the directory already exists. I have already tried this:
#if(!mkdir($to_path, 0777))
# {mkdir($
So I just declare at the beginning:
if(!is_dir($to_path))
mkdir($to_path, 0777);
The code works. But how can I make sure $from_path exists first and fails if
not?
Same thing?
if(!is_dir($from_path))
{
echo "failed";
exit;
}
The first time I ran it, I ran it with a non-existing $from_path direc
On a windows server,
echo getcwd()."";
gives me:
C:\WINDOWS\Bureau\php\microweb
How do I double slash it? Is this ok:
$test_path = getcwd()."\\test1\\";
echo $test_path;
It seems ok, when I echo it? Any screwy Windows thing I need to know
about?
John
--
PHP General Mailing List (http://w
>looks good to me - only screwy thing I can think of is the backslash thing -
>REALLY annoying - and confusing sometimes
Yeah, no kidding. Thanks Martin!
What about if I try copying $to_path onto a Network server?
Do you see any problems with the code and $to_path?
(Not that I have a serve
Not to but in, but you might want to check on your version. www.php.net
published an advisory on a possible flaw on that very issue:
http://www.php.net/release_4_1_2_win32.php
http://security.e-matters.de/advisories/012002.html
Leif K-Brooks wrote:
> I have a script that allows the user to uplo
If I change:
$to_path = "c:\\".$date."www\\";
to
$to_path = "c:\\".$date."\\www\\";
It doesn't work? Otherwise, it works.
Can anyone help? Undoubtably something f-ed in the code, or is it a
Windows thing?
###
$date = date ("Ymd");
Does anyone have time to run this code?
This is definitely weird. Either a Windows or a code problem. If I set:
$to_path = "c:\\ccl_www\\".$date."ccl_www\\";
to:
$to_path = "c:\\ccl_www\\".$date."\\ccl_www\\";
(I add \\)
It fails to create c:\ccl_www\20020315\ccl_www, but otherwise will
create
Miguel,
No, You're right I wasn't running E=All. It's a windows machine, so I have
all the write priveledges I want.
These are the errors I'm getting:
Warning: stat failed for c:\ccl_www\MarFriccl_www\ (errno=2 - No such
file or
directory) in C:\WINDOWS\Bureau\php\microweb\backup4.php
I have created date :)
$date = date ("MD");
That's not it. It seems to fail at one level or another, I think, becuase the
function calls itself - and probably gets lost somehow.
John
> ... i think you might have to create the
> $date directory before writing a file to it.
> writing to /tmp/dir/fi
> The standard quote (') should be used to delimit string literals in MYSQL
> statements. Use it to surround strings you're inserting into or comparing
> against VARCHARs, CHARs, TEXTs, etc.
> $sql = "UPDATE mytable SET name='Best Table Of All' WHERE id=3";
That is ok if you call MySQL in your
te:
> I meant, have you created a physical directory
> named $date?
> That's your problem. There's no directory named $date on your computer, and
> you're
> trying to write files into a non-existent directory.
>
> jtjohnston wrote:
> > I have created date :)
&g
Dave,
That's just the problem with the code. See the snippet,
http://www.php.net/manual/en/function.copy.php
The function should MKDIR for me one level at a time as
the function calls itself. It should MKDIR and copy *.*
if (is_dir($file))
{
rec_copy ($from_path.$file."/", $to_path.$file.
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
--
PHP General Mailing List (ht
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
1 - 100 of 171 matches
Mail list logo