RE: [PHP] extracting text

2002-12-24 Thread John W. Holmes
rror checking, so if $foo doesn't exist, you'll get a warning and empty string inserted. ---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] Good class for managing settings stored in INI (or other format) file?

2002-12-25 Thread John W. Holmes
hing. www.php.net/parse_ini_file ---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] How To Get Last Item Of An Array?

2002-12-25 Thread John W. Holmes
umber. But I can't figure out how > to > get the last item in that same array -- $cat_data[x][0] where x is the > last > item in the array. Kind of begs the question of why can't you just select what you need with the proper query, instead of loading everything into an array...

RE: [PHP] Formatting text output

2002-12-25 Thread John W. Holmes
tain the same formatting as what I > input? How are you getting it into the database? MySQL isn't going to change the formatting of that text at all. Now, if you were to display it in an HTML page, it won't look the same. HTML does not recognize newlines, only tags. Here is where the n

RE: [PHP] Insert Record (php.ini)

2002-12-25 Thread John W. Holmes
obals, if I had to guess. Otherwise, show your code so we can see what's going on. ---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] Open HTTPS connection

2002-12-26 Thread John W. Holmes
to do it? This is going to be on a Win2K machine. Thanks for any info. ---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] Selecting what's for deletion

2002-12-26 Thread John W. Holmes
boxes will be in $_POST['delete'], so you can do this: $delete_ids = implode(",",$_POST['delete']); $query = "DELETE FROM table WHERE ID IN ($delete_ids)"; Add in your own validation, of course... ---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] str_replace

2002-12-26 Thread John W. Holmes
I'm not great at p/ereg yet, anyone have any pointers? Can you explain exactly what you want replaced and with what? Give an example of the string and what will be replaced and what it will be replaced with. Then someone can write/help with the regex. ---John W. Holmes... PHP Architect - A

RE: [PHP] Selecting what's for deletion

2002-12-27 Thread John W. Holmes
this is easier for me to change in the future. Now, > the page gets stuck when reaching this level and doesn't process what I > ordered... Any thoughts? Thanks in advance, Do you get an errorno() or does it just not delete? It's better to echo mysql_error() along with mysql_errno

RE: [PHP] mysql_escape_string is deprecated?

2002-12-27 Thread John W. Holmes
> I was looking at the PHP 4.3 changelog, and it said that > mysql_escape_string is deprecated. Is this true, and if so, what should > I be using instead? Probably addslashes() or magic_quotes_gpc... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get

RE: [PHP] Form duplicate post problem

2002-12-28 Thread John W. Holmes
r the data is inserted into the database, thus getting rid of the post data. So subsequent refreshes of the page will refresh without attempting to repost the data. The only other way to do it is to check the data you're about to insert to see if it's already there. If it is, then

RE: [PHP] Directing to a URL from a radio group

2002-12-28 Thread John W. Holmes
; Throw in some validation to $_POST['choice'] (or $_GET['choice']) to make sure you are directing to the directory you should be directing to. ---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] include option and calling only part of a file.

2002-12-28 Thread John W. Holmes
> I have one file with several sections of code which I have so far > accessed using a good old fashioned - - if ($HTTP_GET_VARS['action'] == > "Update") - - however I now want to include this code within some other > web pages, I thought I may be able to use the following code - - > include("/mod

RE: [PHP] Formatting text

2002-12-29 Thread John W. Holmes
fix is to just surround the line by which will cause the newline and tab elements to show up. The hard fix, but nicer looking one, is to output your data in a table. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

RE: [PHP] Form duplicate post problem

2002-12-29 Thread John W. Holmes
ecommend to everyone that they not rely on Javascript and simply do all of this in the main window. With Pop-Up Blockers and different browser versions, Javascript should be avoided if possible unless you really know what your audience will be using (or don't care). ---John W. Holmes... PHP A

RE: [PHP] Formatting text

2002-12-29 Thread John W. Holmes
; } > > Unquote. > > In the above code, I want to format the text in only one field and that is > the field named "Results". > Where do I put the tags for formatting the text contained in > the mysql field "Results"? How about around $row[Results]? pri

RE: [PHP] Form duplicate post problem

2002-12-29 Thread John W. Holmes
, you should be using a header() redirect, not a javascript or META REFRESH redirect... ---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] IIS Quit Working

