On Tue, May 1, 2007 3:13 pm, Nathaniel Hall wrote:
> $mysqli = new mysqli('localhost', 'root', 'abc123', 'mydb');
> if (mysqli_connect_errno()) {
> echo "Unable to connect to database.\n";
> exit;
> } else {
> $login = date('m
Greg Donald wrote:
On 5/1/07, Nathaniel Hall <[EMAIL PROTECTED]> wrote:
> I am attempting to run a script that will run from the command line
> nightly to update a field in a database. I already created a script
> that would access the database and insert most of the information when a
> webpag
[EMAIL PROTECTED]
> Sent: Tuesday, May 01, 2007 10:13 PM
> To: php-general@lists.php.net
> Subject: [PHP] PHP Command line script
>
> I am attempting to run a script that will run from the command line
> nightly to update a field in a database. I already created a script
> that wo
On 5/1/07, Nathaniel Hall <[EMAIL PROTECTED]> wrote:
I am attempting to run a script that will run from the command line
nightly to update a field in a database. I already created a script
that would access the database and insert most of the information when a
webpage is visited and I had no pr
Daniel Brown wrote:
First and foremost, it's a VERY BAD idea to use root for MySQL.
If your code isn't perfect (and even sometimes if it is), arbitrary
commands and SQL injection attacks could lead to migraines that no
Tylenol will ever be able to alleviate.
I changed the user I was conn
First and foremost, it's a VERY BAD idea to use root for MySQL. If your
code isn't perfect (and even sometimes if it is), arbitrary commands and SQL
injection attacks could lead to migraines that no Tylenol will ever be able
to alleviate.
Secondly, what error is the CLI kicking out when yo
I am attempting to run a script that will run from the command line
nightly to update a field in a database. I already created a script
that would access the database and insert most of the information when a
webpage is visited and I had no problems with it. The command line
script appears to
* Thus wrote Marc G. Fournier:
>
> Note that the following is based on php installed via the FreeBSD ports
> system ...
>
>
>
> I'm getting a core file, but if I try:
>
> gdb /usr/local/bin/php php.core ... its definitely not looking good:
>
> s# gdb /usr/local/bin/php php.core
> ...
>
> Co
I just did a reinstall from ports, and it works now as well ... maybe a
stale library for one of hte modules :(
thanks ...
On Wed, 27 Oct 2004, Greg Donald wrote:
On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier
<[EMAIL PROTECTED]> wrote:
I have a really simple PHP script that, when you
On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier
<[EMAIL PROTECTED]> wrote:
>
> I have a really simple PHP script that, when you run it, generates an
> Abort at the end of it:
>
> ams# /tmp/test.php
> testAbort (core dumped)
I just installed php4-cgi on a FreeBSD 4.10 system I have. T
On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier
<[EMAIL PROTECTED]> wrote:
>
> Not sure how to debug ... help?
You said you installed in via ports, so did you happen to check the
'debug' option when you installed it?
[ ] DEBUG Enable debug
Just a question.. as that might help exp
Note that the following is based on php installed via the FreeBSD ports
system ...
I have a really simple PHP script that, when you run it, generates an
Abort at the end of it:
ams# /tmp/test.php
testAbort (core dumped)
ams# cat /tmp/test.php
#!/usr/local/bin/php
Even if I change the script sl
Thanks! The link was just what I needed.
-Shawn
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Shawn McKenzie wrote:
>
> > I have a script that I want to run on the windows command line, and it
is
> > working fine. What I want to do is pass vars to the script wh
Shawn McKenzie wrote:
I have a script that I want to run on the windows command line, and it is
working fine. What I want to do is pass vars to the script when I run it,
example: php script.php $var=hello
The example will not work, command line arguments are traditionaly
passed in the form of:
I have a script that I want to run on the windows command line, and it is
working fine. What I want to do is pass vars to the script when I run it,
example: php script.php $var=hello
I have read the docs but can't find the syntax to pass these in. Also, how
to retrieve them in the script? argv
Hej Forum,
i've a big problem!
I must start from PHP a shell command.
In particular the java command.
If i run only the command "java" ex:
system("/usr/bin/java/jdk1.1.3/bin/java") i can see the results.
If i append to the command few parameter ex:
system("/usr/bin/java/jdk1.1.3/bin/java -vers
I was trying to compile php command line and got some problem.
Maybe some of you can help.
version: 4.1.2
I did:
./configure --with-ldap --with-oracle --with-oci8
--with-mysql=/usr/src/mysql-3.23.43-pc-linux-gnu-i686 --enable-track-vars
--disable-debug --prefix=/usr/local/apache/php
--with-con
I have been playing with this for a couple of days and have run into a few
issues:
I am wanting to run a set number of multiple processes (ie 25 at a time). I
can't use the exec command since it will not wait for the output (this is a
delayed response - network based).
$cmd = "/path.to/some.cmd
18 matches
Mail list logo