Re: [PHP] Printing line x in a file

2002-05-12 Thread Austin Gonyou
On Sun, 2002-05-12 at 00:10, Miguel Cruz wrote: On Sat, 11 May 2002, Andrew Conner wrote: I have a script where I need to get the text from line number $line in file $filename then save it to a var ($text) and then print it. For example, in the file lamb.txt (just an example file):

[PHP] .vcf files and PHP Email Form(Newbie)

2002-05-12 Thread webmaster
I want to create an e-mail form that writes a (person's name).vcf(vCard) file and attaches it to the message. This would allow me to eaisly add people to my address book. The source of a sample .vcf(vCard) file is shown below: BEGIN:VCARD VERSION:2.1 N:Harrison;JJ FN:Harrison, JJ ORG:TecEco Pty.

Re: [PHP] .vcf files and PHP Email Form(Newbie)

2002-05-12 Thread Miguel Cruz
Use any of about 10 billion available MIME mail classes/functions (or write your own; there's really nothing to it) and attach the vcard as content-type: text/x-vcard. miguel On Sun, 12 May 2002 [EMAIL PROTECTED] wrote: I want to create an e-mail form that writes a (person's name).vcf(vCard)

[PHP] Variable Prob

2002-05-12 Thread Jason Soza
Argh! I hate it when one little annoying thing starts up right when I think I have the coding finished! I have the following code: if($last_name) { printf(%s %s'sbrb%s/bbr%s\n/td,$first_name,$last_name,$year,$color); } else {

Re: [PHP] Variable Prob

2002-05-12 Thread Miguel Cruz
It would seem the only way this could happen is if $last_name evaluates to true. Two suggestions: 1) Make some extra change in one of the printf statements so you can see which one is really being called. 2) If that doesn't illuminate anything, show a little more code. miguel On Sat, 11 May

RE: [PHP] Variable Prob

2002-05-12 Thread Jason Soza
Thanks for the debugging tip... Seems that the 'else' statement wasn't being called at all, so for some reason $last_name was evaluating to true even though there's a NULL entry for that record/field. I used a different query, where a person with a NULL last_name showed up first, and the 'else'

Re: [PHP] .vcf files and PHP Email Form(Newbie)

2002-05-12 Thread webmaster
I don't have much experiance with MIME. where could I find a tutorial or ready made class? - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 4:41 PM Subject: Re: [PHP] .vcf files and PHP Email Form(Newbie)

[PHP] Sending Html Pages

2002-05-12 Thread Salman Ahmed
Hi, I am trying to send html pages via email, that is instead of sending plain text format to the client I am trying to send Rich Text using mail function of PHP. At first I was sending -- Hello Bob, Thanks for downloading this from my site

php-general Digest 12 May 2002 10:20:39 -0000 Issue 1340

2002-05-12 Thread php-general-digest-help
php-general Digest 12 May 2002 10:20:39 - Issue 1340 Topics (messages 97166 through 97211): an sql_layer 97166 by: http://www.promoozz.org [*] 97171 by: Austin Marshall PHP Hosting ... 97167 by: Tim Thorburn PHP 5?? 97168 by: Tim Thorburn 97169 by:

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] Sent:

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 argue this

[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

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 I

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 replace

[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:

[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

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 wrote:

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] 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] -- PHP General Mailing

[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

[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: LIST_ITEM1/LIST_ITEM LIST_ITEM2/LIST_ITEM LIST_ITEM3/LIST_ITEM ... I am trying to get the content from LIST_ITEM into an array. I want the content of the first LIST_ITEM

[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] 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,

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 explode()

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 and find and

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: header

[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

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 mysql

[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

[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

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

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

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 my

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

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 =

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

[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 research

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

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

[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

[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 case

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

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

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 sorted

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 functions to

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] 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

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: LIST_ITEM1/LIST_ITEM LIST_ITEM2/LIST_ITEM LIST_ITEM3/LIST_ITEM ... I am trying to get the content from

[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] 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

[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]

[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]... Hi,

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. Am I missing

[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

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 put

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

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

[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 any

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

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

[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

[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:

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

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 ###

[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

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 from

[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... ?php session_start(); ? html body bgcolor=#FF text=#00 ?php print(session_id()); ? form name=login method=post

[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

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? ? if ($mysql != mysql_connect($DBhost,$DBuser,$DBpass)) { Header(Location: error.php);

Re: [PHP] Generate inline image

2002-05-12 Thread Justin French
Your IMG 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

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 img 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 IMG tag calls a script

[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

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, 2002

[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

[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

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

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 the

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 SNIP $msg = p class=\content\You have been authorized to make changes to the web site./p;

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

[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

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 image

[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

[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

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: ? Function functionName($param1, $param2 = ) { ... } ?

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?

[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

[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,

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 text up

[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

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 of

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 many

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 even if

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

[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

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 the long run.

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

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.

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 definitely a good idea

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's full

  1   2   >