2002-12-29 Thread John W. Holmes
c:/php/sessions/ (if that folder exists) works just fine. The IUSR_ user on your computer must have permission to write to that directory. ---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] Form duplicate post problem

2002-12-29 Thread John W. Holmes
exactly where the output is starting, if that's a mystery to you (output started in file.php:2 means line 2 of file.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] Dropping Tables

2002-12-29 Thread John W. Holmes
IKE 'a%' to just get the a* tables and drop each one. How do you know whether it's an "active" a* table or not? Will you be dropping a table that someone is actually using? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today

RE: [PHP] Multiple forms

2002-12-30 Thread John W. Holmes
ion? > > Thanks and if I didn't make myself clear, I apologize. Just name each submit button something different. The program could check for $_POST['MM_update'] to process the first form, or $_POST['MM_update2'] to update the second. ---John W. Holmes... PH

RE: [PHP] SQL Error

2002-12-30 Thread John W. Holmes
om line, you must do them one at a time with mysql_query, or run them through the command line in a file. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]

RE: [PHP] PHP Look Back 2002

2002-12-30 Thread John W. Holmes
> We are almost at the end of 2002, and it seemed appropriate to look back > on the development issues of the past year. So starts the first PHP Look > Back! You can find it @ http://www.derickrethans.nl/20021230.php, and if > you have any comments,feel free to post them with the link at the bottom

RE: [PHP] printing documents on printer

2002-12-30 Thread John W. Holmes
://www.php.net/manual/en/ref.printer.php On, *nix... I have no idea. ---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] FORM text formatting problem

2002-12-30 Thread John W. Holmes
; the site, i do: > > $texto = str_replace("\n", "", $texto); Are you using a WRAP attribute on your TEXTAREA? You'll want to set it to OFF or NONE, probably. I can't remember the exact values, it can take, but I think it's PHYSICAL, VIRTUAL, and NON

RE: [PHP] Date problem

2002-12-31 Thread John W. Holmes
ng date". > > Is there a routine in PHP I can use to find if today's date fits between > the commencing date and the ending date? SELECT * FROM table WHERE CURRENT_DATE BETWEEN commence_date AND ending_date ---John W. Holmes... PHP Architect - A monthly magazine for P

RE: [PHP] SESSION variable to pass login ID

2003-01-12 Thread John W. Holmes
Well, start debugging your code then. Do a print_r() of $_POST and $_SESSION at different points in your files. Maybe you're losing your session on a certain page or it's getting reset. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy t

RE: [PHP] htmlspecialchars

2003-01-14 Thread John W. Holmes
---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 14, 2003 1:09 PM > To: [EMAIL PROTECTED] > Su

RE: [PHP] Security in included PHP files

2003-01-15 Thread John W. Holmes
of context, and program accordingly, your scripts will be just fine. An include file full of functions or classes will not "run" anything when called, it'll simply load it into memory. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals.

RE: [PHP] File() function and require()

2003-01-15 Thread John W. Holmes
file('http://www...')) Can you show your exact code and what the output is? ---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] Security in included PHP files

2003-01-15 Thread John W. Holmes
gt; validating what information I put into the object variable this seems to > be > a way of adding another layer of protection. No, the user can't set a class variable directly, but if you are doing something like $this->var = $_GET['something'], then it's unsecure unle

RE: [PHP] OOP

2003-01-15 Thread John W. Holmes
iting would probably be the most modular. > I haven't found any clear examples of this kind of OOP, only the real > basics > (which I still need help with by the way :) ). Use google. Do some more studying before you try to tackle this, or look on phpclasses.org for some examples. --

RE: [PHP] Calendar problem

2003-01-15 Thread John W. Holmes
out how many days are between the two dates. You can use date() to find out the month of each one and do some more math... ---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.

RE: [PHP] Random string (was Header sent problem)

