RE: [PHP] Why does this happen?

2003-02-08 Thread John W. Holmes
to happen? If you have this in PHP: $date = 1; $date = 2; $date = 3; What value do you think $date has now?? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net

RE: [PHP] any windows php developers out here?

2003-02-08 Thread John W. Holmes
it... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] incromenting $counter in a whloop

2003-02-08 Thread John W. Holmes
was wondering how you would incroment $counter in a while loop.. i want to print it out next to each record for a record counter on a web page... while(whatever) { $counter++; echo You are on loop #$counter; } ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals

RE: [PHP] any windows php developers out here?

2003-02-10 Thread John W. Holmes
\php4isapi.dll 9. Start up IIS (net start w3svc) That's it... ---John W. Holmes... You are the best! Thanks, BTW who is in charge of the PHP installation documentation, I would like to slap them in the face with these instructions. I know that IIS setup is not their domain but they are responsible

RE: [PHP] Sessions Timing Out Too Often

2003-02-18 Thread John W. Holmes
the session.gc_maxlifetime in php.ini to a larger value. That is the number of seconds after which inactive session files will be seen as garbage. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List

RE: [PHP] mysql select and date functions

2003-02-18 Thread John W. Holmes
() (The MySQL manual.) ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_replace

2003-02-18 Thread John W. Holmes
); return $player; } You have a $1, which is not valid unless it's inside a replacement string. It's not where you have it. Anyway, you need an 'e' modifier to make this work. Use these two lines: $pattern = /\^(\d)/e; $replacement = '$color[$1]'; ---John W. Holmes... PHP Architect - A monthly

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: At 13:16 20.02.2003, Tom Rogers said: [snip] Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's

Re: [PHP] Encrypted URL links?

2003-02-20 Thread 1LT John W. Holmes
I have a site that sells software and wants to have downloadable purchases. Is there a way to encrypt a URL that will still work when clicked on, BUT not show the customer where the file actually resides? Is it also possible to have it expire after a given amount of time? Sure, just have a

Re: [PHP] define(DOC_HOME_PATH, what goes here)

2003-02-20 Thread 1LT John W. Holmes
define (DOC_HOME_PATH, http://localhost/killerspin/web/store/;); define (IMG_HOME_PATH, http://localhost/killerspin/web/images/;); define (CTL_HOME_PATH, http://localhost/killerspin/web/control/;); img src=? echo IMG_HOME_PATH ?stuff/image.jpg a href=? echo DOC_HOME_PATH ?stuff/index.jspClick

Re: [PHP] Test

2003-02-20 Thread 1LT John W. Holmes
This is a test message. I sent a real message last night and apparently it didn't make it to the server. So this is not a real message? Do I exist? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

Re: [PHP] Splitting Article Into Multiple Pages

2003-02-20 Thread 1LT John W. Holmes
If you use the pagebreak method, you could use: $part = explode(pagebreak,$text); to break apart the essay. Then echo $part[0] for page 1, $part[1] for page 2, etc... I'm sure there are other ways. ---John Holmes... - Original Message - From: Alan McCoy [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] List folder contents with links?

2003-02-20 Thread 1LT John W. Holmes
Is it possible to display the contents of a given folder, list them , and make them links? Yes. ---John Holmes... PS: www.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Cannot add header information

2003-02-20 Thread John W. Holmes
ob_end_flush(); and get no errors !!! Indeed... work around the problem instead of solving it... no need for fundamentals... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http

RE: [PHP] simple ereg question

2003-02-20 Thread John W. Holmes
data entered in grass entry field(s).); } } No matter what I put in the fields, the program dies and I get the death message. What can I do to fix this? Why not just use is_numeric() and empty()? No need for regular expressions. ---John W. Holmes... PHP Architect - A monthly magazine

RE: [PHP] Computer Authorization

2003-02-20 Thread John W. Holmes
suggestions for accomplishing this? Those are your options. Nothing is going to be 100% because anything client side can be spoofed. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http

RE: [PHP] Smarty and FAI

2003-02-20 Thread John W. Holmes
it, then no, you can't use it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] smarty vs. patTemplate vs. includes - newbie q

