[snip]
JB> You are presented with three crates. One is labled 'apples', one is
JB> labled 'oranges', one is labled 'apples and oranges'. The lables
have
JB> been mis-applied with none of the lables being on the correct crate.
To
JB> be perfectly clear ( :7) Brian! ) one crate contains apples, one
J
[snip]
I run the script through a browser. The overall script takes about 36
minutes to run. I have changed the php.ini values to allow the script
to
run for longer than this. The script runs, but I always end up with a
500
error.
[/snip]
Have you also set your webserver software time accordi
And you get a 500 error?
First off, it is probably not a bug. If the first two reports get
generated there may be a problem in the code for the third report.
-Original Message-
From: Joe Privett [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 6:28 AM
To: Jay Blanchard
Subject
[snip]
However, Curt does bring up a good pointgiven a real world situation
create the decision logic (in code format) that demonstrates you grep
the path needed to arrive at a conclusion. As many of us model business
processes this is a valid method for determining familiarity with the
problem
[snip]
Which road would the other man point to if I asked him the way to
Utopia?
[/snip]
Can you do it programmitically (with pseudo-code)? After all, we need to
keep this on-topic :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have to send mail to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time
using
cron facility.
So, How can we do tha
[snip]
Is there a way to execute a command line php script from a browser by,
say
clicking a button and then having the browser let go and let the script
run
independet of the browser? Hope I explained that correctly.
[/snip]
You could invoke the CLI using an exec() http://www.php.net/exec
HTH!
[snip]
is it possible with PHP to download and open a remote tar.gz file?? I
read
in the manual that it is, but it never seems to work for me.
I tried opening the file with fopen
fopen("zlib://http://www.site.com/update.tar.gz";, "r");
but it didnt work
Then I tried using the zlib functions but t
[snip]
I'm having trouble evaluating a dynamic variable. I want to check if the
variable $_POST["resolutions$i"] is an empty string, as you'll see from
the
code. However, every way I've tried to check the variable so far
(including
empty() and eval()) always returns a null value, even when the vari
[snip]
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have a form on a popup that gets submitted to the PARENTWINDOW. If
there
was an error while processing the form, it will be displayed in the
parentwindow. The popup never closes, but it needs to refresh, cuz it
needs
to get new data from MySQL.
Does anyone have any ideas on how I could
[snip]
I have a tabel in my database like this
TEST
fieldnameValue's
testid 1
testf1 3
testf2 4
testf3 0
testf4 2
testf5 0
(so this is one record!)
I want to display the lowest value, except 0.. So the SQL statement will
be SEL
[snip]
O.k. i dropped my lines below: As you can see, i'm selecting FRANKID 10
and
i want to display the lowest value (2 rows are selected)! As you can see
a
stole a function from www.php.net/min, Now this is working fine for the
first record!!! BUT how can i make the function loop through the whol
[snip]
I would like to know a constructor function is also inherited to a child
class.
I mean the child class also needs to have a constructor function but it
must
have the same name as the class name.
How does that work?
[/snip]
FYI ... anything below PHP5 has a pseudo constructor. Since you are
[snip]
> FYI ... anything below PHP5 has a pseudo constructor.
And how will it be in PHP5 ?
[/snip]
PHP5 will be using the Zend 2 Engine, and gives a standard way of
declaring constructor methods by calling them by the name __construct().
An example from http://www.php.net/zend-engine-2.php
[snip]
How can I provide a link which will log the current user out so that
they
will be prompted again to login. I'm using frontpage authentication on
an
apache server. I'm using PHP4 to build the pages.
[/snip]
Are you taking the frontpage variables into PHP? If so you can unset()
those variable
[snip]
Anyone have a quick fix for a part of an html page that I do not want to
display until after October 1st, and not after October 31st ?
[/snip]
You must have missed the conditionals part of the manual
= $display_start) && (date("Y-m-d") <=
$display_end)){
print($stuff);
}
?>
No
[snip]
How can i do so header opens a new page in a new browser, instead of
opening
the page inside the current browser?
[/snip]
header does not do this, but you can do it with a target="_blank" attrib
in your href tag or with JavaScript.
Have a pleasant and productive day.
--
PHP General Mailin
[snip]
I wish to use fwrite() to create a small PHP file. So far, when I
attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
[/snip]
Vince I did this
\n");
fclose($newphp);
?>
And it worked fine. fputs() places the string in the file properly. I
[snip]
while($row = mysql_fetch_array($result1))
{
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Website \r\n";
$headers .= "To: $row[email_address]\r\n";
$headers .= "
[snip]
How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
's the function?
[/snip]
shootin' from the hip because I am looking for something like this
as well. I would also like to be able to activate PPP...need some serial
port control. Here are my thoughts on your quest
[snip]
Is there something like MoveNext I should use for the mail function?
If I put the $headers in the while loop it just keeps adding to the
$headers
instead of sending each mail separately as I want it to.
..
> while($row = mysql_fetch_array($result1))
> {
> $head
[snip]
email1 - gets a copy of each message
email2 - gets his message and the one for email3
email3 - gets his own message
[/snip]
Did you change that header line as recommended?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I looked at the rand() at php.net which spoke about min and max
random
number. So, I use rand(0,99) to get a 10 digit random number
but it
only return an 1 digit random number that is displayed at '0'. So, I
tried
rand(0,) with 4 digit random number and got the random numbe
[snip]
"undefined function mysql_select".
[/snip]
mysql_select by itself isn't a function. Are you using other code to
define this function? Or are you just using shorthand here?
[snip]
=== errors from error_log ===
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php4/ldap.so'
[snip]
What PHP version do you use? I only have version 4.3.1 on the machine.
[/snip]
Did this on a 4.2.1 and a 4.3...no probs. Have you tried the code I
posted on your machine?
0){
$random=rand (0,9);
echo number_format($random, 0, '', ',')."\n";
$i--;
}
?>
--
PHP General Mail
[snip]
I tried your code on this machine and I got this...
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.
[/snip]
What is your numeric precesion set to in the php.ini?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I've tried but i don't know how to put it in my script. And also i don't
know how to display it in page. Here is my script and I hope you could
help me with this one.
thanks
[/snip]
Google is SO cool!!! :)
http://www.onlamp.com/pub/a/php/2000/11/02/next_previous.html
Have a pleasant and p
[snip]
There isn't one in php.ini. Could this be the problem?
[/snip]
Look for these lines in your php.ini
; The number of significant digits displayed in floating point numbers.
precision= 14
What is precision equal to?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
[snip]
It is not there, so I added it and restarted Apache. Still got the same
result.
How is PHP is built into Apache was done by downloading the tar.gz file
from
php.net and compile it. Then compile Apache, had it take in PHP. So,
when
it was done, there is never a php.ini there. So, I creat
[snip]
Many people ask me if ASP.net is faster than PHP. I know for a fact that
it is (because PHP is not optimized).
But then what about optimized PHP and compiled ASP.net. This would be a
fairer comparison in my opinion. Anyone seen any benchmarks of this? If
so please let me know as I would not
[snip]
You have an error in your SQL syntax near '; City='Eureka/'' at line 6
$sql = "INSERT INTO My_Table_Name SET
First_Name='$fname',
Last_Name='$lname',
Username='$username',
Password='$password',
Phone_Number='$phone';
City='$city'
[snip]
Try/Catch
Well, may question is about the Scope of Throwed
Execeptions.
[/snip]
What version of PHP are you running? Only V5 has this kind of exception
handling. See http://www.php.net/zend-engine-2.php
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
[snip]
Does anyone had tested ADODB with php5?
I can make a query, print the recordcount but when i try to show the
result i got nothing
PConnect('some', 'some', 'some', 'some');
[/snip]
You do not need the ADODB connection if you are using MySQL. Are you
connecting to Access or MS SQL? If you
[snip]
Does anyone had tested ADODB with php5?
[/snip]
D'oh **slapping forhead** I shouldn't be driving this late on Monday
afternoon.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I am dividing a number by another number and printing the result to the
screen. How can I ensure that the number is rounded up to 2 decimal
places?
[/snip]
Why others never test these things I'll never know...but here is a small
test you can run
The results
12.2345
12.235
12.23
[snip]
It is not mentioned in the manual, but it seems dec_point cannot be
empty. If it is empty, default (.) is taken.
echo number_format($number, 4, '', ',')."\n";
number_format() does allow an empty set of single quotes in the third
attribute which it will default to a period (.) for the
[snip]
I meant you cannot set decimal point to be '', it will always display.
Yes you can supply '' for the third argument.
[/snip]
Ah!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
First let me say that I have done quite a bit of reading this morning
and have been employing OOP techniques for several years in other
languages and I have found something that seems strange to me (given the
early hour, lots of things seem strange). If I have a property declared
in a class, extend
[snip]
For about the past week or so (after getting a new IE update) I've been
having strange problems with IE and my PHP scripts. One out of ten times
or so, when you click on a link or open a page, IE pops up a file
download dialogue instead of displaying the page. It's asking you to
open or
Each time I send/respond I get an autoresponder from (major snippage to
header)
Received: from lns.hs.ro (lns.hs.ro [194.102.195.10])
Received: from Aurel ([194.102.195.25])
by lns.hs.ro (8.11.6/8.11.0) with SMTP id h8BBR8s32710
Message-ID: <[EMAIL PROTECTED]>
From: "Aurel Tirnovanu" <[EMA
[snip]
The user has both localhost and % host privileges in the mysql
permission
schema.
[/snip]
Add the same user with 127.0.0.1 as the host. Make sure you reload
("flush") the users table
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Well, this is pretty weird. Now I'm trying to look at the site and I
can't
get it at all. I'm either getting the file download diagloue or this
strange
error message: php-engine: file
/home/k/h/user191796/html/staff/index.php
has incorrect uid/gid for effective uid 51 (2116/2116)
Below is s
[snip]
> [snip]
> The user has both localhost and % host privileges in the mysql
> permission
> schema.
> [/snip]
>
> Add the same user with 127.0.0.1 as the host. Make sure you reload
> ("flush") the users table
>
Any other thoughts?
[/snip]
What is your connection string? (code)
P.S. Always
[snip]
I have created an application to read email addresses from a list and to
send emails. The problem now I am facing is, if the list is very long
then
I am getting an error message in the browser "Server Timed Out". How can
I
display a confirmation message and continue sending the emails fro
[snip]
On Thu, 11 Sep 2003, CPT John W. Holmes wrote:
> > current testing code:
> >
> > $link = mysql_connect("localhost", "user", "pass" )
> > or die("Could not connect : " . mysql_error());
> > print "Connected successfully";
> > mysql_select_db("name") or die("Could not select database");
[snip]
I've used the following line in some of my scripts, some of which run
for 10
or 15 minutes.
set_time_limit(0);
The server won't time out, but it takes a while to get anything back to
the
browser. It's not ideal, because it takes some time before anything gets
sent back to the browser, but i
[snip]
I am looking for a php class which is able to read a pdf file and dump
the
content in txt or rtf format file.
Any solutions?
[/snip]
Tons http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pdf2txt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Has anyone ever suceesfully embedded a jpGraph image in an FPDF output?
FPDF uses this function for an image
$pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG');
but when image.jpg is created with jpgraph it throws errors. I am sure
that I am missing something quite obvious, but alas I cann
[snip]
>>Use double quotes for HTML attributes.
>
> Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find anything
definitive on w3c.org; can someone back me up?
AFAIK, they are required in XML and XHTML. It's a good habit to get into
with regular HTML, also (althoug
[snip]
Ooohhh! Neat website! Here's the other info send to me by someone from
email. Thanks for all of the feedback. Now i have something to get
start
--snip--
http://ca3.php.net/manual/en/ref.pdf.php
[/snip]
Don't forget the FPDF class at http://www.fpdf.org
--
PHP General Mailing List
[snip]
do I really need to have it in both or just one?
or does it really matter at all?
if just one it should be the file that is calling top.php right?
[/snip]
Just one, the calling page/script
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
[snip]
... a lot ...
[/snip]
As someone who has put together conferences before and has/is/will be
attempting to do a conference like this in the future I can say that for
day pricing it may be slightly high, but just slightly. A conference is
an expensive thing, usually offset by sponsors to a de
[snip]
Has anyone ever suceesfully embedded a jpGraph image in an FPDF output?
FPDF uses this function for an image
$pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG');
but when image.jpg is created with jpgraph it throws errors. I am sure
that I am missing something quite obvious, but alas
[snip]
fflush did not work?
[/snip]
No, because the graph image was not complete before the PDF was
complete. Flushing the JPG would display (if no errors occured) an
partial JPG within the PDF.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
If your are using $graph->Stroke('sometempfile'); before
$pdf->Image('sometempfile'); (I bet you do), then the image should be
completed.
Is it happening always or just now and then? What if you wait a few
seconds between the two calls? Do you call clearstatcache()?
I'm asking this beca
[snip]
I have addresses stored in my database. I am trying to create a page
that
generates a letter automatically for the user to print. Given a string
of
format ', x, x, xxx' how can I edit it so that the comma's
are
replaced with line breaks i.e. /n. This will enable me to display the
[snip]
http://us3.php.net/session_register
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
INDEX.PHP
When i type say www.myrentedwebsite.com/index.php?page=main it will
display the page main.txt
When i try this on my localhost it displays the error.txt file instead.
It doesn't recognize the index.php?>?PAGE=MAIN i think !.
[/snip]
Try this and report back
--
PHP Genera
[snip]
default : include "error.txt";
break;
case "screenshots" : include "news.txt";
break;
[/snip]
And always put default case last
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Thanks, but no I don't think so ... session_register() is deprecated ...
[/snip]
Not depricated, just doesn't work when register_globals is off in the
.ini
Have you done a print_r($_SESSION) to see if in fact the $test variable
is contained?
--
PHP General Mailing List (http://www.php.net
[snip]
Well a functon that doesn't work under certain conditions should be
deprecated IMO ... I haven't used it for a long time now...
To answer your question ... yep I've used print_r() and after the 1st
form
submission the entry is set to -1 however at no time do I ever set
$_SESSION['test'] to
[snip]
How to use file() function with an "HTTPS:\\www.example.com"
[/snip]
Use cURL http://www.php.net/curl because you will have to login to the
https: location first, before you can use file()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I would like to piggyback on an Apache realm/dialog authentication and
feed these credentials to a mysql connection (or connection to anything
else) in my php scripts.
Is there a way using the php Apache apis (seems like no) or via apache
itself to make these credentials available/visibl
[snip]
So your telling me that all variables defined in the global scope are
automatically added to the $_SESSION array...?
Not true I think
[/snip]
You're right of course. I went back to your original code and stripped
it back some
The logic is incorrect, when you reload the page $test gets
[snip]
and this is my index.php
Output of this page is without expansion of my variables var1, var2 at
section "echo"
but phpinfo expand this:
_GET["var1"]value1
_GET["var2"]value2
[/snip]
This is not an error. Register globals is off (which is a Good Thing
TM). var1 and var2 are in t
[snip]
I use Linux box + PHP installed on it and want to
connect/access MS Access database installed on Windows
box. Below are my Questions:
1 What software/driver do I need in Linux box as well
as in Windows box? Where to find such a
software/driver?
2. Do I need compile PHP to be able to connec
I just had to get it out of my system this morning. No offense intended
to anyone, and not directly aimed at anyone. Just had to get it off of
my chest because there have been so many times that it could have been
used since we had that "conversation" a few weeks ago.
*grumble* more coffee needed,
[snip]
Perhaps we could add this link to the Newbie Guide
( found this in archives and with s/tuxedo/catb/ )
How To Ask Questions The Smart Way, by Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html
[/snip]
It is number 9 on the Newbie Guide
--
PHP General Mailing List (http:
[snip]
Perhaps we could add this link to the Newbie Guide
( found this in archives and with s/tuxedo/catb/ )
How To Ask Questions The Smart Way, by Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html
[/snip]
It is number 9 on the Newbie Guide which (I hit send too) leads me to
[snip]
I ve been trying to use the PDF function to create/read PDF files, but i
ve
many problems.
Can anyone give a clue how can i create/read PDF files with PHP?
Thanks...
[/snip]
Look for clues here http://us4.php.net/PDF and here
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=PHP+and+PD
[snip]
Do you think that this will truly work, In theory I mean.
[/snip]
Sure.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
...
[/snip]
Work product for the customer belongs to the customer unless
specifically stated differently in the contract. It is their
intellectual property. I have coded both as an employee contractor for
several years and it is always understood (unless the contract states
differen
[snip]
How could that be?! 1:1 the same code but different outputs? Is this a
PHP-bug? :-?
[/snip]
*feelin' kinda' smart arsed today, if no one noticed*
Maybe it was a JavaScipt bug all along ? ;)
Actually I am worried about the order of operations and encapsulation in
the equation in $ra, math
[snip]
Notice: Use of undefined constant {several times}
[/snip]
This means that several constants are undefined. You should have the
following for each of these constants...
define ("constant-name", "constant-value");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
[snip]
My problem is that I am splicing an array and then echoing the array
[code]
[/snip]
Shoulda kept readin', $input is now an array with red and green in it.
http://www.php.net/array_splice
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
: As this is a very small market, for this one client I did not create a
: contract - there was however a very detailed proposal which did not
include
: any source files. Whether it'll stand or not, we also had a verbal
: agreement that they did not want any source files as at the time t
[snip]
Why does it put a space in there?
It's screwing up my other script which displays just the first 50 words
of
the news article by exploding each word into an array. So /> is showing
up
after each break.
http://www.ticatfans.com/index.php
[/snip]
It is inserting the XHTML acceptable break
[snip]
This used to work before I upgraded my PHP.
[/snip]
Let me guess, you upgraded without actually reading the README or update
notes. I am going to guess that register_globals = off in php.ini. You
can either fix the variables $_GET['pagename'] or turn RG back on.
--
PHP General Mailing Lis
[snip]
> I have a project that I need to write and in the past I would hard
code
> a lot of information in pages that I should have put into a config
file.
> I am wanting to know if there a website that example how to write a
> config file and how to the php call them.
take a look at parse_ini(
[snip]
Jay, good guess, but wrong! While register_globals does equal off, I am
using $_GET['pagename'] to assign the value to $pagename before the
snippet
of code that I sent. Sorry I didn't mention that earlier. I tried
putting
the _GET in my header redirection directly, but that didn't help.
[snip]
[snippage]
Violation Information:
The subject violated the content filtering rule PHP as subject is a
malacious code - Not Allowed. No attempt was made to repair.
[/snippage]
How can PHP be a code so powerfull it is not even allowed in the
subject? I thought PHP was a drug.
[/snip]
LOL N
[snip]
Try replying to the group so that your contributions stay with the
thread
instead of being orphaned and lost.
[/snip]
I always do, did something weird happen?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Those are the requirements. Should be easy, but I am finding it very
difficult to tie the pieces together.
Any advice or url of a relevant tutorial would be greatly appreciated.
Thanks,
[/snip]
phpmyadmin (http://www.phpmyadmin.php) does an admirable job of tying
the pieces together. Have
[snip]
was able to use an absolute reference on my local machine to execute
read
file contents; e.g. fopen('http://www.mysite.com/index.php', 'a'), but
on
the host webserver no such luck. Administrator said I can only use
relative
paths. Problem is, when I use a relative path, I just get plain te
[snip]
If I have a block of text saved in an external text file, e.g.:
All {$badstuff} and no {$goodstuff} makes {$name} a dull
{$type}.
after reading the text into a string, is there a way to force variable
expansion? In a sense, it's like having a heredoc for multiline strings
with var
Now I am getting a Yahoo autoresponder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
$flash = new SWFMovie;
[/snip]
where is the require line to include the class definition?
require("/the/path/to/the/namespace/holding/the/class/definition.foo");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
> Have a pleasant and educational weekend!
I'm leaning more towards pleasant.
cheers.
[/snip]
Cheers to you as well, I am departing for the neighborhood watering hole
momentarily, and I will lift a pint of Black & Tan to you all!
--
PHP General Mailing List (http://www.php.net/)
To unsub
[snip]
> where is the require line to include the class definition?
> require("/the/path/to/the/namespace/holding/the/class/definition.foo");
Not following. I don't understand what class defĂnition I need.
I'm using windows php extension. I'm using a class that is in the dll ?
[/snip]
My bad. I s
[snip]
I have installed Mandrake Linux and it comes standard with
Apache PHP and MySQL. You can install all these rpms through
the server selectionAnyway.
In my test environment it is function city and of course
register globals were on.
Now I have Taked my PHP.INI-DIST set the globals to o
[snip]
...please snip replies
[/snip]
Your php.ini should be in /etc/apache/
Once you have it there restart your Apache server.
Now, let's creat a MySQL connection string in a seperate file (not in
the php.ini, which acording to some of the stuff I have read you have
done. Also there should n
[snip]
Is anyone planning on going to this?
http://www.phparch.com/cruise/
I'm trying to go. It would be nice to put a face to the name with a few
people out there. Let me know.
[/snip]
I am trying to get the company to pay for it. The problem is I have
added 2 more developers to the staff, so
[snip]
Is it possible?
I have a file that takes 5 minutes to run, and I would like to be able
to start it when loading a page. But I can't include it because it
forces the browser to timeout...
exec("script.php") doesn't seem to work...
[/snip]
exec needs a little more information, and will th
[snip]
mÄndagen den 22 september 2003 kl 14.31 skrev Jay Blanchard:
> exec("php script.php"); will run the script.
How does this look on a OSX/UNIX system? Can the path to php be found
in a system variable, for convinience and portability of the script?
[/snip]
As usual for *ni
[snip]
> As usual for *nix type 'which php' which will return the path to the
> PHP executable. For portability you could then do something to the
> effect of (not tested)
which() doesn't resolve the path, but I found out it was
/usr/local/php/bin/php.
But how do I make the call
[snip]
I have about 9000 addresses and can only successfully send about 2000
mails
before the page say complete/done.
[/snip]
What is your PHP script execution time set to in the php.ini? Are you
running this from the browser? If so you will also need to modify your
browser timeout? Place this
se
[snip]
The example that I'm really trying to do might be too complicated for
presentation here, but here's a simplified version.
Take the shell script "helloWorld.php":
#!/usr/local/bin/php -q
[/snip]
I could not replicate your problem on a 4.2.n or 4.3.n box but I will
say thi
[snip]
Basically original url is (pseudo) "select * from table where rec=5"
...
any ideas of how to better go about this?
[/snip]
The query is in the URL? Really? You have just asked for a security
problem (google for "sql injection" and you'll see what I am talking
about). If you have anything th
[snip]
I've never had a problem with not putting an extra blank line between
binary path and the actual script. Actually I would say that would break
the output since an extra line would be printed in the case of a PHP
script.
[/snip]
Very true Robert, it can break the output. I generally avoid th
601 - 700 of 3458 matches
Mail list logo