Re: [PHP] Re: Debugger

2002-05-12 Thread José León Serna
Hello: > If there was at least some links on the PHP.net site, that would help > people to know they're available. http://www.php.net/manual/en/debugger.php Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unhandled exception processing the ISAPI

2002-05-12 Thread Keith AY
Hi all, I got a problem when using PHP Server: win2000(sp2) Version: 4.2.0 Application use: ODBC, sessions, oci8, oracle. I tried PHP ISAPI version (4.2.0) I am using generic client socket(i.e. fsockopen()) to communicate with a server. It work fine at the begin, but I found that if the server s

[PHP] Searching for XML mailing list

2002-05-12 Thread Manisha
I am searching for good XML related mailing lists / sites etc. Please give me some info about this. manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] inserting data to mutliple mysql tables

2002-05-12 Thread Peter
Thanks every one who replied Sorry for posting that question here. Miguel thanks for putting me on the right track with this .. i couldn't get it to work with mysql_insert_id() but looking that up it basically said that this one works better LAST_INSERT_ID() but I wouldn't have found that if yo

RE: [PHP] Generate inline image

2002-05-12 Thread Martin Towell
yep, then in the file generateimage.php you'd have obviously, the above "code" is for png, but you can use any that your gd library/broswer supports. -Original Message- From: Engineering Software Center [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 2:42 PM To: Martin Towell Cc:

RE: [PHP] Generate inline image

2002-05-12 Thread Engineering Software Center
Thanks for the reply. But how do I do that exactly? ? is this correct? > HTML docs only contain text. If you want images "inline" then you use the > tag. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting only 255 chars from SQL Server

2002-05-12 Thread David McGregor
I have an SQL Server database running on a server on the internet. I need to have php connecting to the db and returning values. Simple stuff. No problem making the connection and getting data using the mssql functions. The weird thing is that 4 of the fields in the table are vchar fields of l

Re: [PHP] restricting extentions at install

2002-05-12 Thread Jason Wong
On Monday 13 May 2002 08:54, Andrew DeFever wrote: > Just would like to know how you restrict php to certain extentions before > you compile. You mean whether or not to interpret file as php depending on .php, .php3 etc ? If so that is determined at run-time by your webserver. -- Jason Wong ->

[PHP] Re: How can obtain referer's name?

2002-05-12 Thread Austin Marshall
Alex Shi wrote: > Hi! > > I want to know how can a script obtain the page name where > it was linked. e.g., there's a link on page.html, and the link > points to script.php, how can script.php know the name of > page.html? Thanks in advance for all answer! > > Alex $_SERVER["HTTP_REFERER"]

RE: [PHP] inserting data to mutliple mysql tables

2002-05-12 Thread John Holmes
You have to do separate inserts...you can't JOIN inserts like that... ---John Holmes... > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 8:38 PM > To: Php > Subject: [PHP] inserting data to mutliple mysql tables > > Hi, > > I have a table that'

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha
Thanks Miguel, Manisha At 10:38 PM 5/12/02 -0500, Miguel Cruz wrote: >On Mon, 13 May 2002, Manisha wrote: > > At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote: > >>> I just want to know whether it is necessary (compulsory) to have file > lock > >>> before writing to file? > >> > >> It is definit

Re: [PHP] inserting data to mutliple mysql tables

2002-05-12 Thread Miguel Cruz
This is a MySQL question, not a PHP question. Anyway, with MySQL you can't do this as a single operation. Do your inserts one after the other. You can use mysql_insert_id() after each one to get the value of an auto_increment field that was created, and feed that into your next SQL statement. m

RE: [PHP] inserting data to mutliple mysql tables

2002-05-12 Thread Martin Towell
Isn't this more of a database question than a PHP question? -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:38 PM To: Php Subject: [PHP] inserting data to mutliple mysql tables Hi, I have a table that's full of references to indexs in other tables

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Miguel Cruz
On Mon, 13 May 2002, Manisha wrote: > At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote: >>> I just want to know whether it is necessary (compulsory) to have file lock >>> before writing to file? >> >> It is definitely a good idea if you don't want corruption. You may find >> a database is easier in th

