Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
The way I do it is to stick all those global variables into an include file, which I usually named something like global.php. Just do that and require() the file at the top of all your scripts which need it. Keep things like page color, text color, font, etc in the global file. If you ever need

Re: [PHP] Reading a file and changing a href tag values

2001-04-14 Thread Plutarck
All you need is a regular expression, provided by ereg function or preg functions. You'd have the regex look for a href then capture everything up to /a Then just adjust the result as you want it to appear. You'll need to either search around for code that already does this, or be willing to

[PHP] PHP MySQL Search Results

2001-04-14 Thread Jason Caldwell
Does anyone know (or have) of a good example of how to create search results like a Yahoo or MSN search? for example: Say I do a search for "cars" and there are 10,000 records in my table that match "car"... I would like to show the results in blocks of (say) 25 at a time, therefore I will need

[PHP] antifraud logic for voting poll, banner clicks

2001-04-14 Thread Keyur Kalaria
Hello everybody, I am working on a banner exchange site and a site rating script. Can anyone suggest me how to avoid the fraud rating and fraud banner clicks. What all things we need to take care for the same etc. Thanks in advance. Keyur -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Need a URL....

2001-04-14 Thread rm
Thank you rm --- Keyur Kalaria [EMAIL PROTECTED] wrote: it is http://marc.theaimsgroup.com/ regards keyur __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing

[PHP] Forcing Case

2001-04-14 Thread midget2000x
Is there any way to force case...like if I have a string and want it to appear in all lowercase (or uppercase, God forbid)? Thanks, Rory --- providing the finest in midget technology -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Backend system for skinz.org/deskmod.com?

2001-04-14 Thread Long Lam
I've been searching for a week for a script similar to the backend systems used on sites such as skinz.org and deskmod.com. I'd like to adapt their user review/rating systems to allow my visitors to rate class courses and professors. Does anyone know if there's a complete script available

[PHP-CVS] cvs: CVSROOT / avail cvsusers

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 00:57:16 2001 EDT Modified files: /CVSROOTavail cvsusers Log: add Andy Sautins + karma for oci8 Index: CVSROOT/avail diff -u CVSROOT/avail:1.144 CVSROOT/avail:1.145 --- CVSROOT/avail:1.144 Thu Apr 12 09:35:40 2001 +++ CVSROOT/avail

Re: [PHP] slashes added to template files

2001-04-14 Thread Floyd Piedad
Check your PHP config. On the remote server, you probably have Magic Quotes Runtime Activated while on the local machine it is not. Best if you make both the same config. Run php info command to check. Floyd Franklin Hays wrote: Apologies in advance if this has been discussed before or

[PHP-CVS] cvs: php4 /ext/oci8 CREDITS

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 01:06:40 2001 EDT Modified files: /php4/ext/oci8 CREDITS Log: the collections stuff s worth mentioning in the credits! Index: php4/ext/oci8/CREDITS diff -u php4/ext/oci8/CREDITS:1.1 php4/ext/oci8/CREDITS:1.2 ---

[PHP-CVS] cvs: CVSROOT / avail

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 01:26:21 2001 EDT Modified files: /CVSROOTavail Log: some karma for the 2 new oci8 guys Index: CVSROOT/avail diff -u CVSROOT/avail:1.145 CVSROOT/avail:1.146 --- CVSROOT/avail:1.145 Sat Apr 14 00:57:16 2001 +++ CVSROOT/avail Sat

[PHP-CVS] cvs: php4 /ext/oci8 CREDITS oci8.c

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 01:38:46 2001 EDT Modified files: /php4/ext/oci8 CREDITS oci8.c Log: @- Added temporary LOB support in OCI8 (Patch by David Benson) Index: php4/ext/oci8/CREDITS diff -u php4/ext/oci8/CREDITS:1.2 php4/ext/oci8/CREDITS:1.3 ---