2003-01-17 Thread John W. Holmes
> I found that the Header already sent problem was caused by the Random > Password Generator I'm using, even if I place this function on the > bottom of the same file I'm trying to open an just call for the result. > > So, to avoid this issue, I need another method of generating a random > number

RE: [PHP] mail () error

2003-01-17 Thread John W. Holmes
in your SMTP server? ---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 and SQL

2003-01-17 Thread John W. Holmes
> My company had just ordered a SQL 2000 Server. I need to make a webpage > that collects data from the Server's database. I guess I need to use PHP > with SQL. My question is what is the difference between SQL and mySQL? I > brought a book that teaches you how to use PHP with MymySQL, I am jus

RE: [PHP] Session Length

2003-01-17 Thread John W. Holmes
minutes old and make them log in again. ---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] OOP

2003-01-17 Thread John W. Holmes
> Nice work on php archittect by the way :) > Thanks again, > Jordan Thank you. ---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, vi

RE: [PHP] Re: Images : Store in dB or disk?

2003-01-17 Thread John W. Holmes
r _one_ image, send the headers and then send the data. ---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] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread John W. Holmes
set_error_handler and acted on. In order to do this, I think you'd have to do something like $class->method("phone","555-1212"); method() will look for a "phone" function and call it if it exists. Otherwise, look for a "phone" column and set/retrie

RE: [PHP] frame problem

2003-01-17 Thread John W. Holmes
> What da fuck. > Been trying like forever to get a script to automaticly update the > framespage from inside one of the frames. > My goal is to reset all the frames to their original state > > Can anybody help me! Wash your mouth out with soap and go learn Javascript... ---John Holmes... --

RE: [PHP] Number Sign in String Variables

2003-01-17 Thread John W. Holmes
used to start a comment in MySQL. Show your actual code around this statement where you make your query. The only reason the data would be cut off is if MySQL is interpreting the # as the beginning of a comment. But, if that was the case, you'd have an invalid query, so it must be a com

RE: [PHP] Meta Refresh Question (PHP)

2003-01-17 Thread John W. Holmes
ewID = 1; > $Page = newpage and here... > } > ?> > > > > Aviation Hall of Fame > > http://www.php.net/manual/en/language.types.string.php ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
> Is there any way to get all of the elements in a SELECT MULTIPLE box, not > just the ones that are selected? Thanks! No. You create the box, so you should know all of the possible values. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
the same time, create a javascript or hidden variable that has its contents to be passed along with the form. ---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] Auto Incrementing in PHP

2003-01-18 Thread John W. Holmes
, increment their number, then use sessions to keep a count. ---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] Multiple sizes for products

2003-01-18 Thread John W. Holmes
like this: +--+--+ | Item | Size | +--+--+ | 1|12| | 1|14| | 2|14| | 3| 16| | 3|18| +--+--+ And do JOINs to find your relevant data. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. ht

RE: [PHP] passing variables to a sql statement

2003-01-18 Thread John W. Holmes
> mysql_connect($hostName, $userName, $password); > $descripResult = mysql_db_query($database,$descripQuery); >while($row = mysql_fetch_object($descripResult)){ You shouldn't be using mysql_db_query() for one, it's depreciated. Use mysql_select_db() along with mysql_query(). If rowid

RE: [PHP] Number Sign in String Variables

2003-01-18 Thread John W. Holmes
; I've never seen anything like this before. And the line you get that error looks like? It looks like you're trying to fopen() a file that's made up of PHP_SELF and the QUERY_STRING. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy t

RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread John W. Holmes
1. You can "create" the current page with a combination of PHP_SELF, QUERY_STRING, etc... Take a look at a phpinfo() page to see all of the variables. 2. You can use ini_set() in your code to change the settings for your sessions or an .htaccess file if your on *nix. ---John W. Holm

RE: [PHP] SQL+php

2003-01-18 Thread John W. Holmes
> Dose anyone know how to search and replace a string in a > mysql_query output. Yes. ---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] SQL+php

2003-01-18 Thread John W. Holmes
How about you describe exactly what you're trying to do and why and then someone can help you. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Paul Marinas [mailto:[EMAI

RE: [PHP] SQL+php