2003-02-20 Thread John W. Holmes
I'm designing a site with about 100 different pages. I'm debating whether to use a template mechanism such as smarty or patTemplate vs just creating pages and including the body templates based on the url parameters. I realize you get a layer of abstraction using the template mechanisms, but

Re: [PHP] list a, list b ...etc

2003-02-21 Thread 1LT John W. Holmes
how can i sort names by first letter, like, show only names starting with a, then b, c .. etc Where is the data? In an array? database? file? If it's a database, then you can just do SELECT * FROM table WHERE column LIKE 'a%' or SELECT * FROM table WHERE LEFT(column,1) = 'a' ---John

Re: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
I need web application (PHP/MySQL) for small ads (personal ads, that is advertisements to buy and sell cars, houses etc). http://www.phpwizard.net/projects/phpAds/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
Thank you for answer, but I need application for personal small ads. I am looking for application which need to show categorized personal small ads and needto allow on-line adding of personal small ads (for everyone) and and need to have some mechanism for ads administration. I do not

Re: [PHP] Php Oracle Word object

2003-02-21 Thread 1LT John W. Holmes
SELECT it out, send Word headers with header() and echo your data. ---John Holmes... - Original Message - From: M.ALPER KARASAHIN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 8:53 AM Subject: [PHP] Php Oracle Word object Hi, i want to display a blob

Re: [PHP] session expiration

2003-02-21 Thread 1LT John W. Holmes
I'm using sessions for authentication in a content management system and experiencing rare but occasional problems with the session apparently expiring unexpectedly. I've checked the manual and I've reviewed the session configuration on the commericial host I'm using. I don't see anything

Re: [PHP] function to discover if value is already in array

2003-02-21 Thread 1LT John W. Holmes
Here is an example array: array( array(1,2), array(2,3), array(3,1) ) now suppose I get some form inputs with the value 1 and 1. I am trying to find a way to figure out if the first coloumn is already in the table and if so just add the second coloumn to the

Re: [PHP] What do these errors mean?

2003-02-21 Thread 1LT John W. Holmes
I was looking through php.ini and noticed that show_error was set to Off. I turned it On, and now I see these errors on one of my pages: Notice: Use of undefined constant option - assumed 'option' in /usr/local/apache/htdocs/tyler/encodeDecode.php on line 37 Notice: Undefined index: option

Re: [PHP] Cannot find php.ini

2003-02-21 Thread 1LT John W. Holmes
I've taken over a redhat server with apache/php4.1. I need to enable register_argc_argv but I can't find the php.ini file (I've searched the entire system). Would creating a new php.ini file with only register_argc_argv line work? Where's the default location for php.ini? Load up a page

RE: [PHP] Array instead of Switch

2003-02-21 Thread John W. Holmes
to in_array will solve that. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP running on Win 2000 and IIS

2003-02-21 Thread John W. Holmes
I wish to run PHP on a Win 2000 server, MS SQL and IIS. Can someone please guide me to some place where there are some tutorials on how to install and run the above? The PHP manual has an installation channel the works. Also are there any problems by running PHp on Win 2000, MS SQL and

RE: [PHP] Re: including in shtml

2003-02-21 Thread John W. Holmes
. Is there a specific reason why you can't? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_match question: locating unmatched HTML tags

2003-02-21 Thread John W. Holmes
. This way an unmatched [b] tag won't be replaced with b and mess up your code. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Re: including in shtml

2003-02-21 Thread John W. Holmes
anyone? Do you want everyone on the list to send you a message saying they're not sure what to do?? Just be patient and if someone has an idea, they'll let you know. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com

RE: [PHP] session expiration

2003-02-21 Thread John W. Holmes
, with less than 10 people authorized to access it, so I don't see the number of session files as a problem. Have fun! ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net

RE: [PHP] Memory used by script...

2003-02-21 Thread John W. Holmes
need. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] selection in form-field

2003-02-21 Thread John W. Holmes
Client side issue. Use javascript or DHTML. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: Michiel van Heusden [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 4:47 AM

RE: [PHP] PHP running on Win 2000 and IIS

2003-02-22 Thread John W. Holmes
program, too. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] timer problem

