Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-14 Thread Kevin Stone
in the GET string. This var refers to the next start row in your database. header(location:http://www.mydomain.com/myscript.php?row=$row;). Include an if() statement somewhere in there to break from the loop when you've reached the end of your database. Doable? -Kevin Stone On Thu, 2001-12-13 at 23:13

Re: [PHP] Miscount

2001-12-14 Thread Kevin Stone
I do not know if this will solve your problem but you should enclose each logical query segment with parenthesies... $shot_counts = SELECT COUNT(*) FROM statistik WHERE (shooter='$shooter_login' shot_one = '$t') || (shooter='$shooter_login' shot_two = '$t') || (shooter='$shooter_login'

Re: [PHP] Re: Returning html code-PROB SOLVED

2001-12-17 Thread Kevin Stone
Ahh.. I was about to reply but nevermind. The two functions you're talking about are addslashes() and stripslashes(). Yes those are very handy. :) snip Does anyone know of an easy way to store html code in a mysql database, and then retreive it, in such a way that it can display the

Re: [PHP] Need another verse

2001-12-20 Thread Kevin Stone
Okay you need to interject some emotion into your song... try something like... Now PERL's been sending emails, She sais she's feeling jealousy, Because I have a new friend, PHP -Kevin - Original Message - From: bill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 20,

Re: [PHP] easy quickie..

2002-01-02 Thread Kevin Stone
Seb, I tend to agree that some webmasters would do better if they did less and tried not to be so helpful to the user. But custom back buttons can be very useful when used in presentations such as page by page instructions and slideshows without having to hardcode the HTML which (if you forgive

Re: [PHP] array_multisort?

2002-01-02 Thread Kevin Stone
Unless your problem is more extensive than what you're explaining here, there's no reason to do any kind of sort. Simply reorder the list yourself so that whatever ends up in $title is reordered to the first index of your $shop list... $product = array ($id, $title, $price); $shop = array

Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread Kevin Stone
SPLIT to the rescue! Split tears up your string into lists (arrays) which you can cycle through and extract normaly. So this is going to look like hell but here we go... ? $str = a href=http://foo.barbtest/b/a; $str_list1 = split ('', $str); // Note: $str_list1 now == array (a

Re: [PHP] pass variable from php script to another php script

2002-01-04 Thread Kevin Stone
It all depends on how you're calling the script. Obviously these variables are not system globals. So if the mail.php script is being accessed separately from the upload.php script they will not share variables. However if you include(mail.php); from within upload.php, then it automaticaly

Re: [PHP] problem reading sessions

2002-01-04 Thread Kevin Stone
I'll add if you do not have register_globals set then you can access the variable by its long name, $HTTP_SESSION_VARS[blah]. -Kevin Is register_globals set to 'on' in php.ini? It needs to be for this coding style to work. Kirk -Original Message- From: Alastair [mailto:[EMAIL

Re: [PHP] global generation

2002-01-07 Thread Kevin Stone
Wait until after the for loop has completed. for ($i=0; $i $num_results; $i++) { $variable[$i]; } global $variable; I need to call a generated variable global w/i a function but the following doesn't work: for ($i=0; $i $num_results; $i++) { global $variable[$i]; } I am trying to

Re: [PHP] Form Question

2002-01-10 Thread Kevin Stone
IE5.5 actualy has a bug that will not cache certain form fields under certain conditions. There are other situations in which a browser won't cache the information at all. So it's best to do this within the script by either printing the form from within the script its self, or include() the

Re: [PHP] does this work?

2002-01-10 Thread Kevin Stone
Hmm I believe that the mysql_query() function requires quotes around the query statement even it it is being passed as a variable.. mysql_query($tempsql, $db); -Kevin It seems that I have a parse error somewhere in the following code (since that's the only code in my script, it's a test

[PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-29 Thread Kevin Stone
with some Javascript of course eval() won't work on the string. Did I paint myself into a corner here? Or is there a way out that I just don't see. Thanks, Kevin Stone [EMAIL PROTECTED] www.helpelf.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] Re: Getting an include file into a string after PHP evaluates the vars?

2002-01-30 Thread Kevin Stone
ob_get_contents() appears to be exactly what I needed. Thanks for putting me on the right track! :) -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 6:49 PM To: [EMAIL PROTECTED] Subject

RE: [PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-30 Thread Kevin Stone
? tags within the HTML template. I must say this is a very cool set of functions. Thanks for the tip! -- Kevin Stone [EMAIL PROTECTED] -Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 6:42 PM To: Kevin Stone; [EMAIL PROTECTED] Subject

RE: [PHP] Session Help

2002-01-30 Thread Kevin Stone
: public); That will the trick. Actually it may work too well but at least your visitors won't get discouraged by that annoying message. -- Kevin Stone [EMAIL PROTECTED] -Original Message- From: Michael: Dave II, Electric Boogaloo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002

RE: [PHP] Pregenerating Script

2002-01-31 Thread Kevin Stone
); include(header.html); include(footer.html); ob_flush(); Yes I believe it really is that simple. :) Will only work with the most recent versions of PHP but I hope it helps. Good luck. -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: karthikeyan [mailto

RE: [PHP] Associative arrays... help

2002-02-01 Thread Kevin Stone
; } } Unless you're going to access the list arrays by title (ie $applist[URL]) then there really isn't a point in using the associative array. Just put everything into a 2D list array and access them with a double for() loop. Hope this points you in the right direction. -- Kevin Stone [EMAIL

RE: [PHP] Books on PHP

2002-02-05 Thread Kevin Stone
into theory or advanced topics making it a terrible book for the experienced programmer. It is also not a good function reference. But far as reference goes, I say forget the books. Nothing can beat the function search at www.php.net. -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original

RE: [PHP] Formatting a MYSQL time

2002-02-07 Thread Kevin Stone
= mktime($hour, $min, $sec, $month, $day, $year); Hope this helps some. -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: Frank Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 10:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Formatting a MYSQL time

RE: [PHP] Formatting a MYSQL time

2002-02-07 Thread Kevin Stone
Ah.. much appreciated. :) -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars Torben Wilson Sent: Thursday, February 07, 2002 12:43 PM To: Kevin Stone Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Formatting a MYSQL time On Thu, 2002-02-07 at 10