[PHP] inserting data to mutliple mysql tables

2002-05-12 Thread Peter
Hi, I have a table that's full of references to indexs in other tables if I want to insert a new record do I have to make a script to insert into all the tables ie: insert script for table 1 insert script for table 2 insert script for table 3 insert script for table 4 or can I have it all in on

RE: [PHP] random order

2002-05-12 Thread John Holmes
I don't know if this will work or not, but try SELECT * FROM table ORDER BY id, RAND(); That should keep all of the questions and answers together, but give a random order for the answers.. ?? Like I said, not exactly sure on it though. Best option, like someone else said, is to split this up i

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha
At 10:06 PM 5/12/02 -0500, Miguel Cruz wrote: > > > I just want to know whether it is necessary (compulsory) to have file lock > > before writing to file? > > > >It is definitely a good idea if you don't want corruption. You may find a >database is easier in the long run. Do you mean to say that

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Miguel Cruz
On Mon, 13 May 2002, Manisha wrote: > I am having a form, I want to write the form values into csv file. > > I just want to know whether it is necessary (compulsory) to have file lock > before writing to file? > > There is only my program which is writing in the file - no other program. > But

Re: [PHP] Re: function over loading?

2002-05-12 Thread Miguel Cruz
On Sun, 12 May 2002, Smileyq wrote: > [EMAIL PROTECTED] (Kris Vose) wrote: >> Can you practice function over-loading in php? > > No you cannot overload in PHP. In a particularly masochistic project, we achieved function overloading by creating a global array $F that linked public to hidden names

[PHP] Re: WELCOME to php-general@lists.php.net

2002-05-12 Thread Manisha
I am having a form, I want to write the form values into csv file. I just want to know whether it is necessary (compulsory) to have file lock before writing to file? There is only my program which is writing in the file - no other program. But many users can connect to web at a time - So is it

Re: [PHP] Getting substring of text for first paragraph

2002-05-12 Thread Miguel Cruz
On Sun, 12 May 2002, Steven Jarvis wrote: > I want to do the following: > > Big chunk of text is stored in variable $a. Paragraph breaks are > signalled by two line breaks. How big is big? 100 lines? 10,000 lines? 1,000,000 lines? > I want to just extract the first paragraph (i.e., all the tex

[PHP] Getting substring of text for first paragraph

2002-05-12 Thread Steven Jarvis
I want to do the following: Big chunk of text is stored in variable $a. Paragraph breaks are signalled by two line breaks. I want to just extract the first paragraph (i.e., all the text up to the first set of two line breaks) from $a. How would I do this? I tried exploding $a into an array,

[PHP] Header function not working header('Window-target: _top');

2002-05-12 Thread Michael P. Carel
Hi to all, Sorry for bringing back this type of topic, But this type of header call really doesnt work for me here. I've tested many time's the example below that was given by Dan but it really doesnt work. Im already using php4.2 in apache 1.3.24 . Based on the example below i've just removed/un

Re: [PHP] Re: function over loading?

2002-05-12 Thread Rasmus Lerdorf
Well, not in the procedural sense, but you can do method and property overloading on objects. See http://php.net/overload -Rasmus On Sun, 12 May 2002, Smileyq wrote: > In article > <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Kris Vose) wrote: > > > Can you practice function over-loading in php?

RE: [PHP] Re: function over loading?

2002-05-12 Thread Jason Murray
> > Can you practice function over-loading in php? > > No you cannot overload in PHP. You can achieve the same effect (having the same function do something else in a different circumstance) by making parameters optional: $param1 is required, $param2 is optional - if its not supplied when the

[PHP] Re: function over loading?

2002-05-12 Thread Smileyq
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kris Vose) wrote: > Can you practice function over-loading in php? > > Kris No you cannot overload in PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GD (Image generator) {!?}