2003-01-18 Thread John W. Holmes
hat's it ... So where do you get the name from. You're still not being descriptive enough. ---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] SQL+php

2003-01-18 Thread John W. Holmes
or No questions. There's even a funny FAQ on this, but I can't find the link anywhere. ---John Holmes... > > -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 19 January 2003 11:42 AM > To: 'Paul Marinas' > Cc: [EMAIL

RE: [PHP] File Upload

2003-01-18 Thread John W. Holmes
ow to do these things are in the manual, the chapter titled Handling File Uploads. ---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] SQL+php

2003-01-19 Thread John W. Holmes
as just too vague of a question to be answered, as were the 3 follow-ups that were posted. I still have no idea what the OP wants. After some more searching, this is the FAQ I was looking for: http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n o-answers.html Note that the o

RE: [PHP] How know how many sessions are active?

2003-01-20 Thread John W. Holmes
it's up to date. ---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] Getting https-page

2003-01-20 Thread John W. Holmes
to you (any web browser would work, actually, as long as you can pass it an https request) ---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] Select multiple boxes

2003-01-20 Thread John W. Holmes
could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old one and make these two an array now. Rather than doing that, it can just look fo

RE: [PHP] a regular expression problem - split text

2003-01-20 Thread John W. Holmes
o work. preg_match_all("/([a-z ]+)/i",$text,$matches); $matches will be an array with the values your after in it. Do a print_r() on it to see how it's structured. Or, if you're text is always like that, you could just match what's between the > and < charact

RE: [PHP] What is PHP-equivalent of ASP's RESPONSE.REDIRECT feature ?

2003-01-20 Thread John W. Holmes
> I am converting an ASP page to PHP and have difficulties in using PHP > since > I am new to it. I have an ASP code that would redirect page-viewer to > respective page base on the input entered by viewer. How do I do this > using > PHP? Also, in ASP, there are features like Server.Transfer and >

RE: [PHP] Can php works as a scheduler?

2003-01-20 Thread John W. Holmes
s. Your file.php should not output anything, as it'll be a machine running it and no one can see the output anyhow. ---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

RE: [PHP] How to make id/name table into array?

2003-01-21 Thread John W. Holmes
_query($sql,$link)) ) { echo "failed\n"; } > while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) > $myarray[$row['id']] = $row['name']; That's the way to do it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your c

RE: [PHP] PHP Sessions

2003-01-21 Thread John W. Holmes
remember one version that came out that was just broke and you had to do a bunch of workarounds to get things to work normally. Was that it? Are you using the $_SESSION array or relying on register_globals? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy t

RE: [PHP] Measuring Query Times

2003-01-22 Thread John W. Holmes
unfortunately, that's the best way right now. I really wish someone would hack the MySQL API and include a function that returns the time MySQL actually used to execute the query I wish I knew how to do it, actually. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professio

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread John W. Holmes
And then read some articles or news on the language you've been "programming in for two years" ---John Holmes... > -Original Message- > From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 6:58 PM > To: 'Dale'; [EMAIL PROTECTED] > Subject: RE: [PH

RE: [PHP] Custom Error pages in IIS

2003-01-22 Thread John W. Holmes
No biggie, but you forgot an 's' on the address: http://www.iis-resources.com, in case anyone was having trouble getting there. Thank you for the link, though. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.p

RE: [PHP] backslash t

2003-01-22 Thread John W. Holmes
> I want php to print " \tab" > but when I do, I only get "ab" as output. > How do I keep the \t? \t is a tab character. If you looked in your source code, you'd see a tab there. Use "\\tab" ---John W. Holmes... PHP Architect - A monthly magazin

RE: [PHP] How to implement this by php Session

2003-01-22 Thread John W. Holmes
gain. Odds are your "security" feature will not allow me to log in, because it thinks I already am. Bottom line, why worry about it? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message

RE: [PHP] Saving files

2003-01-22 Thread John W. Holmes
;t find "paht" on websters.com. You'll need to send the appropriate headers to tell the browser you're sending an attachment and it should prompt the user to save the file. This question is answered all the time, search the archives for the examples. ---John W. Holmes... PHP Archite

