I am using the FTP_PUT command in conjunction with a form:
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file, $_POST[imagefile],
FTP_BINARY);
I am connecting to the server and it is replacing the old image file with a
0 kb file.
Per
Is there a way in the current code below to make my $go_to_address go to a
webpage in a new link -- instead of embedded in an iframe?
In others words, can Header(Location: open in a new window?
1) {
$content =
'https://swww.google.com/servlet/com.google.framework.servlets.BGSeamles
On Sun, 12 Dec 2004 07:03, Mike Francis wrote:
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml";>
>
> Our List of Jokes
> content="text/html; charset=iso-8859-1" />
>
>
> // Connect to the database server
> $dbcnx = @mysql_connect('localhost', 'root', '
The quotes are only for the shell command which does not use quotes around
password. Thanks for the feedback.
Jonathan
"Sebastian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> well $user['password'] has no double quotes around it.
>
> - Original Message -
> From: "Jo
Ah, that is a good idea, putting the command in a variable and then
executing the variable. I have doen that before but did not think of it
now. Too many things going on. Thanks!
Jonathan
"Rory Browne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm not sure about variable
* Steve Marquez <[EMAIL PROTECTED]>:
> I created a photo upload utility with individual galleries that images can
> be uploaded into. In the MySQL database, there are multiple names of
> galleries, some are the same. I want to have a select menu to show just the
> unique names of the galleries.
>
>
this is a brain buster, at least for me.
i have a while loop (results from mysql) which display news articles. i want
to include() a file if there hasn't been a news article posted "today"
meaning after midnight 12am to 12pm midnight... but if there are articles
the articles would be echo'd before
It would be nice if you submit code that generates the error.
/Peter
"Mike Francis" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Hi,
I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box.
I have created a new database 'ijdb' with a single table 'joke' and have
entere
Hello,
Adwin Wijaya wrote:
Is there any mature DAO class for PHP (free) ?
You may want to check Metastorage. It is not really a DAO class but
rather a DAO class generator. It tends to generate code that is much
more efficient than DAO base classes as the generated code only includes
the features
Sebastian wrote:
i apologize if its against the rules to post mysql questions here, though im
using php to query the db
so...
i have a table with three integers.
[table post]
postuserid | replyuserid | parentid
--
i do a left join on table user to get the username th
jpb wrote:
I am using the FTP_PUT command in conjunction with a form:
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file, $_POST[imagefile],
FTP_BINARY);
I am connecting to the server and it is replacing the old image file with a
0 kb fil
Hi everyone!
Can someone help me with this question?
I created a photo upload utility with individual galleries that images can
be uploaded into. In the MySQL database, there are multiple names of
galleries, some are the same. I want to have a select menu to show just the
unique names of the gall
I'm not sure about variable expansion with backticks(I don't use
backticks, if necessary I use shell_exec() instead). I'm just after
installing a fresh SuSE 9.1, and php is giving me a segfault at the
minute, with that particular code, but if you were using double quotes
you could:
$command = "add
Assuming I understand you correctly, you want to connect to your
office computer, which is running apache, from home.
The fact that you are using win98 isn't particularly relevent,
provided you can connect to the internet with it.
Are you talking about connecting to your office computer through t
well $user['password'] has no double quotes around it.
- Original Message -
From: "Jonathan Duncan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 8:09 PM
Subject: [PHP] php variables in a backtick command
> I am trying to run a shell command with backtick
So I tried it that way and it worked, that is annoying though, having to add
extra lines to the code and assign the contents of one variable to another.
Any way around this?
Jonathan
"Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to run a shell comm
I am trying to run a shell command with backticks. However, I get a parse
error. Is it because I have an array variable in there?
$result = `adduser -l=$dist_id -p=$user['password'] --f="$user['name_first']
$user['name_last']"`;
Do I need to assign the value to a regular variable before I put
i apologize if its against the rules to post mysql questions here, though im
using php to query the db
so...
i have a table with three integers.
[table post]
postuserid | replyuserid | parentid
--
i do a left join on table user to get the username that postuserid
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>
Our List of Jokes
Unable to connect to the ' .
'database server at this time.' );
exit();
}
// Select the jokes database
if ([EMAIL PROTECTED]('ijdb')) {
exit('Unable to locate the joke ' .
'database at this ti
Hi,
I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box.
I have created a new database 'ijdb' with a single table 'joke' and have
entered data into two of the three fields in the table.
I can access the database / tables / data from a command prompt.
However, when I try to connect t
That's a variable variable name.
http://us2.php.net/manual/en/language.variables.variable.php
So
$temp3 = 'valueoftemp3';
$temp2 = 'temp3';
$temp = $$temp2;
$$temp2 === $temp3;
Song Ken Vern wrote:
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$ a
On Sat, 2004-12-11 at 13:03 -0500, R. Van Tassel wrote:
> Can someone give me a distinction between the two and when to use / not use
> them?
>
>
>
> I want to thank everyone who replied about my"For" loop question. All the
> answers were VERY helpful! Thanks very much.
You might want to pick
Can someone give me a distinction between the two and when to use / not use
them?
I want to thank everyone who replied about my"For" loop question. All the
answers were VERY helpful! Thanks very much.
~ R. Van Tassel
how about r? :) (or x)
Dave Carrera wrote:
Thanks John,
I get "fopen expects second param" when I call it.
What would this be ? "r" "w" "x" or something else ?
Thanks for the help
Dave Carrera
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 December 2004 15:26
To: D
On Friday 10 December 2004 12:02, Song Ken Vern wrote:
> Tried searching for what this $$ operator means.
> But can't get the right results by using $$ as search string in php manual.
>
> $temp = $$temp2;
Search for "variable variables"
> Is this an array assignment?
No, but in most cases where
my simple way..
while()
{
$i += 1;
$alt = ($i % 2) ? 'alt1' : 'alt2';
}
then just use $alt in your class..
- Original Message -
From: "Graham Cossey" <[EMAIL PROTECTED]>
To: "Brad Ciszewski" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 8:33 AM
Travis Conway wrote:
Did he really ask that question on a PHP board?
That is like walking into a Coke factory, going to the manager and
asking "pepsi or coke?"
Good a place as any to ask. Sure, the opinions one receives here may be
a bit biased towards php, but most of the users on this list sub
On Dec 9, 2004, at 10:02 PM, Song Ken Vern wrote:
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$ as search string in php
manual.
$temp = $$temp2;
Is this an array assignment?
No, its a variable varible:
http://us2.php.net/manual/en/language.variab
Travis Conway wrote:
Did he really ask that question on a PHP board?
I have met factory managers (though not at the comanies you mention )
who have admitted that their competitors may have the edge :-)
But seriously whether PHP is better or JSP is better is a religious
question. However on the po
variables variable?
http://us2.php.net/manual/en/language.variables.variable.php
- Original Message -
From: "Song Ken Vern" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 11:02 PM
Subject: [PHP] assignment
> Hi,
>
> Tried searching for what this $$ operato
Hi All,
I need to send some vars to a cgi script.
The script url is like this
http://www.example.com/cgi-bin/script.cgi?var1=my_first_php_var;var2=my_seco
nd_php_var and so on.
How do I send / call this script from inside my php script ?
Any help I appreciated
Thank you in advance
Dave C
Thanks John,
I get "fopen expects second param" when I call it.
What would this be ? "r" "w" "x" or something else ?
Thanks for the help
Dave Carrera
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 December 2004 15:26
To: Dave Carrera; [EMAIL PROTECTED]
Subjec
Hi,
Tried searching for what this $$ operator means.
But can't get the right results by using $$ as search string in php manual.
$temp = $$temp2;
Is this an array assignment?
Thanx.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Carl Michael Skog wrote:
> If I save the response of this command with lynx (lynx -dump
> "http://www.formatemp.com/catalog/paynova-reply.php"; > somefile),
> I will get three newlines.
Aha! I knew it. :) See:
http://marc.theaimsgroup.com/?l=php-general&m=110272197009025&w=2
Lynx adds the newli
> From: "Dave Carrera" <[EMAIL PROTECTED]>
> I need to send some vars to a cgi script.
>
> The script url is like this
>
> http://www.example.com/cgi-bin/script.cgi?var1=my_first_php_var;var2=my_seco
> nd_php_var and so on.
>
> How do I send / call this script from inside my php script ?
$file
Did he really ask that question on a PHP board?
That is like walking into a Coke factory, going to the manager and asking
"pepsi or coke?"
- Original Message -
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 7:11 AM
Subject: Re: [
Richard,
well a much simpler solution than my old one:
$this->uri =
explode('/',basename($_SERVER['SCRIPT_NAME']).$_SERVER['PATH_INFO']);
Many thanks for your help,
Bruno B B Magalhaes
On Dec 10, 2004, at 11:57 PM, Richard Lynch wrote:
$_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_FILENAME'] or ...
I
Thanks for the answer !
The URL of the file is http://www.formatemp.com/catalog/paynova-reply.php
and the file is definitely empty.
It was created by the touch(UNIX command):
-rw-r--r-- 42 foo foo 0 Dec 10 18:49 paynova-reply.php
The server is configured as follows:
Apache/1.3.33 (Un
Peter Lauri wrote:
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to develop a
high-traffic site. Assume that the infrastructure for both are set up. It
only comes to efficiency (both coding and running)? What are your
experience?
As a sun certified java programm
On Fri, 10 Dec 2004 18:19:35 -0600, Brad Ciszewski <[EMAIL PROTECTED]> wrote:
> i need some assistance making my table (rows) change color for every other
> data. here is what i have so far, but i get a "unexpected T_STRING error".
> this error's line is: if($thisRow mode 2 == 0){
>
> +=+=+ SCRIP
On Saturday 11 December 2004 20:46, Stuart Felenstein wrote:
> --- [EMAIL PROTECTED] wrote:
> > you (just) need to mark the previously chosen items
> > as "selected" in
> > the repopulated list. the "highlighting" part is a
> > basic html/form
> > issue. i.e., if you have questions on this you
> >
Greg Donald wrote:
On Fri, 10 Dec 2004 22:00:43 +, KJ <[EMAIL PROTECTED]> wrote:
5. Joe Hacker has studied the script coz he's a tart that wants to piss
people off and he has found a vunerability.
6. Joe Hacker uses the vunerability to change your account passwd. He
then logs in as you and del
Adwin Wijaya wrote:
Hi,
Is there any mature DAO class for PHP (free) ?
http://pear.php.net/DB_DataObject
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- [EMAIL PROTECTED] wrote:
> you (just) need to mark the previously chosen items
> as "selected" in
> the repopulated list. the "highlighting" part is a
> basic html/form
> issue. i.e., if you have questions on this you
> should look at how, on
> a simple (html-only) form, an item on a list i
I'm hoping that this question will be more succinct.
I am trying to repopulate a search form with a user's
chosen paramters. I am running into a problem with
"multiple select lists"
First , this is the element when the form is first
presented to the user:
'.$row['CareerCategories'].'';
}
?>
So
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote:
I am ending this thread.
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Can PHP handle with CIM's (Clickable Image Maps) to get data from a html
page (instead of using checkboxes...)?
I searched the online doc for it but no matches.
Thanks in advance!
Kurt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Because you prefer it?
Seriously, you should choose what you are most happy with. Both work
fine, although, PHP rocks!
On 11 Dec 2004, at 10:11, Peter Lauri wrote:
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to
develop a
high-traffic site. Assume that the inf
Hi, mybe you mean PDO:
http://pecl.php.net/package/PDO
http://www.zend.com/expert_qa/qas.php?id=93&single=1
http://www.zend.com/expert_qa/qas.php?id=98&single=1
Adwin Wijaya åé:
Shen Kong wrote:
> Hi, do you mean ADODB? PEAR::DB? or DBX ?
--> more advance than that i think. It is a class that will
Best groupmember,
Why should I choose PHP instead of JSP/Servlets when it comes to develop a
high-traffic site. Assume that the infrastructure for both are set up. It
only comes to efficiency (both coding and running)? What are your
experience?
--
- Best Of Times
/Peter Lauri
--
PHP General Mai
Shen Kong wrote:
> Hi, do you mean ADODB? PEAR::DB? or DBX ?
--> more advance than that i think. It is a class that will be created
to access database as object like the one in Java.
--
===
Best Regards
Adwin Wijaya
www.kuya-kuya.net
www.e-rhema.net
===
--
Hi,
Is there any mature DAO class for PHP (free) ?
thx
--
===
Best Regards
Adwin Wijaya
www.kuya-kuya.net
www.e-rhema.net
===
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Richard Lynch <[EMAIL PROTECTED]> wrote:
> > I made the correction , using $_GET now. Values
> are
> > printing out, aside from the select lists (arrays)
> > which print out as "array".
>
> Yes.
>
> An array will print as "Array"
>
> You'll need to dig into the Array for what you need,
>
Hi, do you mean ADODB? PEAR::DB? or DBX ?
Adwin Wijaya åé:
Hi,
Is there any mature DAO class for PHP (free) ?
thx
--
-- ShenKong (shenkong(at)php.net)
-- http://www.openphp.cn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stupid as I was, I did not do what I should have done :) In the origin the
array was created from a MySQL database. I did not sort it correctly from
there because I did not have the knowledge about the GROUP BY command, so I
tried to solve it via PHP. Now I have everything sorted and alright just b
55 matches
Mail list logo