2003-02-22 Thread John W. Holmes
on *nix, or Task Scheduler if on Windows. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with Multiple Checkboxes

2003-02-22 Thread John W. Holmes
[], not the ID. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread John W. Holmes
() and the like to do what you want. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] timer problem

2003-02-22 Thread John W. Holmes
loop and do your stuff. Not sure how that is for performance, though... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Sitewide Header Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread John W. Holmes
Hey John. Do you ever sleep? You've got a zillion posts in this news group.. Sleep is for the weak... To answer your question, it's not that I'm afraid of absolute paths, it's that I don't properly understand how to implement them. I understand why the path references are not

RE: [PHP] preg_match question: locating unmatched HTML tags

2003-02-22 Thread John W. Holmes
, if you've got a small group of people like you say then just teach them HTML so they don't make mistakes like this. Or provide a preview mode so they can double check their work. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http

RE: [PHP] Why use persistent connections? || Data driven site

2003-02-22 Thread John W. Holmes
it at the end. You shouldn't be opening a connection for each query. As for persistent vs. normal, here's a good explanation of each option: http://www.php.net/manual/en/features.persistent-connections.php ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy

RE: [PHP] Select Field Form Value

2003-02-22 Thread John W. Holmes
solution, is to turn off register globals. Another option is to use a different variable name than $Restrictions or unset() it before you start adding text to it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP

RE: [PHP] flashing text possible on PDA?

2003-02-22 Thread John W. Holmes
not support many Javascript commands? This has nothing to do with PHP. Search google, but I'll wager it's not possible. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net

RE: [PHP] Re: Efficient db connect function?

2003-02-23 Thread John W. Holmes
an include file with 2 things (connecting and selecting a database). Then make another function just for queries, this way on the second and onward queries will save overhead some from connecting and selecting a database. Second that... ---John W. Holmes... PHP Architect - A monthly magazine for PHP

RE: [PHP] [!NEWBIE ALERT!] fread() question

2003-02-23 Thread John W. Holmes
What was suggested will work fine if the title and /title are on the same line. If someone writes the file such as title My Title /title Then it will not match it. If this is a possibility for you, you'll want to add an 's' modifier onto your pattern. $pattern=/title(.*)\/title/is; ---John W

RE: [PHP] Variables not being received from form