2002-05-12 Thread Liam MacKenzie
Hi guys, Got a little prob that's got me stumped. This simple image generator script: http://scripts.operationenigma.net/image_generator.php Source: http://scripts.operationenigma.net/image_generator.phps works, I know because it was working on my system before I recompiled PHP. Feel free to have

RE: [PHP] Generate inline image

2002-05-12 Thread David Freeman
> How do I generate gif inline images using PHP's image > functions using GD libs. Everything I have seen so far > requires a header before generating the image. But I want > the image embedded into a table with other texts. Thank you > for the help. Write the php to generate the ima

[PHP] Re: PhpMyAdmin

2002-05-12 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am using the latest phpMyAdmin and MySQL 2.23.37. I have installed and > compiled it on a Sun Cobalt RAQ4r. I need to have it set up so that > customers with different websites cannot see or work on other cutomers DB's, > but each v

RE: [PHP] How can obtain referer's name?

2002-05-12 Thread Philip Olson
> if you have the globals setting in your ini file set to "on" > then you can use: $HTTP_REFERER otherwise, I think, it's found > in $_SERVER["HTTP_REFERER"] - just check for something like > that in phpinfo(); Just to be picky, predefined reserved server variables will always exist in both

Re: [PHP] sessions

2002-05-12 Thread Chris Knipe
Ok, Let's see if I learned anything - Original Message - From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 13, 2002 2:30 AM Subject: [PHP] sessions > $msg = "You have been authorized to make changes to the > web site."; > session_is_registered('u_name'); >

RE: [PHP] How can obtain referer's name?

2002-05-12 Thread Richard Archer
At 10:49 AM +1000 13/5/02, Martin Towell wrote: >if you have the globals setting in your ini file set to "on" then you can >use: $HTTP_REFERER Watch out though... the HTTP_REFERER data is provided by the user and cannot be trusted. It can't even be guaranteed to exist. If all the pages are on th

RE: [PHP] Re: MySQL or FlatFile

2002-05-12 Thread Martin Towell
If the content is going to be the same each time, then loading from a flat-file would probably be better, because accessing a database would require the connection to be established, the database to parse and execute your query, then send that data back. Where as reading from the file, it's just o

[PHP] restricting extentions at install

2002-05-12 Thread Andrew DeFever
Just would like to know how you restrict php to certain extentions before you compile. /=\ / Andrew DeFever \ / Terraworld Inc. \ / 888 332 1616\ /=\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL or FlatFile

2002-05-12 Thread David Duong
I am referring to whole PHP/Perl files. It is necessary to load them as much as 20+ times within the same hour what would be better MySql or Flatfile? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can obtain referer's name?

2002-05-12 Thread Martin Towell
if you have the globals setting in your ini file set to "on" then you can use: $HTTP_REFERER otherwise, I think, it's found in $_SERVER["HTTP_REFERER"] - just check for something like that in phpinfo(); -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 200

[PHP] How can obtain referer's name?

2002-05-12 Thread Alex Shi
Hi! I want to know how can a script obtain the page name where it was linked. e.g., there's a link on page.html, and the link points to script.php, how can script.php know the name of page.html? Thanks in advance for all answer! Alex -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] Generate inline image

2002-05-12 Thread Martin Towell
HTML docs only contain text. If you want images "inline" then you use the tag. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:31 AM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] Generate inline image Your tag calls a script (imagemaker.

Re: [PHP] Generate inline image

2002-05-12 Thread Justin French
Your tag calls a script (imagemaker.php) which generates the image for you the parent script (eg home.php) doesn't generate the image inline, to the best of my knowledge. Justin French on 13/05/02 10:01 AM, Engineering Software Center ([EMAIL PROTECTED]) wrote: > > Hi: > How do I generat

RE: [PHP] header problems

2002-05-12 Thread Jason Murray
> Can anyone tell me if there is any reason why this would not > be working? > > mysql_connect($DBhost,$DBuser,$DBpass) or die(header("Location: > error.php")); Why bother calling die() at all there? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] header problems