RE: [PHP] POST vs GET method

2003-01-22 Thread John W. Holmes
Pretty sure this is an Apache2/PHP bug. It was discussed on here in the past few days. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Bob Lockie [mailto:[EMAIL PROTECTED]]

RE: [PHP] continue after break

2003-01-22 Thread John W. Holmes
The solution is to take out your break... why is it there?? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Reymond [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22

RE: [PHP] Executing Shell Commands.

2003-01-23 Thread John W. Holmes
> Does anybody know how to execute a shell command from PHP on a Linux > system? Yes. ---John Holmes... PS: http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n o-answers.html PSS: http://www.php.net/manual/en/ref.exec.php -- PHP General Mailing List (http://www.php.net/

RE: [PHP] A way to detach the existing session data while making a new one???

2003-01-23 Thread John W. Holmes
> I'm wondering is, is there a way to lose the existing session and > existing session data while making a new session id??? I can't use > session_destroy() function because it affected IE users, it doesn't affect > the non-IE user at all. I got so tired of problems with IE and having it > t

[PHP] RE: Login and sessions?

2003-01-23 Thread John W. Holmes
in? > Sorry for the messed up explanation, but i really dont know what do > do > about it. Thanks. Load the information into a session and use that when you insert data. It won't happen "automatically" but if you save the user's name in something like $_SESSION[&#

RE: [PHP] changing a key in an array

2003-01-23 Thread John W. Holmes
(not that I would be caught dead in a foreign car) References in parenthesis added for you foreigners... or because I'm a foreigner to you, I guess... :) ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Ori

RE: [PHP] Minor email problem

2003-01-23 Thread John W. Holmes
in > this. I also want to change the sender's name to my name rather than my > website name. Spend some time to read the manual page on the mail() function, please. All of this is covered in great detail. Make sure you're reading the version which has user comments in it. Thanks.

RE: [PHP] memory exhausted... memory leak?

2003-01-24 Thread John W. Holmes
ppenning :S > > Anyway, I was wondering if this would be a memroy leak? or just some > standard notice that I'm taking up too much memory ;) What were you doing when it happened? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy toda

RE: [PHP] how to verify the available email address

2003-01-24 Thread John W. Holmes
em click on it. It's the only way to really verify an email address is valid. ---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: parse error, unexpected $end ...

2003-01-24 Thread John W. Holmes
$query="select * from perfil"; > $rs=mysql_query($query,$enlace); > $filas=mysql_num_rows($rs); > > $dominio="http://www.latinencounters.com/";; > for($a=0;$a<$filas;$a++){ > $fila=mysql_fetch_array($rs); > echo "\n"; > echo " ".

RE: [PHP] [url] to html

2003-01-24 Thread John W. Holmes
> how to chang [url=%link%]%descr%[/url] in %descr% $new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","$2",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- P

RE: [PHP] MySQL 4.0 + PHP 4

2003-01-22 Thread John W. Holmes
> On Wednesday 22 January 2003 18:52, 1LT John W. Holmes wrote: > > > There's really no change from the PHP side. PHP just sends the data and > > receives something back The only change in PHP is that mysql_connect() > now > > supports additional flags to con

RE: [PHP] Switch statement || How to output html without using echo() or print()

2003-01-25 Thread John W. Holmes
t include() it wherever you want it displayed... ---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] xtemplate & windows

2003-01-26 Thread John W. Holmes
tion would be to use Smarty. The other would be to try and find an xtemplate list/forum and ask on there. ---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] Using MySQL user variables in PHP

2003-01-26 Thread John W. Holmes
So how do I transfer all this to PHP? Pretty sure you can do all that with one query. Something like: SELECT p.date, p.theme, p.presenter, c.itemNo, c.composer, c.composition, c.note FROM presenters p, compositions c WHERE p.date = c.date ORDER BY p.date DESC LIMIT 1 Not sure, though, as I

RE: [PHP] Predefined Variables In Classes

2003-01-26 Thread John W. Holmes
. Thanks your input Philip. If anyone else has any thoughts or > explainations for me to understad this then that would be great. $_SERVER['PHP_SELF'] will always work, regardless of variable scope or register_globals setting. The $_SERVER array is a superglobal, so it'll have

RE: [PHP] Adjusting Indexed Field After Deleting Entry

2003-01-27 Thread John W. Holmes
ount variable when you output your links, don't rely on the auto_increment column in your database. The auto_increment number is only there as a unique identifier for each row, not to keep count for you. If you have problems with gaps in your auto_increment column then the script is not written

RE: [PHP] IFRAMES & PHP

2003-01-27 Thread John W. Holmes
e any way to do this? If you set a hidden form element in iframetest.php, does it show up when you do a print_r($_POST) in test.php ? It's probably an HTML thing. I don't know how iframes are interpreted, but it's probably not really a part of your form, even though it looks like it is wh

RE: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread John W. Holmes
tween OS behavior? No. $_POST['bday'] should always show up, regardless of OS, if the scripts and PHP version are the same. Double check your logic. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP Gener

RE: [PHP] IFRAMES & PHP

2003-01-27 Thread John W. Holmes
> Unfortunatly, that gets rid of the reason I have the iframe in there to > begin with. I need a scrollable iframe with a set of buttons that perform > certain actions at the top, that have to always be at the top. > -Greg Then put the entire into the iframe. ---John W. Ho

RE: [PHP] Anyone?? file uploads received, but mangled

2003-01-27 Thread John W. Holmes
in text, or raw data? All I want > to happen is for the files to be uploaded completely unchanged. > > Btw, this happens with PHP 4.2.3 on OSX (entropy.ch), and with the latest > 4.3 on OpenBSD. Are you using Apache 2? ---John W. Holmes... PHP Architect - A monthly magazine for P

RE: [PHP] Too many 'linespaces'

2003-01-27 Thread John W. Holmes
e shouldn't be any data there, it's now up to your browser to decide where to place it. Most browsers will bunch it all together before or after the table. So place your commented out tag inside or outside of your table. ---John W. Holmes... PHP Architect - A monthly magazine for PHP P

RE: [PHP] PHP Page Refresh on Redirection

2003-01-27 Thread John W. Holmes
ion to send headers telling the browser not to cache the page. Take a look at the header() manual page and there is an example (6th gray box). www.php.net/header ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com

RE: [PHP] printing

2003-01-28 Thread John W. Holmes
> Is there a way in php to print to a printer? say i have a order from , > when > someone clicks the submit button - then print the form plus the entered > details to a page ? No, that's handled client side. PHP is server side. Use Javascript or the like... ---John W. Holmes.

RE: [PHP] problem installing php

2003-01-28 Thread John W. Holmes
to provide security running PHP as a CGI under ; most web servers. Left undefined, PHP turns this on by default. You can ; turn it off here AT YOUR OWN RISK ; **You CAN safely turn this off for IIS, in fact, you MUST.** ; cgi.force_redirect = 1 ---John W. Holmes... PHP Architect - A monthly magaz

RE: [PHP] set_error_handler inside a class

2003-01-28 Thread John W. Holmes
be a method in your class, then you pass an array to set_error_handler(). Details are in the manual on the format of the array. It'll be the same as any other callback function that you can send a classes method to. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals.

RE: [PHP] regexps

2003-01-28 Thread John W. Holmes
ext you have, and why you need to match the position as well as the text. > where can i suggest such a function on the current regexps API ? I don't know. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ --

RE: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread John W. Holmes
al .= " size='1'>\n"; } foreach($_CONF[$conf_key] as $value) { $retval .= "\n"; } $retval .= "\n"; } else { $retval = "Invalid Conf Key"; } return $retval; } //Adds in an

RE: [PHP] Using Pear Auth

2003-01-29 Thread John W. Holmes
example of functional > Auth code out there? Since you're using an old version of pair, maybe the class name has changed. If you're successfully including auth.php, open it up and look at what the class is named. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Profe

RE: [PHP] content type header for downloading files

2003-01-29 Thread John W. Holmes
orks correctly on the browser in question and examine the headers it sends? ---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

<    1   2   3   4   5   6   7   8   9   10   >