2003-02-23 Thread John W. Holmes
The $HTTP_POST_VARS array has no scope within your function. Make it global for this to work or use $_POST. function retrieve_select_listing($link, $workshop, $session, $username) { global $HTTP_POST_VARS; //rest of your code... ---John W. Holmes... PHP Architect - A monthly

RE: [PHP] includes || perl

2003-02-23 Thread John W. Holmes
!--#include file= will work inside a .php file.. any solutions? Virtual() may help here... www.php.net/virtual ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] re-populate array keys

2003-02-23 Thread John W. Holmes
Hi, after asort()ing an array, the numeric keys are obviously out of order. what i'd like to do is reset the keys, starting at zero. is there a function for this, or do I just walk through the array with a foreach() and do it manually? Why don't you just use sort()? ---John W. Holmes

Re: [PHP] dynamic list box

2003-02-24 Thread 1LT John W. Holmes
I have an sql statement that pulls data into a dynamic list box, the problem is, I have this list box twice on my form, since the query returns a lot of rows, I do not want to have the query executed twice but I populate my list box using the while loop so when it is time for the second list

[PHP] Re: [PHP-DB] Checkboxes to gather rows to delete

2003-02-24 Thread 1LT John W. Holmes
and add them to your DELETE query. ---John Holmes... 1lt John W. Holmes [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I have a mysql database with a table using one column as a primary key. (rowID). On a php page I use a query to list all of the rows of the table

Re: [PHP] Multiple Data Requests

2003-02-24 Thread 1LT John W. Holmes
Hi guys, Wonder if you can help me with this. I have a recording_global table which has recording_global_id in and dj_global_id. I want to be able to sort the recording_global table alphabetically by dj name which I need to find from the dj_global_id table referencing it from the ID in

Re: [PHP] Creating my own super global variables

2003-02-24 Thread 1LT John W. Holmes
Is there any way I can creat my very own super global variables? You can assign values directly to $_POST, $_COOKIE, etc arrays and reference them wherever you want later. It's just for the duration of the script, though. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Received: (from www@localhost) ???

2003-02-24 Thread 1LT John W. Holmes
I am using sendmail and php and it works great... However, It always says this in the header of the email Received: (from [EMAIL PROTECTED]) Is there a way I can change this to something less generic, more specific to my server? Read the manual page on the mail() function along with the

Re: [PHP] What is wrong with this?

2003-02-24 Thread 1LT John W. Holmes
Put some quotes around the tag value for just in case the $aviao has a space in it: $drop_down_list .= optionvalue=\$aviao\$aviao/option; what about if $aviao contains a double quote? what's the proper way to handle that case? or, in other words, what's the most general way

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread 1LT John W. Holmes
What you might try is removing the single-quotes from around PHP_SELF. Before: $_SERVER['PHP_SELF'] After: $_SERVER[PHP_SELF] Another note: as far as I can tell you do not need the braces ({}) to enclose a variable within a double-quoted string. I may be wrong, but nothing I've read

Re: [PHP] Keep cariage returns

2003-02-24 Thread 1LT John W. Holmes
Is it possible to maintain the carriage returns in a database insert. When I input data from a textfield with returns into the database, it is lost on a subsequent select and print. They're still there, they don't disappear for no reason. HTML does not understand newlines, though, only br

Re: [PHP] general question ?

2003-02-24 Thread 1LT John W. Holmes
http://kemu.ath.cx/intranet/login.phps when I press submit everything is OK it works like I want it to work but I'm not happy with the result I see in my url window I see this http://localhost/intranet/login.php?user=kemupasswd=testsubmit=login I don't like it that you can know the passwd

RE: [PHP] process HTML as PHP?

2003-02-24 Thread John W. Holmes
This may be a really elementary question but is it a good idea to add the extension .html to be processed as php? If so then it would save me quite a bit of relinking with flash... It adds a little overhead to HTML files, but doesn't hurt that much. ---John W. Holmes... PHP Architect

RE: [PHP] preg_replace with /e modifier

2003-02-24 Thread John W. Holmes
)', $player); So a value such as $player = 'Bas^#ket ^?Ball Pla^:yer'; will produce: Basfont color=#00ket /fontfont color=#7BD2ADBall Pla/fontfont color=#63319Cyer/font Which is much better HTML output than you had before. Enjoy. ---John W. Holmes... PHP Architect - A monthly magazine

RE: [PHP] button and /button

2003-02-24 Thread John W. Holmes
... well he said basically that this web site isnt being used for everybody and it is only used for pastors that need somewhere to go and get info and relief from problems they might have and dont want to tell people in their church about it. Oh my god!!! So many jokes came to me so quickly

RE: [PHP] dummy variable

2003-02-24 Thread John W. Holmes
://www.php.net/manual/en/ref.outcontrol.php ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] line number

2003-02-25 Thread 1LT John W. Holmes
The constant __LINE__ works well. ---John Holmes... - Original Message - From: Chandler, Jacob R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:21 PM Subject: [PHP] line number What function can I use to find out the current line number? -- PHP General

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread 1LT John W. Holmes
http://www.zend.com/manual/function.date.php --- CF High [EMAIL PROTECTED] wrote: Hey all. Easy question here (can't find the answer in php manual) In Cold Fusion I'm able to format a given numerical month value, say the third month, as #MonthAsString(3)# and it returns March

Re: [PHP] Javascript

2003-02-25 Thread 1LT John W. Holmes
Nothing to do with PHP at all but, Pretty sure you have to tack on the URL variables within the window.open() function. When you specify the name of the file to open, try putting the variable there. ---John Holmes... - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Empty Query

2003-02-25 Thread 1LT John W. Holmes
From what I can tell, if $img is an empty string, and $file_dir is not a directory, $sql will not be assigned a value. This could be what's causing your error when you try to run an empty query. ---John Holmes... - Original Message - From: Richard Whitney [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] simple problem about authentication

2003-02-25 Thread 1LT John W. Holmes
I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click

Re: [PHP] Out of Range

2003-02-25 Thread 1LT John W. Holmes
Probably means that only one row was returned from your query, so 2 is out of range. ---John Holmes... - Original Message - From: Todd Barr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:11 PM Subject: [PHP] Out of Range here is my code $Query = SELECT

RE: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
(.) to concatenate strings, not a plus (+) symbol. If you displayed $sql, like you should when you're debugging your script, you'd of realized this a long time ago. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP

RE: [PHP] $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread John W. Holmes
[jersey_id][$x]','$_POST[first][$x]' PHP will be greedy, I think, and assume you mean $_POST[jersey_id][$x] as the variable. Or this method ('1','1','$date','.$_POST['jersey_id'][$x].','.$_POST['first'][$x].' ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your

RE: [PHP] to paulm Re: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
. You can set a password for the root user in MySQL. I guess it's not required to have one, but it's a very good idea to have one. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ - Original Message - From: paulm

RE: [PHP] Include files

2003-02-25 Thread John W. Holmes
not responsible for the consequences!!! Do not blame me if your file is included!! ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] no session id