2002-05-12 Thread baldey_uk
Hi all, Can anyone tell me if there is any reason why this would not be working? mysql_connect($DBhost,$DBuser,$DBpass) or die(header("Location: error.php")); What im trying to do is connect to the database and if that fails send the browser to the error page. But the browser just sits there on

[PHP] sessions

2002-05-12 Thread Jas
I am a little confused on how to keep a variable registered on more than one page. For example you log into a page which queries the database. Form code is as follows... User Name: Password: The auth_done.php then checks to see if the user entered anything for the username and pas

Re: [PHP] PHP Boolean Interpreter - Need to search a mySQLdatabase

2002-05-12 Thread Richard Archer
At 4:50 PM -0400 12/5/02, SpamSucks86 wrote: >I was wondering if anyone knew of any good Boolean interpreters (NOT, >AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I >wouldn't put them into production. Frankly, I don't have the time, >patience, or ability to write a good one

[PHP] Generate inline image

2002-05-12 Thread Engineering Software Center
Hi: How do I generate gif inline images using PHP's image functions using GD libs. Everything I have seen so far requires a header before generating the image. But I want the image embedded into a table with other texts. Thank you for the help. Frank -- PHP General Mailing List (http://www

Re: [PHP] protecting downloads with php

2002-05-12 Thread Peter H. Lemieux
It can be tricky to write download wrappers that work with all browsers. Some versions of Internet Explorer seem especially troublesome. I've found wrappers like these seem to work fairly well: initialization(); authorization($user,$pw); $info=get_file_info($filepointer); ### SEND HEADERS ### he

Re: [PHP] Printing line "x" in a file

2002-05-12 Thread Thalis A. Kalfigopoulos
If the file is relatively small, then the easiest would be to use file() which reads a file into an array $file_array=file($filename); $text=$file_array[$line]; cheers, thalis On Sat, 11 May 2002, Andrew Conner wrote: > I have a script where I need to get the text from line number "$line" in

[PHP] Re: forever cookie

2002-05-12 Thread Austin Marshall
Larry Linthicum wrote: > is it possible to set a cookie that never expires? > > Not really, but be realistic. If you want a cookie that lasts longer than what seems reasonable give it a lifetime of a year or longer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] forever cookie

2002-05-12 Thread Larry Linthicum
is it possible to set a cookie that never expires? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Search Engine With Boolean Support <--Please help

2002-05-12 Thread Miguel Cruz
Well, a search engine is not a trivial proposition. If you just have a few hundred records without huge amounts of text, you can build SQL queries and it's no big deal. But if you expect it to scale, you need to turn the problem upside down and index the words. This means you build a table of wo

php-general Digest 12 May 2002 22:31:35 -0000 Issue 1341

2002-05-12 Thread php-general-digest-help
php-general Digest 12 May 2002 22:31:35 - Issue 1341 Topics (messages 97212 through 97262): Re: Sending Html Pages 97212 by: Liam MacKenzie Re: setcookie() 97213 by: Olexandr Vynnychenko GD (Image generator) {?!} 97214 by: Liam MacKenzie Re: Apache rewrite engine

[PHP] Stronge Session Variable Problem with PopUP windows

2002-05-12 Thread Dennis Moore
I am running mod PHP 4.0.6 with Apache 1.3x.   I am using session variables to pass various access information.  Everything works like a charm until I popup a new window using Javascript.   The session variable is set but to the wrong value.    Has anyone else run into this issue or have an

Re: [PHP] Search Engine With Boolean Support <--Please help

2002-05-12 Thread Matthew Ward
This is a bit of a tricky one, as a search engine isn't just some 10 line code you can quickly type and expect to work. It'd be quite complex, because you have to run several queries for each of the boolean types, and you also have to account somehow for case-sensitivity. I'm currently working on

RE: [PHP] random order

