Re: [PHP] $HTTP_GET_VARS

2003-01-18 Thread Philip Olson
Everyone from this thread needs to reread this: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Acessing $DOCUMENT_ROOT

2003-01-18 Thread Philip Olson
How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. http://www.php.net/variables.predefined Regards, Philip -- PHP General Mailing List (http://www.php.net/) To

[PHP] Unsupported operand types

2003-01-18 Thread Brian T. Allen
Hi, I've just spent the night upgrading my RedHat 6.2 server to: Apache1.3.27 PHP4.3.0 MySQL3.23.54a Mod_SSL2.8.12 OpenSSL0.9.7 ZendOptimizer2.1.0 Now I'm getting (inconsistently): PHP Fatal error: Unsupported operand types in /web/domain/html/includes/item.inc

Re: [PHP] Ever complained about lousy PHP programmers?

2003-01-18 Thread olinux
I prefer single quotes on stuff that doesn't need to be parsed. In most cases this is more efficient, though probably not noticed except on a large scale. I also think it makes it easier to include html strings (because double quotes don't need to be escaped) and I find it easier to work my code

[PHP] Re: PHP Review Site

2003-01-18 Thread Manuel Lemos
Hello, On 01/17/2003 11:40 PM, Stephen wrote: I was just wondering if there were any PHP review sites that review free and paid scripts? If so, where? If your script is in the form of a PHP class of objects, you may want to try uploading it to the PHP Classes site. You will not get explict

[PHP] Free PHP Hosts?

2003-01-18 Thread JJ Harrison
Until now I haven't had the need for a free PHP host because what I have done has been commercial. However, In this case I am doing the website for my PC Gaming clan. We are one step below needing php to do alot of stuff. Does anyone know of a free php webhost? (Banners, poop-ups etc are

[PHP] Re: occasional mcrypt problems