Re: [PHP] PHP MySQL Search Results

2001-04-14 Thread Plutarck
In a MySQL query you can use the LIMIT keyword, like in phpmyadmin. Use limit 0,10 to get the first ten results in a query. Then do the query again but use 10,10 for the limit. The first number is the "offset", and the second one is the maximum results to return. That's the way most people do

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Delbono
Try this (it should work): while(list($k, $v) = each($myarray)){ $myarray[$k] = (int) $v; } arsort($myarray); reset($myarray); while(list($k, $v) = each($myarray)){ echo $k, ' == ', $v, "BR\n; } For better comprehension look at this post: Hey guys.. I have this array that looks like

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Delbono
hh, no, maybe the samplecode I posted it's not your case, sorry... I have a question about sorting multidimensional arrays. Here is my problem: I have an 2-d array: $joke[1][rating]=10; $joke[2][rating]=20; $joke[3][rating]=15; I would like to sort the jokes into an array

Re: [PHP] Sessions?

2001-04-14 Thread Ashley M. Kirchner
Plutarck wrote: The way I do it is to stick all those global variables into an include file, which I usually named something like global.php. Um no. These aren't static variables. They change from page to page. For example, page one $foo=0, $bar=3, $baz='Closed' They follow a

[PHP-CVS] cvs: php4 /ext/oci8 config.m4 oci8.c oci8.dsp

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 02:51:29 2001 EDT Modified files: /php4/ext/oci8 config.m4 oci8.c oci8.dsp Log: enable temporary LOBs when we detect oracle 8.1 enabled by default in Win32 project! Index: php4/ext/oci8/config.m4 diff -u

[PHP] Installing PHP 4 as rpm on RedHat 6.2 !!

2001-04-14 Thread Mohamedou
Hello All, I have already php 3.0.18 installed on my RH 6.2 box. I want to install PHP 4 now. But if I still the following message: [root@proxy mohamedou]# rpm -Uvh php-4.0.4pl1-3.i386.rpm error: failed dependencies: libdb-3.1.so is needed by php-4.0.4pl1-3 libgd.so.1.8 is

[PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-14 Thread Thies C. Arntzen
thies Sat Apr 14 03:30:05 2001 EDT Modified files: /php4 TODO-4.1.txt Log: . Index: php4/TODO-4.1.txt diff -u php4/TODO-4.1.txt:1.2 php4/TODO-4.1.txt:1.3 --- php4/TODO-4.1.txt:1.2 Fri Apr 13 16:52:15 2001 +++ php4/TODO-4.1.txt Sat Apr 14

[PHP] PHP for Apache 2.0

2001-04-14 Thread Patrick Dunford
/ Ill-gotten treasures are of no value, but righteousness delivers from death. -- Proverbs 10:2 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010414 === Created by Mail2Sig - http://pdunford.godzone.net.nz/software

RE: [PHP] Forcing Case

2001-04-14 Thread James Moore
RTFM: http://www.php.net/manual/en/function.strtoupper.php http://www.php.net/manual/en/function.strtolower.php http://www.php.net/manual/en/function.ucfirst.php - James -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: 14 April 2001 08:16 To: [EMAIL PROTECTED]

[PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread news.php.net
hello... anyone know where i can downlaod voteBOOTH.php w/ the image viewer?! or does anyone have it that you can send to me..? thanxz! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] header( )

2001-04-14 Thread Christian Reiniger
On Saturday 14 April 2001 03:47, you wrote: On 11 Apr 2001 08:12:20 -0700 AD in php.general, Chris Lee said: I'll post you a simple HTTP auth script. but you should realize = something about header() client - server server - client the client sends some HTTP request to the server, then

[PHP] user info?

2001-04-14 Thread Ramiro Radjiman
Hi there, I'm just wondering if there is a method to extract user specific info when this user connects to the site. U user must have a handle, but i don't want him to login. So i thaught if i can get specific userinfo from the client, this info would be his handle to walk trough the site. If

Re: [PHP] Forcing Case

2001-04-14 Thread Christian Reiniger
On Saturday 14 April 2001 09:15, you wrote: Is there any way to force case...like if I have a string and want it to appear in all lowercase (or uppercase, God forbid)? http://www.php.net/strtolower -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

[PHP] Big sites running PHP

2001-04-14 Thread Phil Driscoll
For those who need to convince their bosses that PHP (+mysql +apache) is up to the job, the following (recently slashdotted) link may be useful: http://www.webtechniques.com/archives/2001/05/hong/ Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com

[PHP] session

2001-04-14 Thread E K L
Hi, Is there anybody can help to do this: My web site has 3 pages :a.php, b.php and c.php. I want to capture the session in those 3 pages. Without an id, visitor can't view my page. When visitors leave the site, thier session should be removed. The problem is how to remove the

[PHP] Abnormal performance of PHP_MSSQL70.DLL

2001-04-14 Thread Jia Li
hi, thank you for taking time reading this email. i experienced an abnormal happening from my php_MSSQL70.dll. My computer config: AMD 850+SDRAM 256 OS: MS Windows 2000 SERVER + sp1 HTTPD Server : Apache 1.3.19 PHP version : 4.0.4 MSSQL version : 2000 i altered the Extension part of the

[PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Anyone know if one day PHP will support multiple inheritance? I think it's very important... For example, will PHP support this code: class A extends B, extends C { } where B and C are classes? Thanks! Alberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread Plutarck
Nope, I'm afraid not. Currently PHP will support single level inheritance only. So A can extend B, but C cannot extend B. You will need to create a class of B to extend it with C. I suppose PHP may one day support it, but I am guessing that the Zend API can't currently handle it. I think it

[PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Hi, i installed Apache, PHP and mySQL on winNT. I am trying to get htaccess files to work. I created a .htaccess file in a directory with this line in it: errordocument 404 /404.php I changed the httpd.conf file for apache and restarted apache like this: # AllowOverride None AllowOverride All

Re: [PHP] sorting multi-dimensional arrays

2001-04-14 Thread Plutarck
The easiest way is probably to just use a for loop. For instance (no pun intended...well, maybe just a little one): $imax = sizeof($joke); for ($i = 0; $i $imax; $i++) { if (sizeof($joke[$i]) 1) { sort($joke[$i]); } } That will handle the sorting of any two-dimensional

Re: [PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Also, I am trying to find a way to get this to work: within the directory I'm in, 1/5/2/3 should be rewritten to index.php?a=1b=5c=2d=3 I'm sure lots of people have done this before, but the Apache examples don't seem to include this. Where can I find a working example? Thanks! Peter Hi, i

Re: [PHP] Sessions?

2001-04-14 Thread Plutarck
Ahh. I reread your post and now I see what you were originally asking. Yes, sessions are the best way to handle it then. The variables "live" by sending a specially augmented header to the client. The header sort of "sticks" to the client so that their session ID is automatically sent in their

[PHP] W2K Install Problem

2001-04-14 Thread Jeff Oien
When I try to run a PHP script through a Web browser it just displays the code. I did a clean install of W2K and installed Apache. I copied the php.ini to the WINNT and system folders. Not sure where to go from here. BTW how do you open a command window in W2K? Thanks. Jeff Oien -- PHP General

[PHP] Explain recordset

2001-04-14 Thread Mike P
I'm trying to figure out the way recordsets are handled with php and mysql.After I issue a query to the Db with $result = mysql_query ($query) is the recordset contained in $result or is this just a pointer.I want a persistant recordset on the client computer that can be manipulated without

[PHP] counter reseting help!

2001-04-14 Thread McShen
hi I am writing a small counter for my site. But i am not sure how to reset the counter every 24h. How should i do it? any suggestions would be much appreaciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] help on something simple?

2001-04-14 Thread Andrew Durk
I can get connected to my host's MySQL database w/o error, but I cannot seem to do anything after that. I do: $db = mysql_connect("localhost", "username"); mysql_select_db("subsurface_net",$db); No problem, but if I do this: $result = mysql_query("SELECT * FROM customer_genre",$db); I

[PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
Hi, I think I'm being stupid. Why won't this code work. The $article_active variable is showing y when I echo it? if($article_active == 'y') { echo"INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"y\" SELECTEDYes"; } else { echo"INPUT TYPE=\"radio\" NAME=\"active\"

Re: [PHP] counter reseting help!

2001-04-14 Thread Plutarck
How are you saving the current counter amount? For instance if it's in a database, add a date field. Check to see if the date is more than 24 hours old before displaying the current counter. If it is then update the database and make the counter number 0. If it's not older than 24 hours, just

Re: [PHP] Explain recordset

2001-04-14 Thread Plutarck
$result holds a "resource id". When you do anything like mysql_fetch_row it sends a request to the database. All results, until you "fetch" them, are kept in MySQL. If you want to store the results away from the DB you will need to do something like: while ($array[] = mysql_fetch_row($result));

Re: [PHP] PHP for Apache 2.0

2001-04-14 Thread Alexander Wagner
Patrick Dunford wrote: According to Apache, modules made for Apache 1.3 will not work as-is in 2.0 due to changes in the API. Is a version of PHP 4 for Apache 2.0 coming out? Try the configure-option --with-apxs2 instead of --with-apxs and it should work with Apache 2. PHP 4 supports far

Re: [PHP] help on something simple?

2001-04-14 Thread Plutarck
What function are you calling on $result when it returns the error? Try doing this, all in one place: $db = mysql_connect("localhost", "username"); mysql_select_db("subsurface_net", $db); $result = mysql_query("SELECT * FROM customer_genre", $db); echo mysql_num_rows($result); When you use

[PHP] Extract from string

2001-04-14 Thread n e t b r a i n
Hi all, anyone have or know where I can find a small function in order to extract from a string the most relevant words in it? something like this: $var="I love coffe ... Coffe is from Brazil and coffe with milk .."; $occurence=2; //$occurence means word that are repeat 2 or more times

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Plutarck
I'm not sure I understand. In the first loop you are seing if $article_active equals y. And no where in the code do you set $article_active to anything else. Why would you think $article_active would be anything but "y" or "n"? -- Plutarck Should be working on something... ...but forgot what

[PHP] PHP without a webserver

2001-04-14 Thread Plutarck
I've heard much about how PHP is far more than just a language for web programming, and I agree. I agree enough that I would like to actually try it. I'd like to use PHP scripting in a C/C++ program that doesn't need a webserver as an intermediary. I basically want to use PHP in a

php-general Digest 14 Apr 2001 15:38:40 -0000 Issue 627

2001-04-14 Thread php-general-digest-help
the following message: [root@proxy mohamedou]# rpm -Uvh php-4.0.4pl1-3.i386.rpm error: failed dependencies: libdb-3.1.so is needed by php-4.0.4pl1-3 libgd.so.1.8 is needed by php-4.0.4pl1-3 libc.so.6(GLIBC_2.1.3) is needed by php-4.0.4pl1-3 libc.so.6(GLIBC_2.2) is needed by p

RE: [PHP] W2K Install Problem

2001-04-14 Thread Long Lam
Win2k's command prompt is located under the start button/programs/accessories/command prompt. At 09:53 AM 4/14/2001 -0500, Jeff Oien wrote: I got it to work. I would still like to know how to open a command window in W2K though. I had a reference to d:/php4/ instead of d:/php/ which is where

[PHP] Javascript in a header

2001-04-14 Thread Dan Harrington
Hello, Am I brain damaged or will something like this work? header("Location:javascript:window.open('http://login.php?arg1arg2','','windowname')"); I want to popup a login script in a sub-browser window, and then pass the results back to the main window. Someone told me that the javascript in

[PHP] strange error

2001-04-14 Thread n e t b r a i n
Hi all, I don't know why this (quick dirty) small function: function esiste_url($file){ @$fp=fopen($file,"r"); if(!$fp){return false;}else{return true;} @fclose($fp); } //it checks if a url submit via form client exist in two different pages: a.php3 --- works fine

Re: [PHP] PHP MySQL Search Results

2001-04-14 Thread Jason Caldwell
Hi Jason, Say you have a search form that says search for "searchbox" and the search box has a variable name of "search": ? /* Include connection details, with a variable of $connection */ if (!$page) { $page = 1; } $limit = $page * 25; $limit = $limit - 25; $sql = "SELECT FROM table

Re: [PHP] strange error

2001-04-14 Thread Phil Driscoll
It may not be responsible for the error, but you ought to move your fclose to before your return(true) statement, as it never gets executed at all in your code. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General

Re: [PHP] Do any of you provide hosting?

2001-04-14 Thread Manuel Lemos
Hello Chris, On 12-Apr-01 14:05:38, you wrote: I currently am using Thehostpros.com for my hosting, but I can't say its been a pleasant experience. I had to have them install PHP because they are more ASP oriented. So that cost me more. Then I wanted MySQL and they have spent 3 months saying

[PHP] Using gnupg with php - errors

2001-04-14 Thread sohara
Hello all, This has been covered before, but I can't get it to work and I've searched all the archives already. I am trying to encrypt a small string of data. I am using a script by Richard Lynch as my starting point. I found it here: http://www.weberdev.com/get_example.php3?count=1379 Now,

[PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread davek
Does anybody know how to fix this error? "Supplied argument is not a valid MS SQL-Link resource" I am running: NT4 MSSQL7.0 IIS4 PHP 4.0.4pl1 I've been running php3 for some time now without any problems but want to upgrade to 4. This error seems to be occuring at the mssql_query() function.

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the

RE: [PHP] PHP without a webserver

2001-04-14 Thread Jeroen Wesbeek
well actually you could compile php4 on it's own so you get a php executable which you can use as an interpreter for php4 scripts... no webserver needed dowebwedo Jeroen Wesbeek .programming Nieuwekade 213 | 3511 RW Utrecht The Netherlands p 030 2380544 | f 020 8632045 [roses are red, violets

Re: [PHP] HTML and PHP?

2001-04-14 Thread Les Neste
I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. At 01:56 PM

RE: [PHP] PHP without a webserver

2001-04-14 Thread Les Neste
Can anybody comment on PHPTriad? This appears to be PHP+MySQL+Apache for the Windows desktop. At 07:51 PM 4/14/2001 +0200, Jeroen Wesbeek wrote: well actually you could compile php4 on it's own so you get a php executable which you can use as an interpreter for php4 scripts... no webserver

[PHP] Red Hat 7.0

2001-04-14 Thread Mauricio Junqueira
I am trying to start the server and it returns the following in the interbase.log. ns1.mautec.com (Client) Sat Apr 14 22:06:05 2001 INET/inet_error: connect errno = 111 ns1.mautec.com (Client) Sat Apr 14 22:06:05 2001 /opt/interbase/bin/ibguard: guardian starting bin/ibserver

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Ah, even better. However, how would the script be passed to PHP? As a command line argument? -- Plutarck Should be working on something... ...but forgot what it was. "Jeroen Wesbeek" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... well actually you could

Re: [PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread Plutarck
http://us.php.net/manual/en/function.mssql-select-db.php *_select_db does not return a connection id, it returns true or false. Just change your script like this: $Conn=mssql_connect('192.168.1.20','username','password'); mssql_select_db('My_Database',$Conn); $QueryString="select id, name from

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:11:35 PM on 4/14/2001, Plutarck wrote: Ah, even better. However, how would the script be passed to PHP? As a command line argument? Install the CGI executable of PHP in c:\php In your autoexec.bat: SET PATH=c:\php;%PATH% Reboot. From the command line: php -q script.php

Re: [PHP] user info?

2001-04-14 Thread Brian Clark
Hi Ramiro, @ 6:48:38 AM on 4/14/2001, Ramiro Radjiman wrote: ... I'm just wondering if there is a method to extract user specific info when this user connects to the site. http://www.php.net/manual/nl/function.getenv.php May be what you're looking for. U user must have a handle, but i

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Ahh, so it's the location of the script that get's passed. Now, if the script was coming from a program, is there a way to hand the file directly to PHP, or will a temporary file have to be used? So if a user filled in a form and clicked a button in the program, the program would toy with the

Re: [PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread Brian Clark
@ 6:50:49 AM on 4/14/2001, news.php.net wrote: hello... anyone know where i can downlaod voteBOOTH.php w/ the image viewer?! or does anyone have it that you can send to me..? I don't know anything about a poll type script with an image viewer, but look around here:

Re: [PHP] Forcing Case

2001-04-14 Thread Brian Clark
Hi James, @ 6:44:08 AM on 4/14/2001, James Moore wrote: ... http://www.php.net/manual/en/function.strtoupper.php http://www.php.net/manual/en/function.strtolower.php http://www.php.net/manual/en/function.ucfirst.php Another extremely useful one is ucwords()

[PHP-CVS] cvs: php4 /ext/ircg config.m4 ircg.c

2001-04-14 Thread Sascha Schumann
sas Sat Apr 14 11:49:04 2001 EDT Modified files: /php4/ext/ircg config.m4 ircg.c Log: Make it possible to build ircg without thttpd Index: php4/ext/ircg/config.m4 diff -u php4/ext/ircg/config.m4:1.6 php4/ext/ircg/config.m4:1.7 ---

Re: [PHP] antifraud logic for voting poll, banner clicks

2001-04-14 Thread Brian Clark
Hi Keyur, @ 2:57:56 AM on 4/14/2001, Keyur Kalaria wrote: ... Can anyone suggest me how to avoid the fraud rating and fraud banner clicks. What all things we need to take care for the same etc. Have a look at how those are implemented in phpAds and phpPolls: http://www.phpwizard.net/

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Les, @ 2:09:01 PM on 4/14/2001, Les Neste wrote: I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the

[PHP] A tricky problem

2001-04-14 Thread David Tandberg-Johansen
This is maybe of topic, but I try. I have this site where the user first selects a langueage, and then i use session_register() to register the information. Then I use the the registered onformatin to dispaly the site text in the user selected language. The user put the selected things in a

[PHP] R: [PHP] CLASSES AND OBJECTS..

2001-04-14 Thread alberto
Yes... Becouse in some large projects, it's very hard to wok with a single level inheritance... i think that PHP is a very good language and come better every day... so i hope in the future programmers can use multiple inheritante with classes in PHP. Thank for the answer Alberto "Plutarck"

[PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson
Alright I'll start this out by saying I have a subscription to "Visual Basic Programmers Journal". Before I converted and realized that I loved PHP so much I used ASP. Well it seems that in this magazine that XML is a hot topic in the MS world. I know XML can be used by PHP, but is there a

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:40:28 PM on 4/14/2001, Plutarck wrote: Ahh, so it's the location of the script that get's passed. Yes: % cat test.php ?php while(list($i,$arg) = each($argv)) { print "$i: $arg\n"; } ? % php -q test.php a b c d e f g 0: test.php 1: a 2: b 3: c 4: d 5: e 6: f 7: g %

Re: [PHP] A tricky problem

2001-04-14 Thread Brian Clark
Hi David, @ 3:06:19 PM on 4/14/2001, David Tandberg-Johansen wrote: ... The problem is: If a user leaves the site because the user doesn't want to go thrue with the order, or if the user closes the broser, then the recods of the selected info are still in the temp TABLE. How can I delete

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 12:01:45 AM on 4/14/2001, Chris Anderson wrote: Am I missing something here? This has been discussed many times. There was an extremely long thread last year about XML, but I can't find it in the archives. Here's a good start:

[PHP] setuid

2001-04-14 Thread Ulysses Almeida
Hi... Is there a way to use posix_setuid without set Apache to run as root? Or, is there some other function to do the same thing? []s .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- PHP General Mailing List

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson
thanks that helped I stll think it sounds like its more geared for the MS crowd - Original Message - From: "Brian Clark" [EMAIL PROTECTED] To: "PHP is not a drug." [EMAIL PROTECTED] Sent: Saturday, April 14, 2001 3:29 PM Subject: Re: [PHP] What's XML's Purpose?? Hi Chris, @

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 1:17:25 PM on 4/14/2001, Chris Anderson wrote: ... I stll think it sounds like its more geared for the MS crowd No way. "XML is a set of rules, guidelines, conventions, whatever you want to call them, for designing text formats for such data, in a way that produces files that are

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Plutarck
I use to be really enthusiastically pro-XML just as I was getting into PHP, but now I've basically taken a "XML shmexXML" approach. I get the initial attraction, but I would think the love would fade off a bit. The key that so many people seem to forget is the best way to do HTML is with,

Re: [PHP] PHP without a webserver

2001-04-14 Thread Plutarck
Btw, thanks for all your answers to far ;) I have no idea. What language? Using system() in C and Perl, I'm sure you could concoct something. Why would you want to do that? A move recently being made by game programmers has been to move an increasing amount of work into a scripting engine.

Re: [PHP] HTML and PHP?

2001-04-14 Thread Jason Caldwell
Just make sure you don't indent the closing marker or the parser will miss it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...) FYI

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread phpman
hold on here, XML and HTML have, as far as I'm concerned, nothing to do with each other. I'm using XML to link databases on the sites I write (with PHP) with disparate databases on other Inernet servers. A good example would be linking up with UPS's online rates application server. I send an XML

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Jason Caldwell
amen brother! ""Plutarck"" [EMAIL PROTECTED] wrote in message 9baam8$6sh$[EMAIL PROTECTED]">news:9baam8$6sh$[EMAIL PROTECTED]... I use to be really enthusiastically pro-XML just as I was getting into PHP, but now I've basically taken a "XML shmexXML" approach. I get the initial attraction,

[PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Mesut TUNGA
Hi All, we have 2 mysql server located two dfiferent iss. one of them compiled latin1 with php-4.0.4pl1 and other one compiled latin5 with php-4.0.3.pl1. when we tried to connect from latin1 compiled one to latin5 compiled one, it gives this error: Warning: MySQL Connection Failed: Can't

[PHP] Sorry :(

2001-04-14 Thread Chris Anderson
I realized that'll that I don't do much to help this community. I rarely reply to people's questions. Mainly because I have 56.6 and when I get mail people answered already. I also ask alot of questions. Just saying thanks for putting up with me. Chris, The 17 yr

Re: [PHP] Sorry :(

2001-04-14 Thread Richard
Hey, take it easy, I started like that too, I think we all did. - Richard ""Chris Anderson"" [EMAIL PROTECTED] wrote in message 001301c0c51c$3cb49e40$0d1012d1@null">news:001301c0c51c$3cb49e40$0d1012d1@null... I realized that'll that I don't do much to help this community. I rarely reply to

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Michael Kimsal
Plutarck wrote: I use to be really enthusiastically pro-XML just as I was getting into PHP, but now I've basically taken a "XML shmexXML" approach. I get the initial attraction, but I would think the love would fade off a bit. The key that so many people seem to forget is the best way to

Re: [PHP] Extract from string, version 2.0

2001-04-14 Thread Steve Edberg
OK, this is less elegant (to me, anyway), and probably a bit slower, but: function word_occurrence($word,$phrase) { $word = strtolower($word); # this way, $phrase = strtolower($phrase); # case is irrelevant $Bits = split('[^[:alnum:]]+', $phrase); $count = 0; for ($i=0;

[PHP] next release?

2001-04-14 Thread Michael Kimsal
I'm seeing references to functions that 'are' in 4.0.6, but I wasn't even aware that 4.0.5 was released yet. I've seen references to RCs for 4.0.5, but nothing's on the php.net page. Did I miss something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Sorry :(

2001-04-14 Thread Brian Clark
Hi Chris, @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: I realized that'll that I don't do much to help this community. I rarely reply to people's questions. Mainly because I have 56.6 and when I get mail people answered already. I also ask alot of questions. Just saying thanks for

Re: [PHP] Sorry :(

2001-04-14 Thread Chris Anderson
Well thanks everyone, don't feel like I'm "leeching" from the community anymore. Now when it comes to me and napster, thats another story - Original Message - From: "Brian Clark" [EMAIL PROTECTED] To: "PHP is not a drug." [EMAIL PROTECTED] Sent: Saturday, April 14, 2001 7:47 PM

Re: [PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Brian Clark
Hi Mesut, @ 6:19:04 PM on 4/14/2001, Mesut TUNGA wrote: ... Warning: MySQL Connection Failed: Can't initialize character set 30 (path: default) in /home/user/public_html/createtable.php on line 2 http://www.mysql.com/doc/C/a/Cannot_initialize_character_set.html -Brian -- PGP is spoken

Re: [PHP] session

2001-04-14 Thread Yasuo Ohgaki
I guess you are using "files" session module. If you take a look at note in PHP Manual, there is my note why your session files are not deleted. (See Session reference) Hope this helps. -- Yasuo Ohgaki ""E K L"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Hi, I have a MySQL table recording errors, 1 of the fields is a DATETIME, to give me the time of the error. I have made a file which will then display a table of errors. I would like to display the date and time in a more readable format, even just with spaces between the years months etc.

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread Brian Clark
Hi DRN, @ 8:34:08 PM on 4/14/2001, DRN wrote: ... $date = $row["date"]; $new_date = date("l, j M Y, G:i:s", strtotime($date)); ~~ but I cannot get this to work :(, I get an "unexpected error in date()" ... Try this and see if it functions correctly: ?php $date =

[PHP] Display Formatted Query Results

2001-04-14 Thread Jeff Holzfaster
Hi All, My apologies if this is too wordy. This is driving me nuts. I have very little experience or knowledge of PHP and MySQL but have been put in a position that requires me to build several applications that require me to figure them out. I am making progress, though. Here is my first

Re: [PHP] Display Formatted Query Results

2001-04-14 Thread Brian Clark
Hi Jeff, @ 8:52:10 PM on 4/14/2001, Jeff Holzfaster wrote: ... My apologies if this is too wordy. A little confusing, but here we go. If this makes no sense what so ever, maybe someone else can provide a better way of doing what you're describing here. ... I have a form page that looks like

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread Chris Adams
On 14 Apr 2001 17:31:02 -0700, DRN [EMAIL PROTECTED] wrote: $date = $row["date"]; $new_date = date("l, j M Y, G:i:s", strtotime($date)); ~~ but I cannot get this to work :(, I get an "unexpected error in date()" At a guess strtotime() is choking on the format MySQL used to return the date,

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread DRN
Brian Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hi DRN, | Try this and see if it functions correctly: | | ?php | | $date = str_replace('-','/',$row["date"]); | $new_date = date("l, j M Y, G:i:s", strtotime($date)); | | ? | That works great, thanks

  1   2   >