2002-05-12 Thread David Freeman
> I have a mysql databse with 4 rows, and each row (row1, > row2, row3, and row4) > contains a sentence. now i want these sentences to appear in > random order: I've always found mysql's RAND() function to be of use. Specifically: SELECT * FROM MyTable WHERE Some='Condition' ORDER BY RA

RE: [PHP] random order

2002-05-12 Thread David Freeman
> hmm it got a little more complicated now, > i have a table with: id title question answer1 answer2 > answer3 answer4. how can i use all of those in a php page > but only randomize the answers? You have multiple questions with the same answers? Then split your table into two tables and p

[PHP] using cookies and flash problem

2002-05-12 Thread Deadsam
I'm having a problem with using cookies and flash, I'm new to php so it's more then likely my coding, I have a forum made from flash/php/mysql, and I'm trying to use cookies for the username and password so they dont have to log in, I have manage to create the cookies no problem, its the rest that

Re: [PHP] MySQL and RH 7.2

2002-05-12 Thread Jason Morehouse
Check to see that you have the mysql client package installed: `rpm -q MySQL-client` If not, grab it! -J On Sun, 12 May 2002, Chris Hewitt wrote: > Todd, > > /usr/bin/mysqladmin > > HTH > Chris > > Todd Cary wrote: > > >I tried "locate" and "find" and both come up empty for mysqladmin. > >

[PHP] Re: PHP Hosting ...

2002-05-12 Thread Matthew Ward
Instead of switching hosting companies, why don't you just install phpMyAdmin on your webspace, that way you can control your mySQL databases in a far more user-friendly way than SSH will let you do "Tim Thorburn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] Re: an sql_layer

2002-05-12 Thread M.oozzuzz ([-_-])
tnx for the response, it was the query which caused the errors ("wrong result-link"). grtzz, me. [ProMoozz signature script initiated] [Sharon equalzz Hitler] [msg written - msg read] [ProMoozz signature script terminated] http://www.kotbelas

Re: [PHP] Re: Debugger

2002-05-12 Thread Michael Kimsal
Rasmus Lerdorf wrote: > That's just not the case. The debugger in PHP 3 would not work at all in > PHP 4 and would need a complete rewrite. So, being cynical you might say > that someone should have written a debugger for PHP 4 and the fact that > nobody did was the conspiracy, but it makes no s

[PHP] php script for backlinks?

2002-05-12 Thread PeterV
http://www.iawiki.net/ReferrerLinking I'm looking for existing PHP scripts that generate a list of pages linking to your page. Anything already written out there? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-12 Thread Kjartan Mannes
Sunday, May 12, 2002, 6:39:31 PM, Sebastian A. wrote: > Hello > I have recently been trying to parse an XML document that has different > content in the same tags. Here is an example: > 1 > 2 > 3 > ... > I am trying to get the content from into an array. I want the > content of the first to g

Re: [PHP] Re: Debugger

2002-05-12 Thread Rasmus Lerdorf
That's just not the case. The debugger in PHP 3 would not work at all in PHP 4 and would need a complete rewrite. So, being cynical you might say that someone should have written a debugger for PHP 4 and the fact that nobody did was the conspiracy, but it makes no sense to say it was removed for

RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP
Just make sure the url fits on one line in the email which mine doesn't. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: May 12, 2002 5:06 PM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP] E-mail Confirmation script? Thanks, Now why didn't that ever occur to me?

Re: [PHP] help with sort problem

2002-05-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Jason Wong declared > If that is what you want then: > while (names) { > explode the name > if there is more than one element swap it, then join > add this processed name onto a new array > } > > use one of the array sort functi

Re: [PHP] help with sort problem

2002-05-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then John Holmes declared > Whatever kind of "hack" you come up with in PHP is going to be a waste > of time and memory. Depends on your view point, the client was happy with one field for the name and now wants the records returned sorte

Re: [PHP] E-mail Confirmation script?

2002-05-12 Thread r
Hey, Why dont you just add a link to a script and validate it like that? eg: Click below to confirm you email id ** http://yoursite.tld/confirm.php?[EMAIL PROTECTED]&confirmno=5675678 ** Once you get the confi