2003-01-18 Thread Steve Yates
Steve Yates [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... After much testing, I think I may have it. It appears that MySQL is dropping a trailing space from the value being inserted into the database! For example if the encrypted string is (.A®¢m¸¼'À

[PHP] Upload multiple files

2003-01-18 Thread Antti
I want to do this for multiple files. I tried to do this with a foreach -loop but I think I made some mistakes with the array userfile. In this example userfile is just the name in the input tag. When uploading multiple files userfile is -ofcourse- an array like this: name='userfile[]'. Now I

[PHP] Check for start_sessoin without causing header problems

2003-01-18 Thread SLanger
Hello I checked the PHP manual and couldn't find anything on this... When I call session_register() an implicit call to session_start() is executed. So if the session handling uses cookies to track the session and the call to session_register() is not before any output this will cause a

[PHP] Re: PUT uploads

2003-01-18 Thread Chris Jarecki
my php version is 4.3.0 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Result in the same page

2003-01-18 Thread Ezequiel Sapoznik
It is possible to run a query in php when the user press a button an return the result in the same page? Thanks! Ezequiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Result in the same page

2003-01-18 Thread Jason Wong
On Saturday 18 January 2003 20:11, Ezequiel Sapoznik wrote: It is possible to run a query in php when the user press a button an return the result in the same page? Yes. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting *

RE: [PHP] Ever complained about lousy PHP programmers?

2003-01-18 Thread Cal Evans
Since no one else has asked, I'll bite. Why not just use str_rot13()? brutal The biggest problem I have with your code is that you didn't learn enough about the language to know that this was already in the code. As a newb, you need to set down with your favorite version of the manual (I keep

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard therefore it is a Bad Thing (tm) but it does work. SELECT name=mySelect[] multi option name='1'Don't pick me/option option name='2'Pick me/option /select Selecting

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

php-general Digest 18 Jan 2003 14:53:08 -0000 Issue 1830

2003-01-18 Thread php-general-digest-help
php-general Digest 18 Jan 2003 14:53:08 - Issue 1830 Topics (messages 132074 through 132093): Re: Gridwidget - javascript 132074 by: David Rice 132077 by: Jason Wong Select multiple boxes 132075 by: Gregory Chagnon 132092 by: Cal Evans 132093 by:

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
whoops. Sorry, didn't read the question. Wrong answer. John gave the correct answer. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 8:41 AM To:

Re: [PHP] Ever complained about lousy PHP programmers?

2003-01-18 Thread michael kimsal
Olinux wrote: I prefer single quotes on stuff that doesn't need to be parsed. In most cases this is more efficient, though probably not noticed except on a large scale. I also think it makes it easier to include html strings (because double quotes don't need to be escaped) and I find it easier

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Chris Hewitt
Peter Janett wrote: Sessions themselves use cookies, though, right? So, if you want your app to work for those who don't have cookies, you have to pass the session data in the url string, at least that's my understanding. With sessions, its only the session ID that is put in the cookie or url

Re: [PHP] Select multiple boxes

2003-01-18 Thread Gregory Chagnon
The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that can move

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
What you are describing is a 2 List Mover. PHP is a server-side language and as such knows nothing about what is going on on the client. Therefore you have limited options. My favorite is : In your form's onSubmit() put code to load all the values into a hidden field. (Assuming you have defined

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

2003-01-18 Thread -[ Rene Brehmer ]-
Hi gang Been trying to figure out this session stuff, but since I was unable to make the manual sample into something workable, I instead decided to actually try and make the session do what I need it for: Passing the URL of the caller page to the page that's being called. 1. Only I can't figure

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

2003-01-18 Thread Cal Evans
I guess I'm dense this morning. In response to 1: $_SESSION['mother']=$_SERVER['PHP_SELF']; and then a href=?PHP echo $_SESSION['mother'];?Go Back/a or better yet... a href=?PHP echo $_SERVER['PHP_SELF'];?Go Back/a as to #2: I usually just pass this kind of info around on the URL.

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Brad Pauly
Sessions themselves use cookies, though, right? So, if you want your app to work for those who don't have cookies, you have to pass the session data in the url string, at least that's my understanding. Cookies are used by default. However, if cookies are disabled in a client, a session

[PHP] Can I use php to load a icon?????(.ico .exe .....)

2003-01-18 Thread hei
Can I use php to load a icon?(.ico .exe .) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread -[ Rene Brehmer ]-
Hi Ian M. Evans, On Fri, 17 Jan 2003 14:04:15 -0500, you wrote about [PHP] Converting accented characters or numeric equivalents to non-accented something that looked like this: Does anyone have a quick PHP function for converting accented characters to their non-accented forms? It would really

RE: [PHP] Can I use php to load a icon?????(.ico .exe .....)

2003-01-18 Thread Cal Evans
exactly how do you load an icon? What are you loading it into? =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: hei [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Does remote file(image) exist ?

2003-01-18 Thread Stephen of Blank Canvas
Hi Everyone, Sorry I have no example code at all for this at all, I know some people don't like that but I just do not know where to start so am asking for help. I have a system there users can put a picture of themselves by method of URL in a MySQL field, however many of this image URL's do

Re: [PHP] Does remote file(image) exist ?

2003-01-18 Thread Andrew Brampton
If you looked at the usercomments for file_exists you would see it saying to look at the fopen page for a example In the usercomments for fopen there is a post saying this: jamie.watt at murchison.com.au 03-Feb-2000 01:39 To check if a file exists using http or ftp use the following: pre $fp

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Chris Hewitt
-[ Rene Brehmer ]- wrote: something like this (untested): for ($i = 0; $i strlen($string_to_parse); $i++) { $char = substr($string_to_parse, $i, 1); if (ord($char) 128) { $output_string .= #.ord($char).;; } else { $output_string .= $char; } } You may need to test for value 127 ...

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Joab Stieglitz
OK. I found the problem, and it isn't PHP or MySQL related. It's an HTML problem. I'm passing the string from one script to another, and the # sign is screwing up the URL. For example, this URL: add_to_cart.php?item_num=SOU3432410quantity=1sale_price=24.92unit=BX short_desc=ENVELOPE,25%COT

Re: [PHP] Does remote file(image) exist ?

2003-01-18 Thread pan
reply to both mail list and O.P. - Original Message - From: Stephen of Blank Canvas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 18, 2003 08:42 Subject: [PHP] Does remote file(image) exist ? Hi Everyone, Sorry I have no example code at all for this at all, I

[PHP] hyperlink and mySQL

2003-01-18 Thread M.E. Suliman
Hi I have created a simple script that pulls the three latest news entries from a mySQL database and displays it on a webpage. At the end of the preview paragraph of the news story there is a hyperlink to access the full text specific to that preview. How would I do this? Any ideas would be

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Brad Pauly
For example, this URL: add_to_cart.php?item_num=SOU3432410quantity=1sale_price=24.92unit=BX short_desc=ENVELOPE,25%COT 24#,IYwholesaler=UScost=18.690 gets cut off at the # sign, so $wholesaler and $cost come out empty. Any suggestions to get around this? You could use urlencode() and

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
Rene: Thanks for the response. I guess I wasn't too clear in my original post. I'm not looking to turn an accented letter into its numeric equivalent, I'm looking to strip the accent so that Renée Zellweger becomes Renee Zellweger. Any thoughts there? -- PHP General Mailing List

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ernest E Vogelsinger
At 17:25 18.01.2003, -[ Rene Brehmer ]- said: [snip] Not sure about quick, but the only way I've found that works with 100% guarantee everytime is to take the string and check it character by character, and if the ascii value is 128, simply replace it with

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ernest E Vogelsinger
At 19:11 18.01.2003, Ian M. Evans said: [snip] Thanks for the response. I guess I wasn't too clear in my original post. I'm not looking to turn an accented letter into its numeric equivalent, I'm looking to strip the accent so that Renée Zellweger becomes

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
Ernest E. Vogelsinger suggested: $chars_in = array('Á',''á','É','é'); // you get it $chars_out = array('A','a','E','e'); // this too preg_replace($chars_in, $chars_out, $string_to_parse); I initially got a 'no ending delimiter' error but after adding /'s to the $chars_in it was just what the

[PHP] Logfile statistics - get words from position between other words

2003-01-18 Thread Svein O. Bennæs
I'm trying to write a script that extracts some search-queries from a logfile, but I'm having problems finding the right function to solve this problem. Below you'll find 4 lines from the log - the words I'm trying to extract are (for now) written in capital letters, and they are always found

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Paul Roberts
another one for you function removeaccents($string) { return strtr($string, SOZsozY¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ, SOZsozYYuAAACDNOOYsaaaconooyy); } Best Wishes Happy New Year Paul Roberts [EMAIL PROTECTED]

Re: [PHP] Logfile statistics - get words from position between otherwords

2003-01-18 Thread Sean Burlington
Svein O. Bennæs wrote: I'm trying to write a script that extracts some search-queries from a logfile, but I'm having problems finding the right function to solve this problem. Below you'll find 4 lines from the log - the words I'm trying to extract are (for now) written in capital letters, and

[PHP] passing variables to a sql statement

2003-01-18 Thread jennifer
hi, i'm hoping someone can help me out here - im trying to pass a variable from a string in the href tag, however my sql breaks when i put a var in the statment. when i replace $foo with a number, the page works fine. can someone please tell me what im doing wrong? here is the error i get:

[PHP] Multiple sizes for products

2003-01-18 Thread [EMAIL PROTECTED]
Hi all, I'm making this web site, where the owner or administrator will be able to upload new products and these products come in different sizes. Now, I made a table in MySQL o store the products but only with a VARCHAR field where the administrator will store the sizes like 12, 14, 16 and 18.

[PHP] Auto Incrementing in PHP

2003-01-18 Thread Don Mc Nair
Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Jason Wong
On Sunday 19 January 2003 03:50, jennifer wrote: hi, i'm hoping someone can help me out here - im trying to pass a variable from a string in the href tag, however my sql breaks when i put a var in the statment. when i replace $foo with a number, the page works fine. can someone please tell me

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ian M. Evans
return strtr($string, SOZsozY... Just curious why the search starts with unaccented SOZsozY? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Chris Shiflett
--- Peter Janett [EMAIL PROTECTED] wrote: Sessions themselves use cookies, though, right? So, if you want your app to work for those who don't have cookies, you have to pass the session data in the url string, at least that's my understanding. That's not quite right. Session management

Re: [PHP] Check for start_sessoin without causing header problems

2003-01-18 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: how can I call a register session from within a class and make sure that the session is allready active and if not just print a warning. This is closely related; you can check to see whether headers have already been sent:

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

2003-01-18 Thread Chris Shiflett
--- Cal Evans [EMAIL PROTECTED] wrote: I usually just pass this kind of info around on the URL. http://mypage.com/mypage.php?prevURL=http://mypage.com/lastpage.php if I have to pass a full query string then I urlencode() it first and urldecode() it on the other side. Just as a bit of

[PHP] PGP signing text from called from PHP

2003-01-18 Thread {R}ichard Ashton
Using PHP 4.1.2 I need to PGP sign a piece of text and detached the signature. I have read a lot in the archives and and about the better exec() calls in 4.3. However I cannot find a reference that indicates the best way to pass a set of arguments out of a PHP script to PGP. I need to use

RE: [PHP] Auto Incrementing in PHP

2003-01-18 Thread John W. Holmes
Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. I assume you're talking about incrementing for everyone that accesses your site. For

RE: [PHP] Multiple sizes for products

2003-01-18 Thread John W. Holmes
I'm making this web site, where the owner or administrator will be able to upload new products and these products come in different sizes. Now, I made a table in MySQL o store the products but only with a VARCHAR field where the administrator will store the sizes like 12, 14, 16 and 18. I

RE: [PHP] passing variables to a sql statement

2003-01-18 Thread John W. Holmes
hi, i'm hoping someone can help me out here - im trying to pass a variable from a string in the href tag, however my sql breaks when i put a var in the statment. when i replace $foo with a number, the page works fine. can someone please tell me what im doing wrong? here is the error i get:

[PHP] File perms when dir already exists

2003-01-18 Thread rw
Hello all! I have a number of scripts that upload 5 files at a time each. The first one creates the dir using umask(000)and mkdir($dir,0777) which gives the first five files perms 777, which is what I want. I have the subsequent scripts check if the dir exists and if not does the same thing

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Joab Stieglitz
OK. I urlencoded the URL and now the URL passes correctly... add_to_cart.php%3Fitem_num%3DSTT32700%26quantity%3D1%26sale_price%3D52.78%26 unit%3DBX%26short_desc%3DENVELOPE%2C100%25COT%2024%23%2CGY%26wholesaler%3DUS %26cost%3D37.700 ... but I get the following error: Forbidden You don't have

[PHP] Re: hyperlink and mySQL

2003-01-18 Thread Bobby Patel
I have done something similar: write a script that takes an Article ID, and displays the text. So to displat article #3, you would call it like getArticle.php?id=3. Skelton for getArticle.php - take id and store in $id - Select FullBody from Articles where ID = $id - $body = query['FullBody'] -

RE: [PHP] Number Sign in String Variables

2003-01-18 Thread John W. Holmes
OK. I urlencoded the URL and now the URL passes correctly... add_to_cart.php%3Fitem_num%3DSTT32700%26quantity%3D1%26sale_price%3D52.7 8% 26 unit%3DBX%26short_desc%3DENVELOPE%2C100%25COT%2024%23%2CGY%26wholesaler% 3D US %26cost%3D37.700 ... but I get the following error: Forbidden

[PHP] Re: Auto Incrementing in PHP

2003-01-18 Thread Bobby Patel
One quick note, if you DO NOT have access to a database, you could store that incremented number to a file. And open and retrieve, and increment every time you need. If you need to take this approach checkout php.net and search for fopen. Don Mc Nair [EMAIL PROTECTED] wrote in message [EMAIL

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. Holmes... PHP

[Fwd: Re: [PHP] Number Sign in String Variables]

2003-01-18 Thread Brad Pauly
Oops... -Forwarded Message- From: Brad Pauly [EMAIL PROTECTED] To: Joab Stieglitz [EMAIL PROTECTED] Subject: Re: [PHP] Number Sign in String Variables Date: 18 Jan 2003 16:40:40 -0700 OK. I urlencoded the URL and now the URL passes correctly...

[PHP] Re: passing variables to a sql statement

2003-01-18 Thread Bobby Patel
It seems that error is from an ill-formed MySql statement. Try this, $descripQuery = SELECT descrip from project_descrip where rowid=$foo; echo $descripQuery ; // put in this echo after the query. $descripResult = mysql_query($descripQuery); echo mysql_error(); file://put this echo after query

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Steve Edberg
You need to urlencode() selectively; in this case, only the short_desc needs to be encoded, so you would have a statement something like echo add_to_cart.php?item_num=$item_numquantity=$quantity. sale_price=$sale_priceunit=$unitshort_desc=.

Re: [PHP] Number Sign in String Variables

2003-01-18 Thread Joab Stieglitz
All I'm doing is making a hyperlink that sends the selected item from the catalog to the add to shopping cart script. The code now looks like this... $value = rawurlencode(add_to_cart.php?item_num= . $item_num . quantity=1sale_price= . $our_price . unit= . $unit . short_desc= .

[PHP] SQL+php

2003-01-18 Thread Paul Marinas
Dose anyone know how to search and replace a string in a mysql_query output. Thanks, Paul -- 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 Hugh Danaher
If your customer views these items as different products then store them as separate records in the same table. My $0.02 Hugh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 18, 2003 11:55 AM Subject: [PHP] Multiple sizes for products Hi all,

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, visit:

RE: [PHP] SQL+php

2003-01-18 Thread Sean Malloy
I see a lot of these type of answers on the list at the moment. I'm sick of receiving smart ass answers from people. It wastes my time, and my bandwidth. Either answer the fucking question, even if it hasn't been asked correctly, or don't reply at all. Given you are a 'PHP Professional' John, I

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:[EMAIL PROTECTED]]

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

2003-01-18 Thread Justin French
1. If you require the back button to work forever, then do not use sessions, because they're not designed to be a forever thing. 2. I do this sort of stuff by building my own URL from $_SERVER components: ? $script = $_SERVER['PHP_SELF']; $qs = $_SERVER['QUERY_STRING']; $currentURL =

RE: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
i am trying to select some fields form a database but in there the data is something like 172.10.192.22:100, not very frendly, and instad of those numbers i whant to display on my web page something like july...that's it ..:) On Sat, 18 Jan 2003, John W. Holmes wrote: How about you describe

Re: [PHP] Auto Incrementing in PHP

2003-01-18 Thread Justin French
on 19/01/03 9:59 AM, John W. Holmes ([EMAIL PROTECTED]) wrote: Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. I assume you're

Re: [PHP] Free PHP Hosts?

2003-01-18 Thread David T-G
JJ -- ...and then JJ Harrison said... % ... % Does anyone know of a free php webhost? (Banners, poop-ups etc are % exceptable). You should ask google first: Advanced SearchPreferencesLanguage ToolsSearch Tips free web hosting php___ Google Search ... Searched the

RE: [PHP] SQL+php

2003-01-18 Thread Sean Malloy
If you want to do it within the query itself, take a look at the mysql replace command REPLACE(str,from_str,to_str) SELECT REPLACE(field,from,to) FROM table or you can do it using PHP once the query has executed, on a record by record basis, within a while/for loop or whatever. -Original

RE: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
something like that only i don't whant to alter the database, the fields in the database must remains unchanged, only, on page i whant to display diferent data. On Sun, 19 Jan 2003, Sean Malloy wrote: If you want to do it within the query itself, take a look at the mysql replace command

Re: [PHP] SQL+php

2003-01-18 Thread Justin French
where the F*** are you getting july from??? which number do you want to convert to a month, or am i totally missing it? you need to be DESCRIPTIVE in what you want to acheive. we're not a mind readers! Justin on 19/01/03 11:59 AM, Paul Marinas ([EMAIL PROTECTED]) wrote: i am trying to

Re: [PHP] SQL+php

2003-01-18 Thread Paul Marinas
:))) .it's an log for a VoIp network, evrey voip has an ip and i whant that instad of the VoIp's IP to put his name, instad of 1.1.1.1:xxx must be jhon doe form yyy city, it's easier to read for the people who that follow the logs. .. that's it ... On Sun, 19 Jan 2003, Justin French wrote:

[PHP] Changing order of just one array item?

2003-01-18 Thread Leif K-Brooks
I need to change where one item is ordered in an array. I know how to sory an array, but I need to move one item up/down in the array. Example: $array is: 0 = element one 1 = element two 2 = element three 3 = element four I call array_order_up($array[1]) and $array is now: 0 = element one 2 =

RE: [PHP] Changing order of just one array item?

2003-01-18 Thread Timothy Hitchens \(HiTCHO\)
This would do it: ?php $first[] = 'hello'; $first[] = 'bye'; function swap($list, $first, $second) { $tempOne = $list[$first]; $list[$first] = $list[$second]; $list[$second] = $tempOne; } swap($first, 0, 1); print_r($first); ? Timothy Hitchens (HiTCHO) Open

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Tom Rogers
Hi, Sunday, January 19, 2003, 5:50:51 AM, you wrote: j hi, i'm hoping someone can help me out here - im trying to pass a variable from a string in the href tag, however my sql breaks when i put a var in the statment. j when i replace $foo with a number, the page works fine. can someone please

php-general Digest 19 Jan 2003 03:23:15 -0000 Issue 1831

2003-01-18 Thread php-general-digest-help
php-general Digest 19 Jan 2003 03:23:15 - Issue 1831 Topics (messages 132094 through 132157): Re: Select multiple boxes 132094 by: Cal Evans 132097 by: Gregory Chagnon 132098 by: John W. Holmes 132099 by: Cal Evans Re: Ever complained about lousy PHP

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

2003-01-18 Thread -[ Rene Brehmer ]-
Hi Cal Evans, On Sat, 18 Jan 2003 10:17:01 -0600, you wrote about RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout??? something that looked like this: I guess I'm dense this morning. In response to 1: $_SESSION['mother']=$_SERVER['PHP_SELF']; Didn't know the

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

2003-01-18 Thread -[ Rene Brehmer ]-
Hi Justin French, On Sun, 19 Jan 2003 12:01:45 +1100, you wrote about Re: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout??? something that looked like this: 1. If you require the back button to work forever, then do not use sessions, because they're not designed to

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

2003-01-18 Thread Justin French
on 19/01/03 2:45 PM, -[ Rene Brehmer ]- ([EMAIL PROTECTED]) wrote: I haven't found the server array in the manual (yet anyway), so I'm not sure what exactly it is you're doing ... so a bit of 'splaining would be nice ... I'm only on my 4th month of PHP'ing afterall ...

Re: [PHP] Can I use php to load a icon?????(.ico .exe .....)

2003-01-18 Thread hei
I mean how can I edit icon??? -- 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
.it's an log for a VoIp network, evrey voip has an ip and i whant that instad of the VoIp's IP to put his name, instad of 1.1.1.1:xxx must be jhon doe form yyy city, it's easier to read for the people who that follow the logs. .. that's it ... So where do you get the name from. You're

RE: [PHP] SQL+php

2003-01-18 Thread John W. Holmes
I see a lot of these type of answers on the list at the moment. I'm sick of receiving smart ass answers from people. It wastes my time, and my bandwidth. Either answer the fucking question, even if it hasn't been asked correctly, or don't reply at all. Given you are a 'PHP

Re: [PHP] Free PHP Hosts?

2003-01-18 Thread JJ Harrison
I did do that, and have yet to turn up a useful result. That is why I asked. David T-G [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -- 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 Sean Malloy
I apologise for calling you a PHP Professional, clearly I was mistaken. ;) -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, 19 January 2003 4:36 PM To: 'Sean Malloy'; [EMAIL PROTECTED] Subject: RE: [PHP] SQL+php It's _for_ PHP Professionals. If I read a

[PHP] CVS In PHP

2003-01-18 Thread Trilochan
Hello Every body , I have written some programs in c , I want to run those programs in my PHP script. Is there any way to do that . Any suggestion is highly appreciated. Regards Trilochan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Upload

2003-01-18 Thread Trilochan
Hello Every body , I want to make a provision for the suer , by which , they can select number of files from a list box and upload them to the server in PHP. Any suggestion is highly appreciated. Regards Trilochan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] whois script or class

2003-01-18 Thread Ashley M. Kirchner
I'm looking for a script, or class, that I can feed a domain name to and get back whois information, preferably already parsed into things like, the registrar, the registrant, ns servers, created/expire dates... Regardless of who the registrar is. Anyone? -- M | I haven't lost my mind;

RE: [PHP] File Upload

2003-01-18 Thread John W. Holmes
Every body , I want to make a provision for the suer , by which , they can select number of files from a list box and upload them to the server in PHP. They have to select each file individually. Each file must be uploaded through it's own input type=file input element. The details of how

Re: [PHP] whois script or class

2003-01-18 Thread Jason k Larson
http://phpwhois.org/ Ashley M. Kirchner wrote: I'm looking for a script, or class, that I can feed a domain name to and get back whois information, preferably already parsed into things like, the registrar, the registrant, ns servers, created/expire dates... Regardless of who the