[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 co

[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} {$DATA

[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 whic

[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] 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 ("./templat

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: [EM

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: } $theFileAlreadyIncl

[PHP] Re: Absolute #$#$ silliness

2001-10-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > > RTM : > > > > "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 > > l

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 jtjohnston
> RTM : > > "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

[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,

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

[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

[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.) ...

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 "".sizeof($argv)."~Array of Args passed to script="; while ( $element = each( $argv ) ) {echo ""; echo $element[

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 ..." >

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 comm

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 pag

[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 information

[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 accep

[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 displ

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

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 scri

[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 displ

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 To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 3:07 PM Subject: [PHP] session_star() problem > Ok I am starting on small web site and using PHP 4 on Apache wi

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 Windo

[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 >

[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 da

[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 displ

[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 /usr/h

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 exec

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 run

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"

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> Subjec

[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 b

[PHP] Help! ¡Ayuda!

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 informa

Re: [PHP] checkboxes

2001-10-26 Thread Jim Lucas
function jsFunc() { // then check the status of the checkbox if (checked) { run this } else { run this } } onClick="jsFunc()" Jim Lucas - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP General (E-mail)" <[EMAIL PROTECTED]> Sent: Fr

RE: [PHP] checkboxes

2001-10-26 Thread Johnson, Kirk
onClick Kirk > -Original Message- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 26, 2001 3:03 PM > To: PHP General (E-mail) > Subject: [PHP] checkboxes > > > does anyone know the HTML event that knows when a checkbox has been > checked and unchecked? -- PHP

RE: [PHP] stripslashes() not striping slashes

2001-10-26 Thread Boaz Yahav
Actually, After coding with PHP since the days me and bourbon shared a cube at Netvision while he developed php3 I think that's something I would know :) The funny issue is that only if I use double stripslashes does it work. e.g. $str = stripslashes($str); // This will NOT do the job. $str = s

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

2001-10-26 Thread Evan Nemerson
The command is STOR not STORE. Take a look at the FTP RFC- I think its 951, but im not 100%- just search for FTP RFC. On Friday 26 October 2001 05:42 am, you wrote: > Hello list, > > Simple Enough Objective: store file remotely (wu-ftp); > MinorSnag: PHP's ftp-functions unavailable at localhost

[PHP] checkboxes

2001-10-26 Thread Boaz Yahav
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 run one JS function when a checkbox is checked and another when it is unchecked. NE1? berber -- PHP General Mailing List (http://w

[PHP] Re: free php web hosting

2001-10-26 Thread Henrik Hansen
[EMAIL PROTECTED] (Kamran H. Hassan) wrote: > Hi, > > can any body know about free php & mysql free web hosting service provder ? > http://alt-php-faq.org/links.html - under hosting -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] Daylight savings and timestamps

2001-10-26 Thread Nathan Cassano
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 database tables with plain integers that store timestamps. I like to do comparison operations with these timestamps. When

[PHP] array_search()

2001-10-26 Thread Ashley M. Kirchner
I'm trying to figure out how am I supposed to write this snippet properly: if (($index = array_search($search, array_keys($pages))) !== false) { echo "index: $index\n"; } else { echo "Not found\n"; } When I search for something that I know exists, it returns the $index just fi

[PHP] Informix Redback

2001-10-26 Thread Adam Plocher
Our company is looking into purchasing an application package that requires the use of the Informix (IBM) Redback application. We have been told that Redback objects can be used in php scripts but I was wondering if any of you have had experiece with it and if you have had any problems or difficul

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-26 Thread John A. Grant
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message 022901c15dbd$76a34c20$[EMAIL PROTECTED]">news:022901c15dbd$76a34c20$[EMAIL PROTECTED]... > try this > > system("php.exe ", $output); > echo $output; > ?> > > make sure you put the correct paths to the .exe and file otherwise it will > think that i

[PHP] Include Precompiled C binaries

2001-10-26 Thread Daelic
I was debating perl Vs. PHP with a friend, and he came up with this: "Perl can include compiled C binaries without backprocessing them, which is a pretty useful trick." I don't know anything about this, so couldn't comment on it. Can PHP do this, or anything similar? Thanks! -- PHP Genera

Re: [PHP] = 0 and = "0"

2001-10-26 Thread ~~~i LeoNid ~~
On Thu, 25 Oct 2001 02:04:14 -0700 (PDT) impersonator of [EMAIL PROTECTED] (Rasmus Lerdorf) planted &I saw in php.general: > if(strpos("abcdef","abc")) { ... } > >and then be confused that the condition appeared not to be met. What they >actually should have done was: > > if(strpos("abcdef","

[PHP] PHP redirects (was Re: [PHP] Advanced. Trapped in architecture.)

2001-10-26 Thread Kurt Lieber
AFAIK, ASP does output buffering by default (meaning it doesn't send the code to the browser until the page is fully parsed and ready to send to the client) That's what allows it to response.redirects after headers have been generated. Cold Fusion is the same way. However, once the actual HT

RE: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Matthew Loff
Response.Clear Response.Redirect Doesn't that imply that ASP buffers the output? The problem with redirecting the browser after you output data isn't a PHP issue, it's the HTTP spec. I think the best solution would be to turn on output buffering, then immediately flush the output buffer when y

[PHP] Array explicit keys verification

2001-10-26 Thread m0sh3
Hi, i'm trying to find elegant way to find if Array was declared with explicit keys or only as values. Like, I would like to make a function that knows if array argument was given with keys or only values, function that can distinguish between: func(array("value1","value2","value3")) and func(

Re: [PHP] free php web hosting

2001-10-26 Thread hassan el forkani
www.f2s.com At 17:20 26/10/01, Kamran H. Hassan wrote: >Hi, > >can any body know about free php & mysql free web hosting service provder >? > >i will be greatful if u let me know > >Kamran H. Hassan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

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

2001-10-26 Thread Jason Wood
I had the same type of problem. ( i think) I had one main page (say index.php) that had a bare bones html page. No functions or anything. Then i had separate pages that would be included only if i was using them (like, say, a category.php for displaying categories, then products.php for showing

Re: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Mike Eheler
I know in ASP it's as easy as doing: Response.Clear Response.Redirect But PHP doesn't seem to have that feature. My best suggestion would be to try and re-work your code so that the redirect can be detected *before* any html code is written to the browser. Mike Andy wrote: >Hi there, > >I h

Re: [PHP] Re: Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Eheler
Actually beyond that, for #1, if you server allows you to create .htaccess files, simply create a .htaccess file in your root directory, and put this in it: DirectoryIndex index.php Mike Mike Frazer wrote: >Two ways: > >#1 - If you have server admin access, just add to the default page list

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread Thomas Deliduka
I found several problems with managing this. All links on the page CANNOT be relative (i.e. HREF="filename.php/var/var/var" it must be HREF="/filename.php/var/var/var" or with the full path. Otherwise your browser will try to attach the filename to the end of the long querystring you created. Unl

Re: [PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Mike Frazer
It can also use procmail, or any other SMTP-capable application you have installed. It is called from the php.ini file. Mike Frazer "Nathan Cassano" <[EMAIL PROTECTED]> wrote in message 392201c15e37$535ab3f0$2925ae3f@amos">news:392201c15e37$535ab3f0$2925ae3f@amos... > > Not a whole lot. The PH

[PHP] Re: Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Frazer
Two ways: #1 - If you have server admin access, just add to the default page list "index.php" in your server config. #2 - Use a meta refresh: http://www.yourdomain.tld/path/to/your/script.php";> Mike Frazer "René fournier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread Ashley M. Kirchner
Andy wrote: > I heared that search engines are not following things after the question > mark. Now I looked arround and noticed, that some sites yust have numbers > behind the .php extension. How does this work? Can anybody make an example > and list advantages and disadvantages? Search engi

Re: [PHP] fsockopen and https

2001-10-26 Thread Frewuill Rodriguez
As far as i know PHP can't handle SSL yet.. at least that was the situation a few versions ago. =( - Original Message - From: "Brad Hubbard" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 5:54 AM Subject: Re: [PHP] fsockopen and http

[PHP] directory access

2001-10-26 Thread Norman Zhang
Hi, I have a simple authentication script. if ($username == "abc") { readfile("abc/index.php"); } else readfile("index.php"); What I would like to know if there is some way that I can have the user checked against the user in directory /abc/.htaccess? I would like to have the script to jump

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread WebDev
Hello Andy, Its just a way of passing along variable information as you would do with a form except you attach the variable/args directly to the URL. For example if you have a script that list all records in a database, you may have a link for deleting records that would be attached to each reco

[PHP] Searchengine friendly URLs

2001-10-26 Thread Andy
Hi there, I heared that search engines are not following things after the question mark. Now I looked arround and noticed, that some sites yust have numbers behind the .php extension. How does this work? Can anybody make an example and list advantages and disadvantages? Thanx, Andy -- PHP G

[PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Andy
Hi there, I have a serious problem in my programming architecture. The architecture looks like fusebox (those of you familar with CF might now this a.) The point is, that I am sending html code at the beginning. Body tag and so on. Now there is the content. And inide this content there might be

[PHP] compile error

2001-10-26 Thread Thomas Holton
Hello, I am looking through the documentation and archives and have been unable to find anything about my problem, which is: Installing php-4.0.6 on alpha OSF1 v5.1 CONFIG LINE: ./configure --with-apache=../apache_1.3.22 --with-imap=/usr/local/src/imap-4.7 --with-mysql=/usr/local/mysql --with-

[PHP] sending email to php script

2001-10-26 Thread JSheble
A while ago an email came through here about how to parse out email message from a php script. The thing that was mostly of interest to me is the ability to send an email to a php script, I guess through a sendmail alias? I asked how to accomplish this, and never saw an answer come through.

[Fwd: [PHP] Best [non-PHP] way to redirect a browser]

2001-10-26 Thread Mike Eheler
Right. My bad. Heh, I have an excuse.. it's before noon here ;) Definitely go with the approach, then: Example: Click here to enter the site Mike this wouldn't work from an index.html page unless html pages were set up to parse as php file... At 10:35 AM 10/26/2001 -0700, yo

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Kurt Lieber
On Friday 26 October 2001 10:25, you wrote: > What is the most reliable, browser-safe way to redirect the browser from a > default index.html to, say, index.php? The I'm doing it now is with the > following javascript: The most reliable, browser-safe, non-PHP way to redirect mail is to do it se

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Ashley M. Kirchner
René Fournier wrote: > And it works, but I wanted to know if any of you are using a better [more > compatible] way of redirecting the browser (say, if it doesn't have > JavaScript (!?)). If you're using Apache, add 'index.php' to the DirectoryIndex option in httpd.conf. Then you can remove

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Eheler
Before any of your HTML code, put in: header('Location: index.php'); If anything has been sent to the browser yet (through echo/print/etc, or through code outside of the tags), though, you will get an error. Mike René Fournier wrote: >This is really I guess a non-PHP question, so please exc

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Richard S. Crawford
You might try META tags. Put this in the head section of your index.html file: < meta http-equiv="refresh" content="0; url=index.php" > If the user has JavaScript disabled, you're probably best off using a link and letting the user click through. You may also be able to adjust your A

[PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread René Fournier
This is really I guess a non-PHP question, so please excuse... What is the most reliable, browser-safe way to redirect the browser from a default index.html to, say, index.php? The I'm doing it now is with the following javascript: document.location="index.php" And it works, but I wanted to

Re[4]: [PHP] function names

2001-10-26 Thread Olexandr Vynnychenko
MM> Check your code again. Without the this-> I get the same error that you got. With this->> I don't. I don't know what php you're using... Or maybe you haven't understood something. Try this code: And php will tell you "Parse error: parse error, expecting `T_STRING' in Newprint.php on lin

Re: [PHP] editor for working with php

2001-10-26 Thread Mike Eheler
I've always been partial to TextPad, myself. http://www.textpad.com/ You gotta download the PHP4 Syntax Definition file for syntax hilighting. Mike Pavel Jartsev wrote: > Ray Todd Stevens wrote: > >> I ahve been using go-live (4.0) to edit pages containing php >> scripts. this is not really

Re: [PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Mike Eheler
Nothing, really. I believe PHP's mail() actually calls sendmail directly (or whatever you have configured in php.ini). Also Mike Web user wrote: >What's the difference between mail() in PHP and sendmail? >Thanks! >Mike > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Nathan Cassano
Not a whole lot. The PHP mail function is just a nice fuzzy function wrapper to popen("sendmail"). The gory details can be found at http://cvs.php.net/co.php/php4/ext/standard/mail.c?r=1.44. -Original Message- From: Web user [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 8:4

RE: [PHP] Debugging aids (after the style of: Error management)

2001-10-26 Thread Chris Bailey
Sounds like getting a stack trace in various other languages. I know that Komodo and I think maybe a couple others has a built in debugger. It may (or may not) show you a stack trace/call trace display. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26

RE: [PHP] php/Oracle db connection

2001-10-26 Thread Andrew Hill
Toni, You need to enter a string of the syntax: DSN=[name of your dsn] Since nothing shows up with a "?" I bet you haven't set your ODBCINI environment variables. Running the openlink.sh against the current shell should do this: . openlink.sh If you are doing it by hand, you need to set: ODBCI

Re: [PHP] free php web hosting

2001-10-26 Thread Frewuill Rodriguez
www.f2s.com sometimes it's a little slow but u have php+mysql - Original Message - From: "Kamran H. Hassan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 11:20 AM Subject: [PHP] free php web hosting Hi, can any body know about free php & mysql free web host

Re: [PHP] Arrays

2001-10-26 Thread Ashley M. Kirchner
Brad Hubbard wrote: > // Suck 'em in > > $site = array ( > "section1" => 007, > "section2" => 11, > "section3" => 57.5, > "section4" => 12, > "section10" => 1 > ); Okay, this answer the f

[PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Web user
What's the difference between mail() in PHP and sendmail? Thanks! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: tail a file

2001-10-26 Thread Mark
better yet, just use backticks: On Fri, 26 Oct 2001 16:13:31 +0200, _lallous wrote: >to tail a file use the "+" flag when opening that log file, >and write a simple PHP script that spits that file to you, ie: >showlog.php >readfile('logfile.txt'); >?> >"Yamin Prabudy" <[EMAIL PROTECTED]> wrote i

[PHP] Problem handling the %00 Character

2001-10-26 Thread Andrew Cowles
Hi Guys (and Gals), I'm having a little difficulty at the moment. I have a script where users can input HEX encoded data via a form. This data is being received by my script but is terminated at the first occurance of %00. For example; %01%24%84%00%01%02 becomes; %01%24%84 Does anybody know

[PHP] free php web hosting

2001-10-26 Thread Kamran H. Hassan
Hi, can any body know about free php & mysql free web hosting service provder ? i will be greatful if u let me know Kamran H. Hassan

RE: [PHP] php/Oracle db connection

2001-10-26 Thread toni baker
When I run odbctest I get the following prompt: OpenLink ODBC Demonstration program This program shows an interactive SQL processor Enter ODBC connect string (? shows list): ? DSN| Description --- Enter ODB

RE: [PHP] php code to fax

2001-10-26 Thread Chris Carbaugh
I have finally uploaded a tar ball to the phpfax.sourceforge.net website. All the code is there, but it will take a good bit of work to get the whole thing working. Those who have shown interest in the project will probably just be interested in parts of the code for there own projects. If you

Re: [PHP] editor for working with php

2001-10-26 Thread Pavel Jartsev
Ray Todd Stevens wrote: > I ahve been using go-live (4.0) to edit pages containing php scripts. > this is not really working well. Is there a better way or a better editor > to use for this? Try SciTE: http://www.scintilla.org/ -- Pavel a.k.a. Papi -- PHP General Mailing List (http:/

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

2001-10-26 Thread Patrick Dunford
I have a script (let's call it a.php3) that brings in another script b.php3 with the include or require call. In script b.php3 there is an include or require call to bring in script c.php3. Script a.php3 after making one and only one include (the include is not repeated anywhere in a.php3) then

RE: [PHP] Microsoft Access

2001-10-26 Thread Andrew Hill
Alex, You can access MS Access via ODBC, but you do need a Windows box (and Access) to serve the .mbd file. It's possible to connect from BSD to Windows using ODBC - OpenLink's Multi-Tier drivers can affect this connection for you, and can be downloaded for free. Let me know if you need any assi

[PHP] php-mysql question

2001-10-26 Thread Gerard Onorato
Hello, I am a recent return to the list. Wow has the traffic grown! This is awesome. I have a couple of questions and one may be a RTFM but I can't find the answer. #1) While I thought I was extremely familiar with the MYSQL functions available in PHP I found on e in a code snippet that I have

Re: [PHP] String breaking up

2001-10-26 Thread
From: Dan McCullough <[EMAIL PROTECTED]> Date: Fri, Oct 26, 2001 at 06:03:00AM -0700 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] String breaking up > I was looking to take a string like Dan and return it like > D > A > N > > is it the str function that does that > > = > Dan McCullough

Re: [PHP] String breaking up

2001-10-26 Thread Dan McCullough
This only returns the first letter? --- _lallous <[EMAIL PROTECTED]> wrote: > $string = "hey there!"; > > $out = ''; > for ($i=0; $i$out .= strtoupper($string[$i]) . "\n"; // or if output is to > browser > } > echo $out; > > "Richard Baskett" <[EMAIL PROTECTED]> wrote in message > [EMAIL

RE: [PHP] splitting up search results, need som ideas. have done < 1 2 3 4 5 6 7 8 9 10 11 12 > stuff ..

2001-10-26 Thread Polleunus Pascal
Hi, I'm currently working on something like that. I had already done this but I need to find the file! I don't have time right now but I'll send you another email later :o) What do you think about using a form: input for max rows and drop-down for the 1 2 3... (for example: max rows=10; drop-dow

Re: [PHP] PHP->ASP

2001-10-26 Thread MrBaseball34
In article <023601c15de3$c05d8bc0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Is the PHP code you provided below working, I need something like than and i > wonder if i could use it. > NOBBY Actually, right now I'm using some code stripped from the PHP-Nuke Weather add-on. But it gets its

[PHP] Re: tail a file

2001-10-26 Thread _lallous
to tail a file use the "+" flag when opening that log file, and write a simple PHP script that spits that file to you, ie: showlog.php "Yamin Prabudy" <[EMAIL PROTECTED]> wrote in message 003901c15de4$82f0cb70$fe2796ca@dusak">news:003901c15de4$82f0cb70$fe2796ca@dusak... > Hi there I need help her

Re: [PHP] String breaking up

2001-10-26 Thread _lallous
$string = "hey there!"; $out = ''; for ($i=0; $i if output is to browser } echo $out; "Richard Baskett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Strings are arrays, so you can print out a string by doing something like > this: > > $string = "hey ther

RE: [PHP] String breaking up

2001-10-26 Thread Kees Hoekzema
> Strings are arrays, so you can print out a string by doing something like > this: Yups, this is possible, but i think he wants to have a newline for each character, you can doe this excelent with a small addition to your example: > $string = "hey there!"; > > for ($i=0; $i echo strtoupper($st

Re: [PHP] String breaking up

2001-10-26 Thread Richard Baskett
To be more precise add the at the end of the line between the for loop: Strings are arrays, so you can print out a string by doing something like this: $string = "hey there!"; for ($i=0; $i'; } That's about all there is to it! :) Use the strtoupper() function if you mean to have everything u

Re: [PHP] String breaking up

2001-10-26 Thread Richard Baskett
Strings are arrays, so you can print out a string by doing something like this: $string = "hey there!"; for ($i=0; $i I was looking to take a string like Dan and return it like > D > A > N > > is it the str function that does that > > = > Dan McCullough > --

[PHP] Breaking a string

2001-10-26 Thread Dan McCullough
I was looking to take a string like Dan or Dan is great and return it like D a n or D a n i s g r e a t is it the str function that does that and if so does someone have an example? thanks = Dan McCullough --- "Theres no

  1   2   >