RE: [PHP] PHP not parsed in HTML

2002-02-12 Thread Kevin Stone
solution or one specific to their servers. But it works well and is search engine friendly. I don't see any degradation in speed as a result of it. -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]] Sent: Tuesday

[PHP] Limiting use on public scripts.

2002-02-12 Thread Kevin Stone
, links, tutorials, books.. any information will be appreciated. Thanks! -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com http://www.helpelf.com/

[PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Kevin Stone
. This is obviously rare question because I can't find any references on this list or on Usenet. Is there a trick to this? Or is it simply not possible. Much Thanks, Kevin Stone [EMAIL PROTECTED]

RE: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Kevin Stone
Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 1:38 PM To: 'Kevin Stone' Subject: RE: [PHP] Anyway to open a PHP file and view its code in the browser? Rename the file you want to display as PHP code to .phps (php source

RE: [PHP] Anyway to open a PHP file and view its code in thebrowser?

2002-02-14 Thread Kevin Stone
/textarea; ? -- This works.. pa href=peekaboo.php?script=myscript.phpView Source for Myscript.php/a This doesn't work.. pa href=peekaboo.php?script=http://www.mydomain/myscript.php;View Source for Myscript.php/a Thanks for your help. It's always the little things that'll get ya. :) -- Kevin Stone

RE: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Kevin Stone
[EMAIL PROTECTED] then do a symbolic link On Thursday 14 February 2002 22:34, Kevin Stone wrote: I'm glad you posted this. It's great to know. Unfortunately it's not what I need to do. I'm uploading and updating my scripts all the time. So I need to offer code views of *active* scripts

RE: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Kevin Stone
Thanks for proving the point. It's like I said. No one is willing to explain what symbolic links are. -Kevin -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:41 AM To: Kevin Stone Subject: Re: [PHP] Anyway to open a PHP file

RE: [PHP] question

2002-02-20 Thread Kevin Stone
I'm not sure from your question whether or you understand that the PHP printer functions only work with printers connected directly to the server. They're not for client side printing. And there are no equivalent functions for non-Windows platforms. However I do recall coming across a

RE: [PHP] Creating a global variable for all PHP pages?

2002-02-21 Thread Kevin Stone
I don't know why you would need to do this in the PHP installation. I just create a globals.php file (call it what you like) that contains all of my multi-script variables. Then I include the file into each script as needed. The file contains CSS pointers, database functions, and anything else

RE: [PHP] PRE-formated text into DATABASE

2002-02-22 Thread Kevin Stone
The function, nl2br() swaps end-line characters for HTML br tags. This is usually adequate for this situation. Though the default end-line character (\n or \r) can differ between operating systems, I have yet to experience a major problem. -Kevin -Original Message- From: Dani

RE: [PHP] Using sessions

2002-02-25 Thread Kevin Stone
Just a guess but would using session_register(myvar); instead of registering directly to the global list make any difference? -Original Message- From: Joel Alexandre [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 9:39 AM To: Lista de PHP Subject: [PHP] Using sessions i'm

RE: [PHP] Prepending string to TOP of files?

2002-02-26 Thread Kevin Stone
I don't think there is a way to do it automatically. Just read the file into a variable, prepend the new line string, and rewrite the file. -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 3:41 PM To: PHP General Subject: [PHP]

[PHP] Search Engine risk using $HTTP_HOST?

2002-02-26 Thread Kevin Stone
/index.html)} ? Just making sure! :-) Thanks, Kevin Stone [EMAIL PROTECTED]

