[PHP] how to recognize local or server execution?

2001-10-26 Thread John A. Grant
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

Re[2]: [PHP] free php web hosting

2001-10-26 Thread Olexandr Vynnychenko
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]

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Mark
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Frewuill Rodriguez
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Jim Lucas
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

[PHP] session_star() problem

2001-10-26 Thread Gate
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

[PHP] Display HTML links as links in Blobs or TEXT output

2001-10-26 Thread David
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

[PHP] Re: Daylight savings and timestamps

2001-10-26 Thread Ben Holt
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

[PHP] Re: checkboxes

2001-10-26 Thread Ben Holt
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread DL Neil
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

Re: [PHP] session_star() problem

2001-10-26 Thread Jim Lucas
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

[PHP] Display HTML linksas links in BLOB output

2001-10-26 Thread David
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Frewuill Rodriguez
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

Re: [PHP] Re: checkboxes

2001-10-26 Thread R'twick Niceorgaw
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:

[PHP] Display HTML links as links in BLOB output

2001-10-26 Thread David
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

[PHP] Absolute #$#$ silliness

2001-10-26 Thread jtjohnston
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

[PHP] help with data base!!!

2001-10-26 Thread Alejandro Viana
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Mark
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

Re: [PHP] Absolute #$#$ silliness

2001-10-26 Thread Rasmus Lerdorf
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

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread DL Neil
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[

[PHP] Re: Absolute #$#$ silliness

2001-10-26 Thread CC Zona
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:

[PHP] Setting Up Secure Pages with PHP

2001-10-26 Thread Jeff Sharpe
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

Re: [PHP] Arrays

2001-10-26 Thread Brad Hubbard
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

[PHP] Table comments

2001-10-26 Thread jtjohnston
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,

[PHP] Re: Absolute #$#$ silliness

2001-10-26 Thread jtjohnston
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 --

Re: [PHP] Setting Up Secure Pages with PHP

2001-10-26 Thread Kurt Lieber
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

[PHP] Re: Absolute #$#$ silliness

2001-10-26 Thread CC Zona
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,

RE: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-26 Thread Gerard Onorato
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: }

Re: [PHP] Store file remotely using socket/fopen

2001-10-26 Thread Evan Nemerson
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:

[PHP] Trying to create a site-template system.. and..

2001-10-26 Thread Ryan Christensen
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

[PHP] Calendar

2001-10-26 Thread Chip
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

[PHP] Re: Calendar

2001-10-26 Thread Philip Hallstrom
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

[PHP] Multi-dimensional nested arrays in Smarty

2001-10-26 Thread Chad Guilette
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}

[PHP] Random

2001-10-26 Thread Andrew Duck
#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

Re: [PHP] Display HTML linksas links in BLOB output

2001-10-26 Thread Martín Marqués
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?

<    1   2