I have an xxx.php page that runs on my Unix server. I also
run php.exe on my NT box to generate the corresponding
xxx.html file like this:
c:\ php -q xxx.php xxx.html
The xxx.php file contains stuff like this:
print hello\n;
That means stdout from the server and the xxx.html file
both
Hello Frewuill,
Friday, October 26, 2001, 6:51:00 PM, you wrote:
FR www.f2s.com sometimes it's a little slow but u have php+mysql
FR - Original Message -
FR From: Kamran H. Hassan [EMAIL PROTECTED]
FR To: [EMAIL PROTECTED]
FR Sent: Friday, October 26, 2001 11:20 AM
FR Subject: [PHP]
On Fri, 26 Oct 2001 17:18:37 -0400, John A. Grant wrote:
I have an xxx.php page that runs on my Unix server. I also
run php.exe on my NT box to generate the corresponding
xxx.html file like this:
c:\ php -q xxx.php xxx.html
The xxx.php file contains stuff like this:
print hello\n;
That
Try using apache var $SERVER_SOFTWARE in order to know where you are
- Original Message -
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 5:18 PM
Subject: [PHP] how to recognize local or server execution?
I have an xxx.php page that runs on
use $GLOBALS[SERVER_ADDR] it will return the IP address of the server. then
use that in an if..then..else
Jim
- Original Message -
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 2:18 PM
Subject: [PHP] how to recognize local or server
Ok I am starting on small web site and using PHP 4 on Apache with FreeBSD
4.4 as the OS. I need to use sessions to pass some info around between
pages but when I use session_start() I get the error msg below.
Warning: Cannot send session cookie - headers already sent by (output
started at
I have a TEXT or BLOB field in my database and everthing works great
when I display it in my browser with PHP except HTML links are not
clickable (appear as normal text). How do I display the links in the
BLOB field as actual HTML links on my web page?
While I'm on the subject: How do I
Your timestamps should be in UTC, and therefore not effected by daylight
savings.
- Ben
Nathan Cassano wrote:
Hello fellow PHPer's,
Daylight savings is soon upon most of us and I have some
questions in regard to timestamps. My problem: So we put our clocks an
hour back. I have
Sounds like onChange to me... when you check it you change it, when you
uncheck it you change it.
- Ben
Boaz Yahav wrote:
does anyone know the HTML event that knows when a checkbox has been
checked and unchecked?
So far I'm using onChange but that is not exactly what I need. I need to
Mark,
Backing John's question up by one iteration: is there a PHP environment variable which
can be used to
distinguish between code being run from the command line and code being run in a
browser?
- and the Million dollar question, sorry make that the M$ question: will it also work
under
this means that on line 8 of the product_list.php file, you are sending
something to the browser with print() echo or ?something?
find out what is on that line
then, make sure that the session_start(); is the first thing that gets
called.
jim
- Original Message -
From: Gate [EMAIL
I have a TEXT or BLOB field in my database and everthing works great
when I display it in my browser with PHP except HTML links are not
clickable (appear as normal text). How do I display the links in the
BLOB field as actual HTML links on my web page?
While I'm on the subject: How do I
may be
$argv
Array of arguments passed to the script. When the script is run on the
command line, this gives C-style access to the command line parameters. When
called via the GET method, this will contain the query string.
$argc
Contains the number of command line parameters passed to the
use onClick event handler for the checkbox and inside the handler check if
checkbox.checked==true then call your checked handler else call unchecked
handler
HTH
- Original Message -
From: Ben Holt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 6:13 PM
Subject:
I have a TEXT or BLOB field in my database and everthing works great
when I display it in my browser with PHP except HTML links are not
clickable (appear as normal text). How do I display the links in the
BLOB field as actual HTML links on my web page?
While I'm on the subject: How do I
Friday night and I can't get my head around this. OK, so I don't get
this. (From A Reformer Perler?? - unitil now)
I was getting
parse error, expecting `T_VARIABLE' or `'$'' in ...
until I exchanged the naming of these:
$1a = 0; $1b = 0; $1c = 0; $1d = 0; $1e = 0; $1f = 0;
(It won't accept
I'm trying to read a record from a dbase data base so I've previously
opened it successfully. The problem is that I call the function
dbase_get_record, but it returns no records. The database is ok because I
call the funcion dbase_numfields and dbase_numrecords and they give me
correct
On Fri, 26 Oct 2001 23:12:17 +0100, DL Neil wrote:
Mark,
Backing John's question up by one iteration: is there a PHP
environment variable which can be used to
distinguish between code being run from the command line and code
being run in a browser?
I guess the best way is to check for a common
You can't start a variable name with a number.
-Rasmus
On Fri, 26 Oct 2001, jtjohnston wrote:
Friday night and I can't get my head around this. OK, so I don't get
this. (From A Reformer Perler?? - unitil now)
I was getting
parse error, expecting `T_VARIABLE' or `'$'' in ...
until I
Thanks for the idea. I have just resurrected and had another play with my
'testbench.php', running it from both
IE/Apache and in a DOS box.
It includes the following code:
-
echo br.sizeof($argv).~Array of Args passed to script=;
while ( $element = each( $argv ) )
{echo br; echo $element[
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jtjohnston) wrote:
I was getting
parse error, expecting `T_VARIABLE' or `'$'' in ...
until I exchanged the naming of these:
$1a = 0; $1b = 0; $1c = 0; $1d = 0; $1e = 0; $1f = 0;
(It won't accept $1a as a variable.) ... for these:
Hi,
I'm pretty new at PHP I was just wondering if anyone had some information
about how to set up a secure area on my site. I don't need anything really
intense to protect data, just something that allows only priveleged users
into that portion of the site. If anyone has any links or info on
On Sat, 27 Oct 2001 01:41, Ashley M. Kirchner wrote:
In a different language I can write something that will return the
index of $section in the array, then I can use that index value to fetch
the INT afterwards:
$array = {{section1, 1},{section2,4},{section3,2}}
if (idx = ($section
In my phpadmin, I have something called: Table comments. Can I acccess
this somehow? Can't find it in the function database.
A post reply would be appreciated,
Thanks,
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
RTM http://www.php.net/manual/en/language.variables.php:
Variable names follow the same rules as other labels in PHP. A valid
variable name starts with a letter or underscore, followed by any number of
letters, numbers, or underscores.
So $_1a is legal?! Confusing given $_ in Perl.
J
--
On Friday 26 October 2001 16:55, Martín Marqués wrote:
You need https, and that comes with the web server (i.e.: Apache).
actually, SSL (aka https) has little, if anything, to do with user
authentication -- it's used mainly for data encryption.
If you're looking for user authentication, then
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jtjohnston) wrote:
RTM http://www.php.net/manual/en/language.variables.php:
Variable names follow the same rules as other labels in PHP. A valid
variable name starts with a letter or underscore, followed by any number of
letters,
Hi,
Another solution I have used when I have to do conditional includes which
may cause the same page to be included twice
At the top of the code to be included (the separate file) put something
like:
if ($theFileAlreadyInclude != 1) {
and at the bottom you may put:
}
959. I was close... :)
--
Looking for a parallel, three-dimensional explicit Eulerian grid code for
astrophysical magnetohydrodynamics? Of course you are! Everyone is!
http://lca.ncsa.uiuc.edu/lca_intro_zeusmp.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
First.. here's the synopsis of what I'm trying to do:
I'm working on a site where everything is based off a really simple template
system I'm using, see the chunk of my index page that deals with the plates
for example:
-
$tmpl_file = fopen
Does anyone know of a php script that will display a monthly calendar in
a graphical format? I have a client that would prefer that over the typical
list of dates which is much easier to do. I need to be able to put various
bits of info on differant days of the month of course, and have links to
Check www.zend.com in the code gallery... I'm sure they have something
along these lines.
On Fri, 26 Oct 2001, Chip wrote:
Does anyone know of a php script that will display a monthly calendar in
a graphical format? I have a client that would prefer that over the typical
list of dates which
I've asked a few questions before on Smarty here and I've worked through them but this
one really has me.
I checked the Smarty lists for answers and couldn't find a clear answer. Here is my
problem.
i want to do something to this effect
{section name=loop_index loop=$DATA_ARRAY}
#Create Random number
$floor = 10;
$ceiling = 99;
srand((double)microtime()*100);
$random = rand($floor, $ceiling);
Warning: rand(): Invalid range: 10..99 in c:\my
documents\ezone\testing\signup2.php on line 49
Can someone please tell me where i went wonr gin this
On Vie 26 Oct 2001 19:17, David wrote:
I have a TEXT or BLOB field in my database and everthing works great
when I display it in my browser with PHP except HTML links are not
clickable (appear as normal text). How do I display the links in the
BLOB field as actual HTML links on my web page?
101 - 135 of 135 matches
Mail list logo