Re: [PHP] E-mail Confirmation script?

2002-05-12 Thread Andre Dubuc
Thanks, Now why didn't that ever occur to me? It's simple and very effective. Thanks for the idea! Regards, Andre On Sunday 12 May 2002 04:51 pm, you wrote: > I would suggest just sending them an email with a > link like this and telling them to click on it to > confirm their membership. > >

RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP
I would suggest just sending them an email with a link like this and telling them to click on it to confirm their membership. http://www.mysite.com/confirm.php?uniqueid=2i3k238 s9sd0s99d The confirm.php page would look up the uniqueid and try to find it in your database. If it's there then that

[PHP] PHP Boolean Interpreter - Need to search a mySQL database

2002-05-12 Thread SpamSucks86
I was wondering if anyone knew of any good Boolean interpreters (NOT, AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I wouldn't put them into production. Frankly, I don't have the time, patience, or ability to write a good one from scratch. Here are the three I've found in cas

[PHP] E-mail Confirmation script?

2002-05-12 Thread Andre Dubuc
I've looked about for an 'Email Confirmation' script that many sites use for verifcation of wannabee new members. That is, the person subscribes, is sent a 'confirmation' number to which they must have in the 'Subject' area of their reply. I would like to implement this on my site, but I have

Re: [PHP] random order

2002-05-12 Thread Jule
hmm it got a little more complicated now, i have a table with: id title question answer1 answer2 answer3 answer4. how can i use all of those in a php page but only randomize the answers? so i get title title questionquestion answer3 answer4 answer2 answer1 ans

RE: [PHP] help with sort problem

2002-05-12 Thread Jason Soza
I actually asked this same type of question not too long ago. Just separate the name field into first_name and last_name - it'll be better in the long run. It's not as hard as it sounds - dump your table, use some program that will read comma delimited stuff and export as tab-delimited (I used Exc

[PHP] Re: To all who replied to :Newbie question to everybody...PHP

2002-05-12 Thread Michael Kimsal
R wrote: > Hey Guys, > I thank each and everyone one of you who replied, yeah, i got flamed a > couple of times from some of you for the "sleep" bit but need i remind you > that i am a newbie? You didn't get flamed because you're a newbie, you got flamed because it appeared you didn't do ANY res

Re: [PHP] Re: Debugger

2002-05-12 Thread Michael Kimsal
Jose Leon wrote: > > It would be nice that php itself incoporates a system to debug php > programs, like in PHP 3, in that way a development tool for php would > be enabled to debug modifying the php.ini with debug.enabled=true and > listening to a port. The system will work on any php distri

Re: [PHP] Problem with new variable system in 4.2

2002-05-12 Thread andy
thanx, this worked Andy "Philip Olson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag Pine.BSF.4.10.10205121820290.61243-10@localhost">news:Pine.BSF.4.10.10205121820290.61243-10@localhost... > > > In php4.1.1 it worked fine. Now I changed the first function to: > > $PATH_INFO = $_SERVER[REQU

RE: [PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread John Holmes
Yes, it's certainly possible. You will have to talk your host into giving you remote access though, which could be hard. How permissions work in MySQL is that your username is given permission to connect from a specific host. Generally, the host is listed as 'localhost' meaning the script has to

Re: [PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread Jason Wong
On Monday 13 May 2002 15:05, r wrote: > Hey there guys, > I have a slight problem which i could not solve via Java servlets and now > that I am migrating to PHP I was wondering if its possible... > > I am hosting with a company that has given me a database (MySql) I am using > the database for all

Re: [PHP] Problem with new variable system in 4.2

2002-05-12 Thread Philip Olson
> In php4.1.1 it worked fine. Now I changed the first function to: > $PATH_INFO = $_SERVER[REQUEST_URI]; (was $PATH_INFO in 4.1.1) $PATH_INFO worked fine because register_globals was on which essentially created $PHP_INFO from $_SERVER['PHP_INFO'] so how about you do this: if (!ini_get('r

RE: [PHP] help with sort problem

2002-05-12 Thread John Holmes
You really want to handle this in your database. If you need data to be in two fields, first name and last name, then put it in your database that way. Save yourself some time. How easy is it to just add another text field in your form, and insert one more variable into the database??? Whatever

[PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread r
Hey there guys, I have a slight problem which i could not solve via Java servlets and now that I am migrating to PHP I was wondering if its possible... I am hosting with a company that has given me a database (MySql) I am using the database for all my apps which are only being accessed via my ser

[PHP] Re: Problem with new variable system in 4.2

2002-05-12 Thread andy
basicly this problem seems to result of the new way I do get the string from the url I used to get it with $PATH_INFO Now I do a $PATH_INFO = $_SERVER[REQUEST_URI]; which is not the same result. Does anybody know a equal command for $PHP_INFO ? ANdy "Andy" <[EMAIL PROTECTED]> schrieb im New

RE: [PHP] random order

2002-05-12 Thread John Holmes
Nothing to do with PHP... SELECT * FROM table ORDER BY RAND(); ---John Holmes... > -Original Message- > From: Jule [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 9:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP] random order > > Hey guys and gals, > I have a problem: > I have a

[PHP] Problem with new variable system in 4.2

2002-05-12 Thread andy
Hi there, I did upgrade to 4.2 and now I am "recoding" :-( my whole application. So I did get behind the basic idea, but there is one case, where I just dont know how to solve it: Im a doing something similar like on php.net when you type in php.net/functionname. In my .htaccess file I do redi

Re: [PHP] Send html email

2002-05-12 Thread Jason Wong
On Sunday 12 May 2002 08:45, Michael Geier wrote: > While I understand the necessity in not answering every question that a > newbie may post, a more pleasant approach would have been: > > "the following is documented at > http://www.php.net/manual/en/function.mail.php"; or > "see the Content-Type

Re: [PHP] MySQL and RH 7.2

2002-05-12 Thread Miguel Cruz
Also, try locate again now that it's been a day. The locate database usually gets updated overnight, so it doesn't immediately reflect new additions. miguel On Sun, 12 May 2002, Chris Hewitt wrote: > Todd, > > /usr/bin/mysqladmin > > HTH > Chris > > Todd Cary wrote: > > >I tried "locate" a

Re: [PHP] help with sort problem

2002-05-12 Thread Jason Wong
On Monday 13 May 2002 00:23, Nick Wilson wrote: > Hi all, > I hope someone might help me with a little puzzle... > > I have bunch of db results and one of the fields is 'name', > I want to see if there are 2 parts to it like FirstName LastName and if > so order by the last name. > > I can see expl

[PHP] Your Open Source Projects wanted.

2002-05-12 Thread David Duong
Hello, I'm David Duong of the CGI open source Foundry. We are looking for a script to produce. If you have a good script an would like some programmers to help develop it I invite you to visit http://cosf.sourceforge.net. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] random order

2002-05-12 Thread Jule
Hey guys and gals, I have a problem: I have a mysql databse with 4 rows, and each row (row1, row2, row3, and row4) contains a sentence. now i want these sentences to appear in random order: instance: 1 2etc. row2 row4 row4 row2 row1 row1 row3 row3

[PHP] XML: Similiar Multiple Tags With Different Data

2002-05-12 Thread Sebastian A.
Hello I have recently been trying to parse an XML document that has different content in the same tags. Here is an example: 1 2 3 ... I am trying to get the content from into an array. I want the content of the first to go into $p->ART_ID[0] and the next to go into $p->ART_ID[1] and so on. He

[PHP] help with sort problem

2002-05-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I hope someone might help me with a little puzzle... I have bunch of db results and one of the fields is 'name', I want to see if there are 2 parts to it like FirstName LastName and if so order by the last name. I can see explode() being t

Re: [PHP] MySQL and RH 7.2

2002-05-12 Thread Chris Hewitt
Todd, /usr/bin/mysqladmin HTH Chris Todd Cary wrote: >I tried "locate" and "find" and both come up empty for mysqladmin. > >Am I missing something stupid here? > >Todd > >-- >Todd Cary >Ariste Software >2200 D Street Extension >Petaluma, CA 94952 >707-773-4523 >[EMAIL PROTECTED] > > > -- P

RE: [PHP] Raising a custom error -- how?

2002-05-12 Thread John Holmes
How about looking through the table of contents... ?? XXVII: Error Handling and Logging Functions http://www.php.net/manual/en/ref.errorfunc.php ---John Holmes... > -Original Message- > From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 5:55 PM

Re: [PHP] Re: preg_grep Help (Regular expresion)

2002-05-12 Thread Brian C. Doyle
Hello all, I did foget to mention that I had $file as $file=file("Status.htm"); and it reads the file as 1 line it seams. At 11:31 PM 5/12/02 +1200, Jason Morehouse wrote: >$file needs to be an array: > > $file = file("myfile.txt"); > >On Sun, 12 May 2002 12:56:08 +1200, Brian C. Doyle

[PHP] Raising a custom error -- how?

2002-05-12 Thread Sqlcoders.com Programming Dept
Hiya, I want to be able to raise an error in some code I'm creating for reuse, most parts of this code deals with errors and just uses defaults as appropriate, but I need to be able to raise an error that will stop the PHP script interpreter and throw an error back to the developer. I've tried se

[PHP] Re: preg_grep Help (Regular expresion)

2002-05-12 Thread Jason Morehouse
$file needs to be an array: $file = file("myfile.txt"); On Sun, 12 May 2002 12:56:08 +1200, Brian C. Doyle wrote: > Hello all, > > I have a file that has ip address in it.. I need to pull those ip > addresses out. > Currently I am trying: > > $ips=preg_grep("/^([0-9]+)\.([0-9]+)\.([0-

Re: [PHP] Send html email

2002-05-12 Thread Thomas Seifert
On Sun, 12 May 2002 00:07:57 -0500 (CDT) [EMAIL PROTECTED] (Miguel Cruz) wrote: > On Sat, 11 May 2002, Alex Shi wrote: > > Thanks for all of you who answered my question. But another of > > my stupid question is: what is RTFM? > > RTFM == Read The Flurking Manual Or Read the fine manual (or r

Re: [PHP] Apache rewrite engine and $REQUEST_URI

2002-05-12 Thread Jason Morehouse
$SCRIPT_URI works sweet. -J On Fri, 10 May 2002 02:47:39 +1200, Peterv wrote: > Hi, > I'm using apache rewrite and I need to get the URL that I see in the > browser. When using $REQUEST_URI I get the page where the rewrite is > being redirected to. How can I get my hands on the actual URL that

[PHP] GD (Image generator) {?!}

2002-05-12 Thread Liam MacKenzie
Hi guys, Got a little prob that's got me stumped. This simple image generator script: http://scripts.operationenigma.net/image_generator.php Source: http://scripts.operationenigma.net/image_generator.phps works, I know because it was working on my system before I recompiled PHP. Feel free to have

Re: [PHP] setcookie()

2002-05-12 Thread Olexandr Vynnychenko
Hello jtjohnston, Saturday, May 11, 2002, 11:42:52 PM, you wrote: j> This is a bug "Feature/Change Request" I made to: j> http://bugs.php.net/bug.php?id=17158 j> setcookie() states "cookies must be sent before any other headers j> are sent (this is a restriction of cookies, not PHP). j> I argu

Re: [PHP] Sending Html Pages

2002-05-12 Thread Liam MacKenzie
If you read up about 10 messages you'll get the answer. Also, RTFM. (Don't ask what that means, because if you read up 10 messages you'll find out) http://www.php.net/manual/en/function.mail.php - Original Message - From: "Salman Ahmed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

  1   2   >