RE: [PHP] REG_ECTYPE warning and eregi??

2002-02-27 Thread Kevin Stone
I didn't get a REG_ECTYPE warning but I did get a REG_PAREN type warning. The curly bracket '}' near the '$' should be an close parentheses ')'. :) -Kevin -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 3:33 PM To: [EMAIL PROTECTED]

RE: [PHP] passing array of variables in a query string

2002-03-01 Thread Kevin Stone
To form an array of values in the GET string append brackets to the end of each variable name... http://www.archipro.com/test.php?state[]=ABstate[]=BC for($i=0; $icount($state); $i++) { echo $state . br; } Result: AB BC Hope this helps. :) -Kevin -Original Message- From:

RE: [PHP] Form element names as array

2002-03-04 Thread Kevin Stone
One suggestion may be to use two radio buttons in place of one check box so the true and false values are sent regardless of which is chosen. -Kevin -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:28 PM To: 'Chris Boget'; PHP General

Re: [PHP] case insenstive

2002-03-04 Thread Kevin Stone
Use strtolower() or strtoupper() to change the case of a string. And yes doing the same thing twice in the same statement is overkill! :) if((substr(strtolower($author), 0, 1) == a) || (substr(strtolower($author), 0, 1) == a)){} - Original Message - From: jtjohnston [EMAIL PROTECTED]

RE: [PHP] Verify script location...

2002-03-05 Thread Kevin Stone
It's not possible to include() a remote file so there may be little point to this. However maybe you want to keep users on your system from including the file in their scripts. In that case I suppose you could set $PHP_SELF (of the main script) to a temporary variable for checking in the

RE: [PHP] Re: User accounts

2002-03-07 Thread Kevin Stone
I understand your confusion. The thing is that empty() and ! are two completely different arguments. if(empty($var)) is looking for: $var = ''; if(!$var) is looking for: $var = false; or $var = 0; If $var is set to anything other than 0 or false then the ASCII value of the string is (by

RE: [PHP] using ahref tag in $msg variable

2002-03-11 Thread Kevin Stone
If you want to use HTML tags in your email you can add to $mailheaders .= Content-type: text/html\n; -Kevin -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] using ahref tag in $msg variable On

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Kevin Stone
If you only have a web account you can download the .htaccess file from your home directory and add the following lines. Whether this will work or not may depend on your host. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm -Original Message- From: Lic.

[PHP] Auto POST with redirect?

2002-03-12 Thread Kevin Stone
What I'm trying to do is create a multi-user information gathering system similar to Moreover.com's news gathering system (just much simpler and not as dynamic). A JavaScript auto submits to a remote PHP script. The PHP script grabs the info from the database then generates its own JavaScript

[PHP] Increment a value in a MySQL database with one query?