2003-02-25 Thread John W. Holmes
$session_id is coming from? If you want to get the current session id, use the session_id() function. scho session id: . session_id(); ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http

RE: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] niklasRe: [PHP] mysql trouble

2003-02-26 Thread 1LT John W. Holmes
of the function (+) i dont need to put there that? - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Richard Whitney' [EMAIL PROTECTED]; 'Luis A' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 8:21 PM Subject: RE: [PHP] mysql trouble ### ?php

Re: [PHP] niklasRe: [PHP] mysql trouble

2003-02-26 Thread 1LT John W. Holmes
On Thursday 27 February 2003 00:08, 1LT John W. Holmes wrote: Dude... honestly, lay off the coffee and learn to type. Shouldn't that be cigars? I guess so. He can send the cigars to me!! :) John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Too many connections - MySQL

2003-02-26 Thread 1LT John W. Holmes
There is a setting in MySQL for the max_connections. You just need to increase this. If you're using persistent connections, do some research on them and make sure you really need to be using them. They will eat up your connections and cause you to have this error more quickly. ---John Holmes...

Re: [PHP] date, first of next month?

2003-02-26 Thread 1LT John W. Holmes
Does anyone know a way to do this easily? I have a script that pretty much says this is due on the first of next month but I would like it to actually use the correct date. You would think strtotime(first of next month) would work, but it doesn't. This does: $t =

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread 1LT John W. Holmes
I have a confirmation of membership page a user would arrive at after clicking on a URL in an email. After they click on a link in this page I want to delete the page itself so it will only exist for this one use. The URL in the page does go to another Welcome page which is on another

RE: [PHP] session_start

2003-02-26 Thread John W. Holmes
webhost to move /tmp to another partition, or _at_least_ to have session.save_path point to a partition that doesn't get exhausted too quickly. Or use session_save_path() in your script to use a directory of your own. Make sure you implement your own cleanup, though. ---John W. Holmes... PHP

RE: [PHP] problem in writing into an html text file

2003-02-26 Thread John W. Holmes
Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? You have a problem on line 9 of your script after the 'e'. ---John W. Holmes... PHP Architect

RE: [PHP] multiple line text area

2003-02-26 Thread John W. Holmes
I need to be able to preserve line breaks when a user types in multiple lines in a multitple line test area. Right now if I echo $_POST['textarea'] I get everything on one line. Is there any way to do this? Thanks! -Greg www.php.net/nl2br ---John W. Holmes... PHP Architect - A monthly

RE: [PHP] multiple line text area

2003-02-26 Thread John W. Holmes
The newlines are preserved. Do a view source of your page where you're displaying it and you'll see what I'm talking about. HTML just doesn't render newlines, only br. If you're seeing something different, then show your code and explain this more. ---John W. Holmes... PHP Architect - A monthly

Re: [PHP] Escape Characters

2003-02-27 Thread 1LT John W. Holmes
I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm not

