I'm looking at someone's code to learn and I'm relatively new to
programming. In the code I see commands like:
$code-do_command();
I'm not really sure what that means. How would that look in procedural
style programming? do_command($code); or something else?
--
PHP General Mailing List
I'm querying data and have results such as a variable named
$entries[$i][dn]:
CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx
Basically I need to strip off the first command everything after, so
that I just have it
I have users enter support tickets into a a textarea form and then it
emails it to me, I'm trying to get the emails to display when they hit
enter correctly, so i'm changing the \r\n to br, but in the email i'm
getting, its displaying the br instead of a line break: here is the code:
Thanks, i'll try that. what is the difference in using '' and ? I
thought they were interchangeable.
Jonathan Tapicer wrote:
\r\n should be between double quotes: \r\n
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oh nevermind, i see double quotes translate the \r\n to its appropriate
EOL character.
Adam Williams wrote:
Thanks, i'll try that. what is the difference in using '' and ? I
thought they were interchangeable.
Jonathan Tapicer wrote:
\r\n should be between double quotes: \r\n
I have a page where a user authenticates, fills in some information in
an HTML form, and then when clicking on the submit button, will need to
execute a php schell script as that user to write some data to their
/home/username directory. Since apache web server runs as the user
nobody, how
I have staff fill out a form that contains a textarea with their
problem description and emailed to me when they click submit. Staff
will press enter in the text area, but I'm having problems converting
the \r\n into a new line in the email that is sent to me, here is the code:
$subject =
Daniel Brown wrote:
In a cursory glance, I've noticed the following code:
htmlspecialchars(nl2br(str_replace('\r','',$_POST[problem])))
You are using a literal '\r' in your str_replace() function. This
should instead be replaced with double quotes to translate the \r to
its
With the wide range of users on the list, I'm sure there are plenty of
opinions on what are good graphical IDE's and which ones to avoid. I'd
like to get away from using notepad.exe to code with due to its
limitations. Something that supports syntax/code highlighting and has
browser previews
I have a form where users submit search terms and it explodes the terms
into an array based upon spaces. But, how can I have explode() keep
words in quotation marks together? For example, if someone enters on
the form:
John Jill Judy Smith
and I run $termsarray = explode( , $_POST[terms]);
Jan G.B. wrote:
You could try it with regular expression matching..
for example:
?php
preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray);
?
Regards
Thanks. That seems to create 2 duplicate arrays, though. Can it be
narrowed down to just array [0]?
Jan G.B. wrote:
Yes, preg_match_all returns all matches and the subpattern matches
(the stuff inside the brakes)
You can ommit stop it by using (?:) instead of ()..
So: preg_match_all('/(?:[a-z]+|[a-z ]+)/i', $_POST[terms], $termsarray)
You might want to check out the regular expression
Andrew Hucks wrote:
I've been coding PHP for about a year, and I'm running out of things to code
that force me to learn new things. If you have any suggestions, I'd greatly
appreciate it.
I'm currently writing an in-house PHP helpdesk ticket system. I looked
at all the open source ones i
Ron Piggott wrote:
How do I specify an actual SMTP server? (Like mail.host.com)
This is what I have so far:
mail($email, $subject, $message, $headers);
I was to http://ca2.php.net/manual/en/function.mail.php and saw this
syntax:
mail ( string $to , string $subject , string $message [,
Is there a way to determine if a mysql query returns an empty set? I am
selecting 10 results at a time with a limit statement and need to know
when i've ran out of rows. I've only got 2 rows in the database, so
when I start with row 10, it returns an empty set. I have the following
code:
Nitsan Bin-Nun wrote:
mysql_num_rows() maybe? if not I probably haven't understood your question.
Thanks, I never thought of trying that. This code works!
$mysqli_get_requests = mysqli_query($mysqli,$get_requests);
if (!mysqli_num_rows($mysqli_get_requests))
Andrew Ballard wrote:
It won't be any of those because the query is successful even if it
returns no records. You could use
http://us2.php.net/manual/en/mysqli-stmt.num-rows.php to determine how
many rows were returned.
Andrew
Oh ok, thanks that makes sense. Thanks for the link also
--
I have the code:
$mysqli_get_support_types = Select types from support_types order by
types;
$mysqli_get_support_types_result =
mysqli_query($mysqli,$mysqli_get_support_types) or
die(mysqli_error($mysqli));
while (mysqli_fetch_array($mysqli_get_support_types_result))
{
echo
Shawn McKenzie wrote:
No. How about:
while ($row = mysqli_fetch_array($mysqli_get_support_types_result))
{
echo option.$row['types'];
}
thanks, now that you provided that, I see that I left out the $row variable!
--
PHP General Mailing List (http://www.php.net/)
I need some help passing a session variable with a header() function.
According to www.php.net/header, the documentation states:
*Note*: Session ID is not passed with Location header even if
session.use_trans_sid
session.configuration.php#ini.session.use-trans-sid is enabled. It
must by
abdulazeez alugo wrote:
Hi,
Well I'ld say the reason is quite obvious. You have simply not set
$_session[username] . I'ld have done something like:
-- option.php --
?php
session_start();
if ($_POST[option] == View Pending Requests)
{
$_session[username]= true; //sets the session
have you looked into this? http://postgis.refractions.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have staff inputting email addresses into a textarea named $list on
a form and when they click submit, my php script sorts the email
addresses and writes to disk. The problem is, lets say they enter the
email addresses
b...@mdah.state.ms.usstaff hits enter
ama...@mdah.state.ms.usstaff hits
Shawn McKenzie wrote:
This may be best handled in your sorting code. What does it look like?
yeah just a second ago a big lightbulb went off in my head and i fixed
my code to add a \r\n on saving, and strip it on viewing. I sort on
viewing, not sort on saving. The viewing code looks
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340. All the way to number 340
And I want to remove the Number, period, and blank space at the begining
of each line. How can I accomplish this?
Opening the file to modify it is easy, I'm
Thanks Boyd, your code did exactly what I wanted!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was wondering if anyone knew of some books/tutorials/howto's, etc on
going from procedural style coding to object orientated coding with
PHP? I've been using PHP since version 3 and am used to the procedural
style, but I'm noticing that PHP's trend is going to the object
orientated style,
http://search.mnogo.ru
Jason Pruim wrote:
Hi Everyone! :)
Just a quick question, I've done some googling but haven't been able
to find what I need... I am looking at doing a search function for
someone's website, the website is just static HTML files, and she
doesn't want to redo the entire
I'm having users enter dates in MM-DD- format. is there a way to
check if what they have entered is invalid (like if they enter 1-15-2008
instead of 01-15-2008) ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, I think I have it:
$dateexplode = explode(-, $_POST[date_entered]);
if (!preg_match(/^(\d{2})$/, $dateexplode[0],$data1) ||
!preg_match(/^(\d{2})$/, $dateexplode[1],$data2) ||
!preg_match(/^(\d{4})$/, $dateexplode[2],$data3))
{
die (you have entered an invalid date);
Andrew Ballard wrote:
Just curious why you won't take 1-15-2008. Once you validate it, you
can always assign it to a variable as either a timestamp or a DateTime
object and then format it however you want when you display it, send
it to a database, or whatever you are doing with the date.
Andrew Ballard wrote:
All the more reason I would turn it into a timestamp or DateTime
object in PHP first. That will prevent trying to insert something like
what I used above. Then I would get rid of the MySQL STR_TO_DATE
function in the $mysqli_insert_sql value just replace it with
something
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM-DD. However, I need the
output of my select statement to show it in MM-DD- format. I can
select
nevermind, figure it out, had to take the ' ' away from
contract.length_start :)
Adam Williams wrote:
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM
In my form, I am parsing all the text inputs through
mysql_real_escape_string() before inserting the data. however, when I
look at the SQL query in PHP, when I type the word blah's to my text box
variable, and then insert it into mysql after being ran through
mysql_real_escape_string(), it
I'm running PHP 5.2.4 and getting the error:
*Warning*: Wrong parameter count for imap_open() in
*/var/www/sites/intra-test/contract/login.php* on line *9
*My code is:
$mbox =
imap_open(\{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\,
\.$_POST[username].\, \.$_POST[password].\); //
I'm getting the following error and I don't see whats wrong with my
line. Any ideas?
*Fatal error*: Function name must be a string in
*/var/www/sites/intra-test/contract/perform.php* on line *57*
and my snippet of code is:
if ( $_POST[perform] == View Contracts )
{
I'm going to be inserting data from a PHP form into a mysql field. The
data could contain special characters like ' \ /, etc. How do I
handle that? just $data = addslashes(htmlspecialchars($data)); before
the insert query? because later on the data will be read back from the
mysql db
Thanks for all the replies everyone. I have a question on
mysql_real_escape_string(). The PHP example page shows:
$query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s',
mysql_real_escape_string($user),
mysql_real_escape_string($password));
and I
nevermind, I see I had a mistake in my mysql statement, I should of been:
select DATE_FORMAT(testdate, '%m\-%d\-%Y') as date_column from testtable;
please disregard.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I ran the commands:
CREATE TABLE testtable ( testdate DATETIME);
INSERT INTO testtable (testdate) VALUES (now());
and then I want to select it but format it to show the date only (not
the time, and yes I know I could use DATE instead of DATETIME, but there
may be cases where I need to show
I've got an html form, and I have PHP parse the message variables for
special characters so when I concatenate all off the message variables
together, if a person has put in a ' or other special character, it
won't break it when it used in mail($to, MMH Suggestion, $message,
$headers); below
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil Rightsbr
input type=checkbox name=option[] value=Military
Robert Cummings wrote:
On Mon, 2007-10-22 at 18:07 +0100, Stut wrote:
Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option
I have a file called userlist. I'm trying to read the file, and then
echo their name and add @mdah.state.ms.us with it. In the file
userlist, it looks like:
userabc
userdef
userxyz
and I have the following code:
?php
$filename = userlist;
$fp = fopen($filename, r) or die (Couldn't open
Hi, I just tried that, didn't make a difference, still not getting my
expected output.
[EMAIL PROTECTED] wrote:
[snip]
echo $thedata.@mdah.state.ms.us;
[/snip]
Try echo $thedata.'@mdah.state.ms.us';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
John Nichel wrote:
Well, you're not telling fgets how much to read for one, and I'd do
this a different way to begin with...
if ( $file = file ( $filename ) ) {
foreach ( $file as $line ) {
if ( $file != ) {
echo ( $line . @mdah.state.ms.us );
}
}
} else {
got it! i had to have my block of code look like this:
if ( $file = file ( $filename ) ) {
foreach ( $file as $line ) {
if ( $line != ) {
$line = trim($line);
echo ( $line . @mdah.state.ms.us );
echo \n;
}
}
} else {
echo (
Hi, I don't know what functions to use so maybe someone can help me out.
I want to grab a URL's source (all the code from a link) and then cut out
a block of text from it, throw it away, and then show the page.
For example, if I have page.html with 3 lines:
htmlheadtitlehi/title/head
body
!--
Hi, I use a piece of proprietary software at work that uses weird session
ID strings in the URL. A sample URL looks like:
http://zed2.mdah.state.ms.us/F/CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471?func=find-b-0
The weird session ID string changes each time you login. Anyway, how
Hi, I'm having a problem with fopen and http files. I keep getting the
error:
Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html )
[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404
Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15
On Fri, 8 Oct 2004, Matt M. wrote:
But I don't understand why I am getting that error about failed to open
strem: HTTP request failed, when I can bring up the links fine in a
browser on the server running the php script. So can anyone help me out?
Thanks
do you have allow_url_fopen
On Fri, 8 Oct 2004, Hendrik Schmieder wrote:
What say phpinfo about Registered PHP Streams ?
Hendrik
Hi, I think I just figured out my problem...I had to use rtrim($line)
because I think there was a \n or an invisible character at the end of the
line that was being passed to the
Here is my snippet of code. It takes cardnum from the database, removes
the duplicates for each individual date, and then counts how many discrete
numbers there was.
!-- snippet of code starts here --
//database connect and selection here, now my sql statement:
$sql = select convert(
array_unique() removes duplicate values from an array.
Is there an opposite function or way of keeping all values in a single
dimentional array that are duplicates and removing all that are
duplicates?
for example if I have an array:
array( [0] = 'dog', [1] = 'cat', [2] = 'rabbit', [3] =
Hi, I have a variable that is created using the date command:
$date = date(Ymd);
but its not working in my database this way (when I explicity enter
20040614 in my database, it works though). so I think PHP is making $date
a character variable, so how can I force or change the caste of $date
eh nevermind, I found settype();
:) thanks
On Mon, 14 Jun 2004, Adam Williams wrote:
Hi, I have a variable that is created using the date command:
$date = date(Ymd);
but its not working in my database this way (when I explicity enter
20040614 in my database, it works though). so I
Hi, I have a randon group of numbers I need the average of. When I add
them up and divide by how many there are and print the result, I get a
lot of decimal places. The number comes out to look like 29.3529411765,
but I don't need that many decimal places. rounding to one decimal place
will
On Mon, 10 May 2004, Richard Davey wrote:
Hello Adam,
Monday, May 10, 2004, 7:03:36 PM, you wrote:
AW Hi, I have a randon group of numbers I need the average of. When I add
AW them up and divide by how many there are and print the result, I get a
AW lot of decimal places. The number
Hi, I have a form where I have a user entering in the date in a numeric
string. For today they would enter 04212004 and so on...I'm working on
this date within mysql server, and mssql server handles dates as
04-21-2004 when you use convert(varchar,field,110). So how in PHP can I
change a
Hi, what is the syntax for using ocilogon() to connect to a remote server?
The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the
database is zed.aleph0. Locally on zed I can do
ociogon(user,pw,zed.alpeh0) and connect fine, but on a remote server
I try
connection to Oracle using sqlplus:
User: scott
pass: tiger
dbstring: test
this in PHP would be: $conn = OCILogon(scott, tiger, test);
-William
El mar, 30-03-2004 a las 15:52, Adam Williams escribió:
Hi, what is the syntax for using ocilogon() to connect to a remote server
Hi, I figured out what was wrong, I had php_oci8.dll uncommented in
php.ini but not php_oracle.dll. Fixed that and now I get an ORA-12705
error, which looking on google has something to do with NLS. Going to do
more reading, thanks :)
--
PHP General Mailing List (http://www.php.net/)
To
Hi, I was wondering if I can get some help with either a str_replace or a
regex. I have some data and it always begins with $$ but it can end with
any letter of the alphabet. so sometimes its $$a and sometimes its $$b
and sometimes $$c all the way to $$z. $$a all the way to $$z needs to
be
What would be the PHP expression to change any and all ' to ? in a
variable?
I want to change any and all ' in $_POST[data] to ?
what would be the statement? Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you, that works great!
On Thu, 4 Mar 2004, Richard Davey wrote:
Hello Adam,
Thursday, March 4, 2004, 3:36:06 PM, you wrote:
AW What would be the PHP expression to change any and all ' to ? in a
AW variable?
AW I want to change any and all ' in $_POST[data] to ?
$output_array
Hi, is there a way to authenticate a username/password someone enters in a
form with what is in /etc/passwd?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, is there a PHP function or some sort of way to have a user enter their
username and password in a form, and compare the username and password and
see if the username exists and the password is correct?
basically I want to have a page where a person enters their username and
password and if
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/ (some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way
to do this?
--
PHP General Mailing List (http://www.php.net/)
To
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
I am having a user enter a phrase into a textbox, and then I need to
seperate the words he has typed into variables so I can use each one
in an sql statement. I know I will use the explode() function to do this,
but how will I know how many variables I've created. For instance, if a
user
If I have the SQL statement:
$sql = select subject from subwhile where subject = '*$var[0]*';
do I need to put a \ before each '?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah thats what I meant to do, my PHP is very rusty if you can't tell
(and so is my SQL) :)
Jay Blanchard wrote:
[snip]
If I have the SQL statement:
$sql = select subject from subwhile where subject = '*$var[0]*';
Don't you want to do:
$sql = select subject from subwhile where subject LIKE
Hi,
does anyone happen to know off hand the function that will ignore case for
data inputted via text from a form/form? I don't remember it off hand
and can't find it in the function list on php.net. Basically it changes
the text in the string from a character to [a-Z] for each character. I
Hi,
I finally found it in my notes, it was sql_regcase()
Rolf Brusletto wrote:
Adam Williams wrote:
Hi,
does anyone happen to know off hand the function that will ignore case
for data inputted via text from a form/form? I don't remember it
off hand and can't find it in the function list
Hello,
I need to test a variable to see if it contains a value or not, and if
not, do something. My php is a little rusty, so which would be better?
if ( !$var )
{ echo do something;}
or
if ( !isset($var )
{ echo do something;}
or are both of those wrong, and if so, how hsoudl I check if a
Hello,
I am selecting a field in a database called description for keyword
searching. The field contains names of people, states, years, etc. When
someone searches for say holmes north carolina the query searches for
exactly that, fields which have holmes north carolina, and not fields
that
I'm using Informix SQL. Do you know how to do full text searching on
Informix? If so, please share the details :)
Jay Blanchard wrote:
[snip]
I am selecting a field in a database called description for keyword
searching. The field contains names of people, states, years, etc.
When
someone
I have a php page I am writing with an SQL query. I am going to query the
database for a couple of fields. One of the fields I am querying is the
title oh the document someone is searching for. The title will be used at
the top of the html page and will say:
you are searching for document
Hello,
I was wondering if someone knew how to display the time on the server to a
web page that resides on that server, and have it update the time each
second? I was looking at javascript for this, but they all use the client
PC viewing the page to get the time, but I want it to display the
Hello,
I want to allow access to a php page but am not sure how I should verify
the IP once I get it. I want to allow 10.8.4.* and 10.8.5.* to access a
certain webpage and keep everyone else out. I have written code to figure
out what someone's IP is, but am not sure about how I should
Hello,
I'm trying to compile PHP 4.3.3. My configure is:
./configure --enable-track-vars --without-mysql --with-mail
--with-apxs2=/usr/local/apache2/bin/apxs --with-informix
and when doing make I get:
[EMAIL PROTECTED] php-4.3.3]# make
/bin/sh /root/php-4.3.3/libtool --silent
Hello,
I have a block of code:
?php
if ($_POST['news'])
{
$fp = fopen( news.txt, w);
$success = fwrite( $fp, $POST_['news'] );
fclose($fp);
if (!success)
{
echo punable to write to news.txt/p;
exit;
}
Header(Location:
Hi,
when I do that, nothing is written to news.txt, and I'm not sure why.
This is the entire script:
?php
if ($_POST['news'])
{
$fp = fopen( news.txt, w);
$success = fwrite( $fp, $POST_['news'] );
fclose($fp);
if (!success)
{
echo punable to
Is it possible to have PHP read cd label information? You know in windows
like after you put in a CD and use Windows Explorer and go to your CD rom
drive's letter it will say like D: (MSOffice2K) or D: (date of burned cd)
or D: (XPProCD), etc...If you know what I am talking about, is there a way
It would be in the cd-rom drive of the webserver. The CD's would be
rotated periodically and the only way I have to identify what is on each
cd and which .exe to run on it is by identifying it by its cd label. I've
searched google and php.net but haven't found a function that can read cd
labels.
Thanks Tom, that works perfect!
Adam
On Thu, 6 Feb 2003, Tom Rogers wrote:
Hi, Adam
TR You could try the vol command using exec{} and parse out the volume name
TR --
TR regards,
TR Tom
This should do it:
?
exec(vol g:,$result);
$label =
the correct .exe file on it to load the application.
Its for a library and will be used by the general public, so I am making
it as simple as possible :)
Adam
On Wed, 5 Feb 2003, John Nichel wrote:
Guess it's not on Linux, eh? :)
Adam Williams wrote:
--
PHP General Mailing
is register globals enabled?
On Tue, 10 Dec 2002, Shane wrote:
Greetings gang.
You know me, I never ask for help if I haven't checked all my other options, but
this is day two, and I'm getting spanked on this one.
Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an
If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great.
I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better.
Adam
On Wed, 4 Dec 2002, Vicente Valero wrote:
Hello,
PHP 2.4.3 can work with Apache 2.0.x or I need Apache 1.3.x?
--
PHP
Yes
On Wed, 4 Dec 2002, Vicente Valero wrote:
Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache
1.3.x??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change the directory ownership to the user apache runs as, or make the dir
777.
Adam
On Wed, 4 Dec 2002, [iso-8859-1] Davíð Örn Jóhannsson wrote:
I need to be able to create dirs, chmod and other stuff on the server,
but I get : Warning: MkDir failed (Permission
I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...
Adam
On Tue, 3 Dec 2002, Kevin Stone wrote:
Is it possible you're mistaken somehow? x isn't an operator in PHP.
Executing $a x $b will give you a parse error.
You either need to make the directory 777 or change the ownership of the
dir to apache or nobody (depending on which user httpd runs as)
Adam
On Fri, 22 Nov 2002, Vicky wrote:
Yup, both directorys are chmoded to 755. Lots of users are going to use this
script so...
user name=cb[] and PHP will automatically make the array. then call it
with $_GET[cb][#]
Adam
On Thu, 21 Nov 2002, Xin Qi wrote:
hi there,
if i have a group of checkboxes, and they have the SAME name, when they are
submited into a php script, how can this php file
Not to burst your bubble, but I'have had all of this working since the day
RedHat 8.0 was released. Though I compiled everything by hand instead of
using RedHat's RPMs. Just read the comments on php.net under the
apache/unix install and did what they said to add to httpd.conf for PHP.
Change the space in job enquiry to a +
Adam
On 14 Nov 2002, BigDog wrote:
Does this not work...
a href=contactus.php?email=directorsubject=job enquiry
On Thu, 2002-11-14 at 14:11, CJ wrote:
I have a contact us php script on my site that allows users to email
0 0 * * * lynx http://whatever/blah.php ; sleep 5; killall -9 lynx
Adam
On Thu, 14 Nov 2002, Aate Drageset wrote:
Not specifically php-problem, but..
How could i run a php-script from command line (cron.daily) using no GUI or X ??
There should be some way of using a
look up exec()
Adam
On Tue, 12 Nov 2002, Greg wrote:
Hi-
Is there a way in PHP to execute a program and then have it pass its output
back to PHP? Say I wanted to return the value that running df produced
and put it in a web page? Thanks!!
-Greg
--
PHP
actually, look up system() I think it would be better in your case.
Adam
On Tue, 12 Nov 2002, Greg wrote:
Hi-
Is there a way in PHP to execute a program and then have it pass its output
back to PHP? Say I wanted to return the value that running df produced
and put
1 - 100 of 161 matches
Mail list logo