Hi,
i'm writing a piece of code that allows me to upload the updated
version of my website from the local tree, to the server.
I do this by comparing the linux timestamps on the local and remote
files.
printing a table of the remote files works fine, but when i do it for
my local files, i get
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page in hopes to catch
something, but so far I don't see any breakage - I can see there are a
few ways to skin this cat.. the original code I posted DOES work.. I
still may be blind to
At 20:08 06.11.2002, Ford, Mike [LSS] spoke out and said:
[snip]
-Original Message-
[...snip...]
value, in _GET or _POST? Try this:
foreach ($_POST as $name = $value)
$_GET[$name] = $value;
Your application
Well, if, say, one class has this function:
function inherit($class_name, $pointer) {
$this-objects[$class_name] = $pointer;
}
then you end up knowing that, whenever you need to access an instance
for a class, you can use $this-objects['that_class']-that_array.
What I picked on, was
At 20:13 06.11.2002, Jason Young spoke out and said:
[snip]
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page in hopes to catch
something, but so far I don't see any breakage - I can see there
It's probably working becuase you have register_globals = ON in your php.ini
and those variable names are being set by default. Your posted code is
actually doing nothing. What I can't figure is why you're not getting any
errors. :-\
-Kevin
- Original Message -
From: Jason Young [EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End
result: same error. Any other ideas???
On Wednesday 06 November 2002 09:09 am, you wrote:
Hi,
Wednesday, November 6, 2002, 2:50:42 PM, you wrote:
EN -BEGIN PGP SIGNED
On Wed, 6 Nov 2002, Jason Young wrote:
So then can anyone tell me why its working so far? ;)
It doesn't work at all like you want it to. I assume you've already put
this script up on a web server to test, so watch this:
After this line:
$$key = $val;
Insert this line for debugging:
Oh ho! Good call Mr. Vogelsinger. I would never have guessed. So infact
the code DOES work. My apologies Jason, I guess ya learn something new
every day. ;-)
-Kevin
- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Jason Young [EMAIL PROTECTED]
Cc: [EMAIL
Hi All:
I am having a problem in MySQL records,If i used the
record set once and later on if i want to use the same
record set in some oteher place in the same page its
behive like an empty recordset, I want to know is
there any method to (recordset.moveFirst or some
thing) move the cursor towards
register_globals is definately off..
Maybe its a PHP miracle, as Ernest suggested.. maybe Rasmus or someone
else on the PHP dev team has something to say about it, but it works..
maybe you all could use it :-D
Hopefully I didn't find a bug :-o
-J
Kevin Stone wrote:
It's probably working
if anyone is on the mysql list why do i keep getting this , i can post
anything dammit
Your message cannot be posted because it appears to be either spam or
simply off topic to our filter. To bypass the filter you must include
one of the following words in your message:
sql,query
If you
Thinking about this more
A U.K. based electronics company has a CD which is Databse driven. It is
compleatly searchable etc
I think its either RS or Maplin.or it might be someone else ;-) but its a
company like them..
John
- Original Message -
From: ROBERT MCPEAK [EMAIL
Hello,
installing PHP with netscape on Sun Solaris
Iplanet webserver 4.1
Sun Solaris 2.7
followed instruction as published at http://www.php.net/manual/sv/install.netscape-enterprise.php
Onstep 6 of Basic install during netscape server configuration it errors
out. Attached is the config.log.
At 20:40 06.11.2002, Jason Young spoke out and said:
[snip]
register_globals is definately off..
Maybe its a PHP miracle, as Ernest suggested.. maybe Rasmus or someone
else on the PHP dev team has something to say about it, but it works..
maybe you all
Hi ,
I am using PhpMailer in my mail application.
I keep getting this error when I run the application Message was not
sent Mailer Error: SMTP Error: Could not authenticate
Here is the code that I am using :
?php
require(class.phpmailer.php);
//require(class.smtp.php);
$mail = new
I believe it is mysql_data_seek($result, 0);
-Kevin
- Original Message -
From: ppf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 12:38 PM
Subject: [PHP] To Move Recordset back to initial position
Hi All:
I am having a problem in MySQL records,If i used
You mean like php.net/mysql-data-seek ???
On Wednesday 06 November 2002 11:38 am, ppf wrote:
Hi All:
I am having a problem in MySQL records,If i used the
record set once and later on if i want to use the same
record set in some oteher place in the same page its
behive like an empty
I just saw that post...
I feel completely stupid at this point, might I point out.
You're right - register_globals is by default 'on' on this particular
server Im working on (I don't do a lot of PHP work on it), cuz its an
older version and I haven't been bothered enough to upgrade it... I
[snip]
if anyone is on the mysql list why do i keep getting this , i can post
anything dammit
To bypass the filter you must include one of the following words in your
message:
sql,query
[/snip]
Follow the directions to make sure the message gets to the list. My original
reply to this got
Yes that has happened to me before. I don't know why it's so strict becuase
you can bet your bouncing booty there are ways around it. But did you heed
their advice and put MySQL somewhere in your message?
-Kevin
- Original Message -
From: electroteque [EMAIL PROTECTED]
To: [EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you sure your SMTP requires authentication? If so, have you checked the
username and password you supplied?
On Wednesday 06 November 2002 11:19 am, Pushpinder Sngh Garcha wrote:
Hi ,
I am using PhpMailer in my mail application.
I keep
Ok. I think I got it. Now I have to look at my code again to see if I
can implement it.
Thanks for your time.
jck
Maxim Maletsky wrote:
Well, if, say, one class has this function:
function inherit($class_name, $pointer) {
$this-objects[$class_name] = $pointer;
}
then you end up knowing
I have three tables with certain content in each that's added almost daily. I want to
get the most recent, out of those three tables, and then display it. How would I do
that without changing the structure of my tables? (My current structure is this: id,
date, name, text)
Thanks,
Stephen
That depends on what DBMS you are using. Which one is it?
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmer
Come visit us at http://www.phparch.com!
---BeginMessage---
I have three tables with certain
Sorry, I'm using MySQL.
- Original Message -
From: Marco Tabini [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]
Cc: PHP List [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 4:00 PM
Subject: Re: [PHP] Getting Newest
That depends on what DBMS you are using. Which one is it?
Hello,
Well, I'm able to make an empty file with
fopen(ftp://username:password;domain.com/folder/file.prefs, w)
However, I'm still nowhere because this file belongs to the user and her
group, not to Apache, so I still can't write to it.
Here's what I have to work with:
-- I have the
Charles, can you not create and write the file locally and then upload
it directly via ftp?
I'm not much of a PHPriest, but I love PHP because it's the first web
scripting language that I have encountered that actually make sense, is
coincise and very powerful. It's the old question--do we make
I know that you can select data from multiple tables, but when I do that I
get an error. The error is this:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /usr/local/plesk/apache/vhosts/melchior.us/httpdocs/live/all.php
on line 17
- Original Message
That's probably because you can't do it in a single SQL statement, but
have to use three separate ones and build the logic to check which one
is the most recent in PHP. Try outputting the query and posting it to
the list, or try inserting a line like this:
echo mysql_error();
after you execute
Are all three tables the same? Same columns and everything?
---John Holmes...
- Original Message -
From: Stephen [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 4:10 PM
Subject: [PHP] Getting Newest
I have three tables with certain content in each
At 22:48 06.11.2002, Charles Wiltgen said:
[snip]
Well, I'm able to make an empty file with
fopen(ftp://username:password;domain.com/folder/file.prefs, w)
However, I'm still nowhere because this file belongs to the user and her
group, not to Apache, so
Yes, same columns, everything the same except names and content.
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 5:31 PM
Subject: Re: [PHP] Getting Newest
Are all three tables
Marco Tabini wrote...
I'm not much of a PHPriest, but I love PHP because it's the first web
scripting language that I have encountered that actually make sense, is
coincise and very powerful.
Yes, I'm a big fan. I was going to do this in .NET, which I'm more familiar
with
Ernest E Vogelsinger wrote...
Why don't you do it this way:
$fp = fopen(ftp://username:password;domain.com/folder/file.prefs, w);
fwrite($fp, 'Some content', 12);
fclose($fp);
I don't see a reason why you shouldn't directly use the file handle
returned by fopen - that's why the PHP god
Hello Everyone
I am unable to send mail using the SMTP mode in phpmailer.
I keep getting Error: Could not authenticate
I am determined to find out why this keeps on happening...the mail()
function works fine though.
Many Thanks,
-Pushpinder
Pushpinder Singh Garcha
Ernest E Vogelsinger wrote...
$fp = ftp_connect($ftphost);
if ($fp) {
$login = ftp_login ($fp, $user, $pass);
ftp_delete ($fp, $ftpfile);
ftp_quit($fp);
}
else die('Cannot connect to FTP');
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone
At 00:08 07.11.2002, Charles Wiltgen said:
[snip]
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone recommend a great FTP class? (I'm not exciting about doing this via
sockets, but I will if I have to...)
Ernest E Vogelsinger wrote...
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone recommend a great FTP class? (I'm not exciting about doing this via
sockets, but I will if I have to...)
Would curl be an option? Do they have this? You could, however, always
Charles Wiltgen wrote...
I'm using sockets, and everything working except I can't CD to a directory
with a period in it (which is, of course, what I need to do). Does I need to
escapte this somehow for fputs()?
Sorry, I'm an idiot...I went back to the FTP RFC and everything's working
fine.
you could make a union of all the records, and order by newest date first:
(select id, date, name, text from table1) union
(select id, date, name, text from table2) union
(select id, date, name, text from table3) order by date desc
then select the first record
/nick
--
PHP General Mailing
Hi,
Thursday, November 7, 2002, 5:35:10 AM, you wrote:
EN -BEGIN PGP SIGNED MESSAGE-
EN Hash: SHA1
EN Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End
EN result: same error. Any other ideas???
EN On Wednesday 06 November 2002 09:09 am, you wrote:
Hi,
I have a binary (non-modifiable) CGI program that does form processing. It
gets form data by HTTP POST and outputs the results to Apache.
Is there any way to make a PHP wrapper around the program, so that the form
data will be submitted to my script, which in turn will send the data to the
I am fairly new to the PHP language and have built a website with it before,
but nothing very complicated. Is there anyway of grabbing information from
the browser as to where a user may have come from (referring page, search
engine, etc.)? And if so, how would I go about getting it?
William
CAUTION: It's not reliable
you can use $HTTP_REFERER
(or, I think's it's under $_SERVER, $_SERVER[HTTP_REFERER])
-Original Message-
From: William Holroyd [mailto:w.holroyd;versity-cobalt.com]
Sent: Thursday, November 07, 2002 12:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Code help
I am
So for my SQL statement I put this?
$sql = select id, date, name, text from table1 union;
$sql2 = select id, date, name, text from table2 union;
$sql3 = select id, date, name, text from table3 order by date desc;
- Original Message -
From: Nick Eby [EMAIL PROTECTED]
To: [EMAIL
$sql = select id, date, name, text from table1 union;
$sql2 = select id, date, name, text from table2 union;
$sql3 = select id, date, name, text from table3 order by date desc;
No, it's all one query.
$sql = select id, date, name, text from table1 union
.select id, date, name, text
UNION is implemented in MySQL 4.0.0, btw.
-Original Message-
From: Stephen [mailto:webmaster;melchior.us]
Sent: Wednesday, November 06, 2002 9:33 PM
To: PHP List
Subject: Re: [PHP] Getting Newest
So for my SQL statement I put this?
$sql = select id, date, name, text from table1
Oh, well, now I'm getting this error:
You have an error in your SQL syntax near 'union select * from church union
select * from misc order by date desc limit 1' at line 1
Here's what I did for the SQL
$sql = select * from school union ;
$sql .= select * from church union ;
$sql .= select * from
Read my last post and then run SELECT VERSION() in MySQL. I really doubt
you're running 4.0.
---John Holmes...
-Original Message-
From: Stephen [mailto:webmaster;melchior.us]
Sent: Wednesday, November 06, 2002 9:57 PM
To: PHP List
Subject: Re: [PHP] Getting Newest
Oh, well, now
Same error.
On Wednesday 06 November 2002 05:40 pm, you wrote:
Hi,
Thursday, November 7, 2002, 5:35:10 AM, you wrote:
EN -BEGIN PGP SIGNED MESSAGE-
EN Hash: SHA1
EN Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too.
End EN result: same error. Any other ideas???
Marco Tabini wrote...
I need to chmod files which are owned by a nother user than nobody with a
php script runing from a browser.
lets say i have a file called image.gif and I want to chmod(imgage.gif,
0777); and I want to run it as user: myuser with passwd: passwd.
Can I do this?
Hello,
I'm having file locking problems.
I'm using fopen() to write a file via FTP. At the end, I'm doing...
fflush($fp);
fclose($fp);
...and then I include it immediately after. But many times I only get part
of what I wrote to the file, which suggests that it wasn't really flushed
Parse error: parse error, unexpected '=' in
/home/intra/Inventroot/software/savedata.php on line 35
?php
$vary(100);
$i = 0;
foreach($InputY as $y){
$vary($i) = $y; -line 35
$i++;
}
foreach($Nama_Software as $x){
$insertq = Insert into NSoftware (X, Y) values
Your code is bogus. You probably want:
$vary[$i] = $y;
And $vary(100) also makes no sense.
Also, why are you looping through the $InputY array and putting all the
values into $vary? Why not just do $vary = $InputY; ?
If it is because you need to renumber the indices, have a look at the
Just a (possibly stupid) suggestion--is it possible that the file is
being overwritten by another instance of your script that's run in the
meantime?
-
php|architect -- The Magazine for PHP Professionals
Check us out on the web at http://www.phparch.com
On Wed, 2002-11-06 at 23:06,
Is There anyone that I can chat with in reatlime
About the project I need help with for my fantasy football
League.
Karl
Marco Tabini wrote...
Just a (possibly stupid) suggestion--is it possible that the file is being
overwritten by another instance of your script that's run in the meantime?
This may also be a problem at some point, but currently I'm just trying to
get it working in an test environment where
Sorry before.
I Just to try to Explain my Problem
may be this my reason ..
I have Two Text Fields
The First Text Field i call it InputX input type='text' name='InputX'
size='50'
and The Second Text Field I Call it InputY, Generatable Field (using
javascripts), if User Click the Button
Hi,
Thursday, November 7, 2002, 1:11:43 PM, you wrote:
EN Same error.
As a test try compiling statically into apache...That is the way I
have php at the moment.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
huge junk mail wrote:
Can someone tell me why I can't have
$_SESSION['foo'] = 'content of foo';
following by
header('Location: http://www.mysite.com');
Someone from www.php.net told me that it can confuse
browser (http://bugs.php.net/19991). But, still I
can't the idea why it can happen.
// Delete a file via FTP
function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
$error = FALSE;
// Open connection to FTP port
$ftp = fsockopen($ftpServer,21);
$foo = fgets($ftp);
if (!ereg(^220*, $foo)) { $error = *** Error! FTP service not
Hi,
I have this ereg call
ereg(([-d])[rwxst-]{9}.* [0-9]* [a-zA-Z]+ [0-9: ]* (.+),$dirline,$regs);
This regular expressions parses the following line:
drwxrwxrwx 1 ownergroup 0 Nov 5 23:19 fantasy
to return: fantasy
(or in general any filename/directory name)
The above
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay, it took me a long (expletive deleted) time, so I figured I should share.
Here is a list of popular web sites running Apache, PHP, MySQL, and Linux. If
there are any errors, I apologize. This is not meant to be a definitive work.
In fact, I
Thats a very nice research.
Thanks you.
--
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.
Evan Nemerson [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay, it took me a long
My second query still doesn't return anything? Even with $orderid = $row
removed as Jason suggested.
This is my current function.
function get_order_numbers()
{
$conn = db_connect();
$query = select orders.orderid from orders, email where orders.orderid
= email.orderid and email.checked='no';
hi,
thanx for that list it's really convincing for these Microsofts :)
just something i wanted to ask about, is it a good thing or better for
security to hide the script name from the address bar, through that list i
found all the PHP pages hidden with HTML names, i don't know the technique
101 - 167 of 167 matches
Mail list logo