Re: [PHP] classes and functions in include files

2003-02-27 Thread 1LT John W. Holmes
just a fast question here.. and the lotic probably isnt to bright on my part and i think i know the answer to this question too but just to make sure... if you can include variables in an include file and use them outside that file (in the file that includes that file that is) then can you do

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread 1LT John W. Holmes
Make sure whatever user the _web server_ is running as has access to write to that directory. With IIS, this is the IUSR_computer_name account. $AppImageDir = Web/Images; You've got a error in that line, also, hopefully it's just a typo, though. ---John Holmes... - Original Message -

Re: [PHP] Reading files

2003-02-27 Thread 1LT John W. Holmes
while (!feof ($handle)) ; Take that semi-colon away. You're running this loop continously. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php_flag session.auto_start 0 not working

2003-02-27 Thread John W. Holmes
($_GET['style']) ) { $_SESSION['style'] = $_GET['style']; } elseif ( !isset($_SESSION['style']) ) { $_SESSION['style'] = 'styles'; } You're calling session_start(), so of course the session is going to start, regardless of the auto_start setting. ---John W. Holmes... PHP Architect

RE: [PHP] post xml

2003-02-27 Thread John W. Holmes
it by method post but without having to use a form? Thank you Make sure you urlencode() the data before you tack it into the URL. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread John W. Holmes
for another image or nothing. The downside to this is it's harder to manage and all images requests will be running through PHP pages. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http

RE: [PHP] form with multiple lines to insert

2003-02-27 Thread John W. Holmes
the other. Or, format your insert such as: INSERT INTO table (col) VALUES (val1),(val2),(val3); Which will create 3 rows. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net

RE: [PHP] Emacs?

2003-02-27 Thread John W. Holmes
I'm fairly certain we decided not to count you anyhow. ;) John Nope. It's 41 (I don't use Emacs) At 15:30 27.02.2003, Larry Brown spoke out and said: [snip] Oops...I stand corrected. Larry S. Brown Dimension Networks, Inc. (727) 723-8388

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread John W. Holmes
outside of the web root. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] virtual() test

2003-02-27 Thread John W. Holmes
Can anyone with Apache verify that you can pass arguments inside of a virtual() call? Something like: Virtual(script.pl?id=1) And have $id available within script.pl. I don't have access to an Apache server right now to test, so thank you very much. ---John W. Holmes... PHP Architect

RE: [PHP] Re: PHP+COM (formating excel)

2003-02-28 Thread John W. Holmes
thanx for no response. forget it. It was realy so simple. You're welcome. Really, it was nothing. How about sharing the solution with the group that way you help other people? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http

RE: [PHP] Capitalising Personal Names

2003-02-28 Thread John W. Holmes
-alpha character, just add it to the final name and move onto the next part. Anyone see any issues with that? I don't have time to write the actual code now, I'll do it later. It'll make for a good tip to put into PHP|Architect. ---John W. Holmes... PHP Architect - A monthly magazine for PHP

RE: [PHP] virtual() test

2003-02-28 Thread John W. Holmes
At 03:09 28.02.2003, John W. Holmes said: [snip] Can anyone with Apache verify that you can pass arguments inside of a virtual() call? Something like: Virtual(script.pl?id=1) And have $id available within script.pl. I don't have access

RE: Re[2]: [PHP] virtual() test

2003-02-28 Thread John W. Holmes
right now to test, so thank you JWH very much. JWH ---John W. Holmes... JWH PHP Architect - A monthly magazine for PHP Professionals. Get your copy JWH today. http://www.phparch.com/ TR it shows up under TR _SERVER[QUERY_STRING] = id=1 TR I ran the following script (virt) in cgi-bin

Re: [PHP] Any function that gives the coordinates of the cursor?

2003-02-28 Thread 1LT John W. Holmes
Are there any functions in PHP which can give us the coordinates of the cursor when we click the mouse? Thanks for the replys. If you use an image as your submit for your form, you can. input type=image src=foo.jpg name=image When that image is clicked on, you'll have $_POST['image_x'] and

<    8   9   10   11   12   13   14   15   16   17   >