2002-03-16 Thread Kevin Stone
Is there a MySQL function that I can use to increment the integer value of a row entry with one query? Here's the combined PHP and SQL in psuedo code form... UPDATE mytable SET myval++ Something like that. So I dont have to pull the value from the database, increment it, then post it back to

RE: [PHP] Mac Classic and PHP...

2002-03-18 Thread Kevin Stone
Unfortunately PHP was never developed for MacOS 9 so there is no option there. The only option is to switch to MacOSX (which I highly recommend) or migrate to XP (which is a mess but works). -Kevin -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Kevin Stone
Not entirely true. Javascript is directly linked to HTML and HTML is directly linked to PHP so you can have PHP talk to Javascript through HTML. So here's a very simple example of a Javascript and PHP script (on separate servers) talking to one other...

[PHP] Return the column names of MySQL table?

2002-03-19 Thread Kevin Stone
Forgive me for the off topic question. This is a MySQL question.. has nothing to do with PHP directly. However I was not able to find an answer in the MySQL documentation, on Usenet, or the MySQL mailing list archives. Also MySQL.com's mail manager is on the fritz so I can't even subscribe to

RE: [PHP] Re: Return the column names of MySQL table?

2002-03-19 Thread Kevin Stone
data to increment through. The function returns this and only this. Am I using it wrong? Thanks, Kevin -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:02 PM To: Geoff Hankerson Cc: Kevin Stone; [EMAIL PROTECTED] Subject: [PHP] Re

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
script. -Kevin -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:27 PM To: Kevin Stone Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Calling Javascript-function from php-script ... Ā»Kevin StoneĀ« sagte am 2002-03-19 um 14:11:42 -0700 : Not entirely

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
scripts, because we could be talking about any two interpreted languages). *phew* Are we done yet? I really need to get back to work. LOL :D -Kevin -Original Message- From: Andrew Lopucki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 10:51 AM To: Kevin Stone; [EMAIL PROTECTED

RE: [PHP] Multipage form

2002-03-20 Thread Kevin Stone
I find sessions to be the best solution in these situations. I like to compile the problem into a single multi-dimensional array of pages and form inputs such as.. $forms = array ( 'contact' = array ($company, $name, $email, $addr, $phone), 'creditcard' = array ($full_name, $num, $type,

RE: [PHP] Sessions

2002-03-20 Thread Kevin Stone
on line 10? Curious, you don't even have 10 lines there. Do you have lines above the PHP tag ?. The ? Must start the first character on the first line of the page otherwise the browser will interpret it as either Content-type: text/plain or Content-type: text/html and give you a headers

RE: [PHP] Fwd: html form select list selected

2002-03-20 Thread Kevin Stone
The contents of $display are a string so you must have quotes aroud it in the comparison statement. if ($display == 'false') // should work. Alternatively you could do. select name=display option value=0True option value=1False /select Now the contents of $display is an integer which will can

RE: [PHP] something weird is going on...

2002-03-20 Thread Kevin Stone
Could be a browser cache issue. Open just the image in the browser (http://kulchitski.com/problem/images/bottomcell_bg.gif) and hit Ctrl+Refresh. Go back to the page and see if it doesn't show up. Attractive looking page by the way. :) -Kevin -Original Message- From: Vlad Kulchitski

RE: [PHP] [Newman] updating a mysql record if IP # is the same.

2002-03-20 Thread Kevin Stone
A number of problems. First and foremost you're extracting multiple rows from the database table are you not? Therefore you must increment through them in some way. I like to embed my mysql_fetch_xxx() functions in a while() loop. --- while ($row =

RE: [PHP] Assignment operator proposal

2002-03-20 Thread Kevin Stone
There seems to be a parse error in your code. The words Python and enthusiast can not exist together in the same substr. This will result in the LMAO error you've been receiving. :) -Kevin -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20,

RE: [PHP] PHP/mySQL hosting

2002-03-21 Thread Kevin Stone
Pickings are slim but you can have a look here: http://www.alt-php-faq.org/links.html See hosting. Good luck. -Kevin -Original Message- From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:17 PM To: PHP Subject: [PHP] PHP/mySQL hosting Does anyone

RE: [PHP] echo and Session Variables

2002-03-21 Thread Kevin Stone
The single quotes in $_SESSION['myvar'] are not necessary. You're reading an associative array in which a string is acting as a pointer to the index. Example.. $myarray = array ('myvar' = 'myvalue'); echo $myarray[myvar]; // prints out 'myvalue' -Kevin -Original Message- From: David

RE: [PHP] Calling a javascript function?

2002-03-21 Thread Kevin Stone
We recently went into lengthy discussion about this. No there is no a way to call a Javascript function from PHP. But you CAN send a Javascript the input it needs to decide which function to use. You can either have the PHP script generate the Javascript dynamically. Or if you need to run a

RE: [PHP] Re: Calling a javascript function?

2002-03-21 Thread Kevin Stone
In this case you're talking about building the Javascript dynamically. Example.. --- html head script language=javascript function echoPHPOut(out) { document.write(out); } /script /head ?php $true = true; if ($true) { $out = 'blah blah';

RE: [PHP] Weird error...

2002-03-22 Thread Kevin Stone
I notice you're incrementing the row offset. You shouldn't use mysql_result() to extract multiple fields like that. It will be much faster using mysql_fetch_array() once and then extracting any data you need from the resulting associative array as many times as you need. Mysql_result() is

RE: [PHP] Weird error...

2002-03-22 Thread Kevin Stone
DOH!!! I didn't mean to email the first part of my response below. I wrote it and then realized that I was mistaken. I thought I'd erased it. It is perfectly valid to do what you want with mysql_result(); :) -Kevin -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED

RE: [PHP] FAQ

2002-03-22 Thread Kevin Stone
Too often novices are expected to know how to find this information by mental telepathy because they either don't know the keywords to search for or don't realize that certain common resources exist. If the list administrators would simply compile a short email containing FAQ and RESOURCE links

[PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Kevin Stone
Anyone run into this problem before? I've got a simple email parser that I've set up for our clients to access from their websites. It just uses the simple mail() function to send the parsed HTML to their account. The mail() function is returning TRUE but the email no email is being received.

RE: [PHP] Loading Images

2002-03-26 Thread Kevin Stone
It is quite easy to store images in a database and display them on the screen. You can find tutorials about this online (sorry I don't have any direct links). There are also numerous FREE scripts pre-written that you can integrate into your site, or use to learn how to do this yourself. There

RE: [PHP] Loading Images

2002-03-28 Thread Kevin Stone
, which (for me) prevents me from selecting text + images from below. Although I don't know how reliable this is. Justin French - http://indent.com.au http://soundpimps.com - on 27/03/02 10:16 AM, Kevin Stone ([EMAIL PROTECTED]) wrote: It is quite

[PHP] Help sending a Plain Text email Attatchment

2002-03-28 Thread Kevin Stone
will be greatly appreciated. -- Kevin Stone [EMAIL PROTECTED] //-- - // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = ==Multipart_Boundary_x{$semi_rand}x

RE: [PHP] best way to read a file

2002-03-28 Thread Kevin Stone
Actually if you have output buffering active then the easiest hassle free way to read a file into a variable is like this.. ? ob_start(); readfile($url, 1); $file = ob_get_contents(); ob_end_clean(); echo $file; ? Pretty cool eh? Hope that helps. -- Kevin Stone [EMAIL PROTECTED

RE: [PHP] A Calendar type thingy

2002-03-29 Thread Kevin Stone
Perhaps simply store a standard English date as the index for a single table (ie. 032902 or 03/29/02) along with a `time` and `comments` field. Use PHP's extensive library of built-in date/time functions to translate the date to timestamp and vice versa. --- CREATE TABLE

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Kevin Stone
I have found it safer to use backticks on all of my table and field names. I doubt that's the problem but it's a good practice and something to try anyway. INSERT INTO `tblUserInfo` (`UserID`, `Complex`, `Contact`,.. etc.. By the way what are those complicated looking '.$var.' for? You should

RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Kevin Stone
I wholeheartedly disagree. I belong to an emailing list that requires specific headers and it is a pain. It costs me nothing to ignore a post. But it costs me 5 minutes to format my headers correctly. You really want to reduce frivolous posts on this list? Do as I said before. Send an

RE: [PHP] configuration problem?

2002-04-04 Thread Kevin Stone
I believe include() will only work if the CGI script is written in PHP. You should be able to extract the results of a foreign script by running passthru() or system(). For example if I wanted to print out a listing of all the files in a directory. ? // Command to print out my public html

RE: [PHP] configuration problem?

2002-04-04 Thread Kevin Stone
-Original Message- From: Boris Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 12:53 PM To: Kevin Stone; [EMAIL PROTECTED] Subject: RE: [PHP] configuration problem? thanks for the response. i have no problem executing a simple perl script using passthru() or system

RE: [PHP] PHP books

2002-04-05 Thread Kevin Stone
Ditto on that one Adam. PHP And MySQL Web Development comes highly recommended. Big book lots of content. Real world working examples. Very well written. You will break the binding on this book I guarantee it. ;) -Kevin -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED]]

RE: [PHP] PHP Clock

2002-04-05 Thread Kevin Stone
If you want a real time clock you're going to have to do it in Javascript. If you just want the page to display the current time/date then look up the date() function on php.net -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:53 PM

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Kevin Stone
Try select name=files[] The square brackets will allow you to capture selections from multiple lists in an indexed array, $files. Hope that does what you need. -Kevin The square brackets will allow you to capture the variable $file_name -Original Message- From: Jas [mailto:[EMAIL

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Kevin Stone
I thought I'd already answered this question but maybe you missed it. No you cannot create an array based on 12 forms. But you CAN create an array based on 12 form inputs. For example.. form method=post action=script.php select name=files[] option value=image1.jpgimage1.jpg/option option

Re: [PHP] HELP! Errors!

2002-04-08 Thread Kevin Stone
Bad file descriptor = invliad pointer = your file doesn't exist. - Original Message - From: Georgie Casey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 1:27 PM Subject: [PHP] HELP! Errors! my host returns this err message when i try to open a page on another

Re: [PHP] Image Question

2002-04-08 Thread Kevin Stone
Could it be you're unwittingly converting the graphic into 8bit color? That's certainly what it looks like. I've read that older versions of PHP and GD library don't always translate color depth. I don't have much experience programming graphics in PHP but I thought I'd offer up this

[PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
Here's a crazy question. Say I have a script (such as a bulliten board script) that is run by many clients (other websites) off of one location on my web account. Think of it as a service of some kind. Is there anyway to trick the browser into displaying the client's domain rather than my

Re: [PHP] Manipulate the address field in the browser?

2002-04-09 Thread Kevin Stone
: Maxim Maletsky [EMAIL PROTECTED] To: 'Kevin Stone' [EMAIL PROTECTED]; 'PHP-general' [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 3:55 PM Subject: RE: [PHP] Manipulate the address field in the browser? Use include(). Except, for the fact that, this will be: include(http://www.yourBB.com

Re: [PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread Kevin Stone
This is a terribly inneficient way of handling your situation but I believe it would work. // First we're going to make a list of all company values for($i=0; $icount($myarray); $i++) { $company_values[] = $myarray[$i][company]; } // Then we're going to order the array using a standard

Re: [PHP] PHP as HTML

2002-06-04 Thread Kevin Stone
AddType application/x-httpd-php .html AddType application/x-httpd-php .htm - Original Message - From: Tom Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 2:41 PM Subject: [PHP] PHP as HTML Hey there- I'm trying to use an .htaccess file to parse .php files as

Fw: [PHP] [PLEASE HELP] Passing variable to new page.

2002-06-06 Thread Kevin Stone
Question.. why are you opening up a full sized new window with the javascript popup script? I susspect the problem has something to do with the javascript, although I'm not going to take the time to test it myself. You can open a new page in an HTML link by setting target=new. You shouldn't

Re: [PHP] Download Page?

2002-06-06 Thread Kevin Stone
Common question becuase of it's somewhat unintuitive nature, but it is very simple. Do a search for keywords header and Content-disposition. That should reveal what you want. Good luck. -Kevin - Original Message - From: Nick Richardson [EMAIL PROTECTED] To: PHP General [EMAIL

Re: [PHP] multi-line textfields don't post

2002-06-10 Thread Kevin Stone
By multi-line text field do you mean a textarea field? Could be you're not using it right. Remeber this construct *requires* the closing tag. The vlaue goes between the two tags. textarea name=text cols=15 rows=5/textarea ? echo $_POST['text']; ? - Original Message - From: Phil

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
What kind of an error are you recieving? Could it be you're sending output prior to the header function? The alternative solution would be to include(file_exists.php); then exit. -Kevin - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
The only thing I can think of is that you have a syntax error in the header. -Kevin - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:43 PM Subject: Re: [PHP] Help with header function I don't get an error message...but the

Re: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
there is a syntax error within his header text.. just not the one you thought it was. Why do I get the feeling I'm playing that mind bender game where you have to guess the right combination within so many turns? LOL -Kevin - Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: 'Kevin

Re: [PHP] Question about tag ??

2002-06-11 Thread Kevin Stone
The only way to execute code stored in a varaible (string) is to send it to the eval() function. Assuming you're not doing this then you're perfectly safe. Learn more about the eval function.. http://www.php.net/manual/en/function.eval.php -Kevin - Original Message - From: Nightshade

Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone
Doug, it seems to work fine here. So long as the remote server has PHP installed (which it looks like they do) then include() should work the same as a local file. Could it be a configuration issue perhaps? Test: http://www.helpelf.com/test/test.php Code: http://www.helpelf.com/test/test.phps

Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone
Doh! Sorry, Natalie not Doug, and I'm glad to see you got it working. -Kevin - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: Doug DeVries [EMAIL PROTECTED]; Leotta, Natalie (NCI/IMS) [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 11:59 AM Subject: Re

Fw: [PHP] Array into database

2002-06-11 Thread Kevin Stone
Not directly no. You can serialize the array and store it in a single text field. Or, if this array contrains data that you'll be retrieving often then you can construct a table and store each array element in a new row. -Kevin - Original Message - From: Leon Mergen [EMAIL PROTECTED]

Fw: [PHP] Array into database

2002-06-11 Thread Kevin Stone
Yes I believe serialize will work with any array. When you extract it from the database simply do $array = unserialize($str) to rebuild the array. -Kevin - Original Message - From: Leon Mergen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 3:59 PM Subject: Re:

Re: [PHP] Emptying a Single Array Value

2002-06-12 Thread Kevin Stone
$nums = array ('one', 'two', 'three'); $nums = remove_array_element($nums, 1); function remove_array_element($array, $index) { unset($array[$i]); // Unset selected index return array_values($array); // Return reindexed array } P.S. The empty() function returns true or false depending

Re: [PHP] Chaching issues

2002-06-13 Thread Kevin Stone
Yes it is possible. A good suggestion is to tell the browser not to cache PHP output by sending the following headers.. header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); You can also set these headers via META tags in your HTML. You'll have

Re: [PHP] GD Questions: Please help.

2002-06-13 Thread Kevin Stone
Shane, absolutely you can mix HTML and dynamically generated images. You'll actually call the image in passively via an img tag like this... img src=getimage.php getimage.php will echo the appropriate image header (Content-type: image/png or whatever) plus your image grabbing/generating code

Re: Re[2]: [PHP] sessions help

2002-06-13 Thread Kevin Stone
Your problem is here.. return ($_SESSION['node'] = $node_id); I do not believe that you can both set and return a varaible on the same line. FYI, the variable which you're returning in this function is global.. so there's no reason to return it anyway. Just fill the index and

Re: [PHP] Code Improvement

2002-06-13 Thread Kevin Stone
Though your code isn't the cleanest I've seen I don't think there is anything inherently wrong with your proceedure. You're just displaying a LOT of information. And more importantly you're displaying this in a browser with HTML tables. I'd put a timer on your code to see how much time the

Re: Re[3]: [PHP] sessions help

2002-06-13 Thread Kevin Stone
Hmm. Okay. Replace $_SESSION with $HTTP_SESSION_VARS and see if that works. -Kevin - Original Message - From: Leston Drake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 4:07 PM Subject: Re[3]: [PHP] sessions help I've stripped the code down to barest bones to

  1   2   3   4   5   6   >