[PHP] help needed to install php on my xp home edition pc

2004-02-20 Thread danny cobbinah
i have installed apache 2 and mysql 3 on my pc (running xp home) i have installed php 4.3.4 but have hit a snag. the php doesnt seem to gel with apache at all. any help please? how do i configure apache and php to mix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] HELP PLEASE!

2004-02-20 Thread 3mip1s4la/Nath/Pisanty
this is my first post, so please bear with me. I'm developing a Mayan Oracle based on PHP and MySQL. the program and database work perfectly, and do all I want them to. however, the thing has a graphical interface that I built using Macromedia Fireworks and Dreamweaver, with some images chaning

Re: [PHP] HELP PLEASE!

2004-02-20 Thread Nitin Mehta
look at the html code, this is no problem related to php, but the HTML. Hope that helps Nitin - Original Message - From: 3mip1s4la/Nath/Pisanty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 21, 2004 7:24 AM Subject: [PHP] HELP PLEASE! this is my first post, so

[PHP] Help with '' character

2004-02-17 Thread Chris Bruce
I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query, it becomes SELECT sum(sends) from campaigns

Re: [PHP] Help with '' character

2004-02-17 Thread Miguel J. Jiménez
Have you tried using 'amp;' ? Chris Bruce wrote: I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT

Re: [PHP] Help with '' character

2004-02-17 Thread John W. Holmes
From: Chris Bruce [EMAIL PROTECTED] I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query, it

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
The problem is that the '' character is already in a database. I am trying to do a query where I need to have it as '', but like I said, when it comes into the script from the url it gets truncated. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
You are right John. I have it working now. Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are

Re: [PHP] Help with '' character

2004-02-17 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the problem is the '' on the url http://...campaign=MBI%20List%20-%20Steel%20%20Concrete ^ | there this url is saying:

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Shiflett
--- Chris Bruce [EMAIL PROTECTED] wrote: I am having trouble with a string becoming truncated at an '' character. I am passing the variable via a link (http://...campaign=MBI%20List%20-%20Steel%20%20Concrete) and then when I try to grab the incoming value of campaign into a SELECT query,

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread Ford, Mike [LSS]
On 11 February 2004 00:38, Adam Bregenzer contributed these pearls of wisdom: On Tue, 2004-02-10 at 19:06, Richard Davey wrote: This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function.

[PHP] Help with ldap_add

2004-02-11 Thread Chakravarthy Cuddapah
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Alex Hogan
Hi Richard, Why not just set a $basedir value somewhere and always use that in an include/require function: include $basedir/sub/whatever - then no matter where it's called from it'll never be wrong. That makes sense... Is it also recommended that an application local config file be used to

Re[4]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:08:02 PM, you wrote: AH Is it also recommended that an application local config file be used to set AH all the globals that will be used throughout? Right now I'm using the db to AH hold all the vars that I want to make available for all apps. Is this

Re: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread John W. Holmes
From: Ford, Mike [LSS] [EMAIL PROTECTED] Mind you, there are exceptions: exit(), for example, is a language construct but requires the parens (at least, that's what the fine manual appears to say, and I've not tested it without!). Only if you want to pass an exit value, i.e. exit(101);

Re: Re[4]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] Personally I use a file called common.inc which is basically my global include file - it has nothing but variables I need set (no functions, etc - they are held elsewhere) and files I need to include. It sits at the root of my project and is included on

Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:25:23 PM, you wrote: JWH I hope you are also denying access to .inc files otherwise we could view JWH your file as plain text. Please.. try ;) I used to call the file common.php until we had a rather large debate about the correct naming convention

Re: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] JWH I hope you are also denying access to .inc files otherwise we could view JWH your file as plain text. Please.. try ;) I used to call the file common.php until we had a rather large debate about the correct naming convention for PHP include files on

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello John, Wednesday, February 11, 2004, 3:42:39 PM, you wrote: JWH Heh.. I was just giving a heads up, not threatening. :) JWH I personally don't care for .inc files that are in the web root. The ways to JWH deny access to them vary across web servers and platforms, so it makes JWH

RE: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Alex Hogan
Davey [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 9:28 AM To: [EMAIL PROTECTED] Subject: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively Hello John, Wednesday, February 11, 2004, 3:25:23 PM, you wrote: JWH I hope you are also denying access

Re[8]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Richard Davey
Hello Alex, Wednesday, February 11, 2004, 3:47:09 PM, you wrote: AH How large can that file be? How long is a piece of string? :) It's as long as you need it to be. AH I have a func.php file that I'm putting all my reusable functions in but I AH can see that getting pretty large if this

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-11 Thread Samuel Ventura
Hi there again people, I looks like this thread turned into a 'include' usage discussion. Well, nothing wrong with that. The conclusion seems to be that ALL level of nested included inherit current directory reference for relative paths from the very first script ( that in $_SERVER[SCRIPT_NAME]

[PHP] Help with ldap_add

2004-02-11 Thread Chakravarthy Cuddapah
I am using RedHat Enterprise Linux (ES). Installed openldap, php, apache latest versions. All except ldap_add functions are working. When I use ldapadd at the terminal it works adding entries to ldap. But when I use php ldap_add , error code shows it is Success. But does not add any entires to

[PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Samuel Ventura
Hi there, I have 3 files in nested subdirectories (1) /test.php (2) /subdir1/test.php (3) /subdir1/subdir2/test.php (1) contains // ?php print hello; ? (2) and (3) contains / ?php include(../test.php); ? if I call (3) it loops forever in (2) trying to

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Richard Davey
Hello Samuel, Tuesday, February 10, 2004, 6:55:24 PM, you wrote: SV I have 3 files in nested subdirectories [snip] SV Is this a bug or a feature? Neither, it's just logic really. The include() function sucks in the file specified, dropping out to HTML mode to do so. The included file inherits

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
From: Samuel Ventura [EMAIL PROTECTED] I have 3 files in nested subdirectories (1) /test.php (2) /subdir1/test.php (3) /subdir1/subdir2/test.php if I call (3) it loops forever in (2) trying to including itself. Is this a bug or a feature? A feature? You make a request for (3). The

RE: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-10 Thread Alex Hogan
: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 1:50 PM To: Samuel Ventura; [EMAIL PROTECTED] Subject: Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively From: Samuel Ventura [EMAIL PROTECTED] I have 3 files in nested subdirectories (1

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
From: Alex Hogan [EMAIL PROTECTED] Are you saying that it's better not to use relative paths on include(...)'s, require(...)'s and their (x)_once(...) cousins? That seems awkward to me. Why would I want to hard code a path, even if I was including additional functionality from another

Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-10 Thread Richard Davey
Hello Alex, Tuesday, February 10, 2004, 8:08:11 PM, you wrote: AH Are you saying that it's better not to use relative paths on include(...)'s, AH require(...)'s and their (x)_once(...) cousins? Relative paths are fine, so long as you have strict control over what is calling the script and from

Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Richard Davey
Hello John, Tuesday, February 10, 2004, 8:20:50 PM, you wrote: JWH include($_CONF['path'] . '/test.php'); This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. For example: include

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Martin Towell
Hello John, Tuesday, February 10, 2004, 8:20:50 PM, you wrote: JWH include($_CONF['path'] . '/test.php'); This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. For example:

Re: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 19:06, Richard Davey wrote: This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. [snip] Both work just fine. The manual includes examples of both methods. So which

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
Richard Davey wrote: include $dir/file.php vs. include($dir/file.php) Both work just fine. The manual includes examples of both methods. So which do most people consider the right way ? If you use echo, then you should use include(). If you use print, then you should use include . Unless you

Re: [PHP] HELP: Nested include(...)'s take relative paths

2004-02-10 Thread André Cerqueira
If it was a function, parenteses would be mandatory hehe I prefer no parentheses on include/require/echo/print/..., cant justify it with arguments though, its just the style i chose... What about: if (...) { ... } and: if (...) { ... } I prefer the second, but people find good reasons

Re: [PHP] HELP: Nested include(...)'s take relative paths

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 21:00, André Cerqueira wrote: If it was a function, parenteses would be mandatory hehe I prefer no parentheses on include/require/echo/print/..., cant justify it with arguments though, its just the style i chose... What about: if (...) { ... } and: if

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
On Wed, 2004-02-11 at 19:36, John W. Holmes wrote: If you use echo, then you should use include(). If you use print, then you should use include . Unless you use echo(), then you should use include and if you use print , then you should use include(). Unless you don't want to. :) Heh,

[PHP] HELP: Detecting the name of the file a function is being called from

2004-02-09 Thread Samuel Ventura
Hi there I have 2 scripts: ?php /* test1.php */ function called_from_file(){ print __FILE__ } ? /// ?php /* test2.php */ include(test1.php); called_from_file(); ? / I get the output test1.php

Re: [PHP] HELP: Detecting the name of the file a function is being called from

2004-02-09 Thread Adam Bregenzer
On Mon, 2004-02-09 at 23:17, Samuel Ventura wrote: what I need is to detect the name of the script from which I called the function, (test2.php) in this case. For this application, it is not practical to pass an aditional parameter to the function specifying the caller, i need

Re: [PHP] Help for code to 'sort list' please

2004-02-04 Thread Don Read
On 02-Feb-2004 EastLothianDirectory wrote: Was just reading your previous reply and my months are indeed in text and therein lies the problem. snip Look at the MySQL functions FIELD() and/or FIND_IN_SET(). Regards, -- Don Read [EMAIL PROTECTED] --

[PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; The rest of the php code is just a simple db connection with a bullet list and 'while' loop with an 'echo result' request. This shows a

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread John Nichel
EastLothianDirectory wrote: I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; The rest of the php code is just a simple db connection with a bullet list and 'while' loop with an 'echo

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
: [EMAIL PROTECTED] Subject:Re: [PHP] Help for code to 'sort list' please EastLothianDirectory wrote: I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; The rest

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread John Nichel
EastLothianDirectory wrote: Thank you for reply. I already have 'ORDER BY year desc'. But as I mentioned how do I get the months and day in order too on the same list. Thank you in advance snip Read the documentation for ORDER BY in MySQL. You can sort on multiple columns. Basically, you

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Hugh Danaher
to 'date'. Of course, you'll also need to examine any new inputs and get them correctly formated before they're added to the database. hugh - Original Message - From: EastLothianDirectory [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:18 AM Subject: [PHP] Help for code

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Jochem Maas
EastLothianDirectory wrote: I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; ... Although it lists in year order descending (in fact what I asked it to do) I would like to learn to sort

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
] Subject:Re: [PHP] Help for code to 'sort list' please EastLothianDirectory wrote: Thank you for reply. I already have 'ORDER BY year desc'. But as I mentioned how do I get the months and day in order too on the same list. Thank you in advance snip Read the documentation for ORDER

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Jochem Maas
refering to my previous mail: I really don't think its a good idea to store the months as names in the DB (I recommend a datetime field to store the complete date info). but if you must then you will have to define an array which you can use as a sort key e.g. array( 1 = 'January',

[PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: html headtitleTest/title/head body form action=textareamail.php

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
[snip] ?php if ($TextArea=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; mail($to, $subject, $message,From: $from); echo Thankyou; } ? [/snip] What is happening when the

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
ahh, I have to correct myself replace this: if ($_POST['TextArea']=) { with this: if ($_POST['TextArea']==) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
- Original Message From: Jochem Maas Date: Mon 2/2/04 20:47 To: [EMAIL PROTECTED] Subject:Re: [PHP] Help for code to 'sort list' please refering to my previous mail: I really don't think its a good idea to store the months as names in the DB (I

RE: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
did you replace ($TextArea=) with ($TextArea==) ? ($TextArea=) will reassign $TextArea to Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are

RE: [PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are sent fine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with mail() function

2004-02-02 Thread Russell Shaw
Pooya Eslami wrote: Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: html headtitleTest/title/head body form

[PHP] Help with files

2004-02-01 Thread Mr. Austin
Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. ?php $buff =

Re: [PHP] Help with files

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 10:33, Mr. Austin wrote: $buff = fopen(sample.txt, r+); ^ ---+ RTFM to see what other options you can use. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators *

Re: [PHP] Help with files

2004-02-01 Thread Mr. Austin
, 2004 8:43 PM Subject: Re: [PHP] Help with files On Monday 02 February 2004 10:33, Mr. Austin wrote: $buff = fopen(sample.txt, r+); ^ ---+ RTFM to see what other options you can use. -- Jason Wong - Gremlins Associates

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. ?php $buff

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: I'm not entirely sure why it is that you assume I did not read the manual or the online documentation (which is very thorough). I'm sure Jason has made that assumption because the answer to your question is right there in the manual...under one of the functions you're using.

RE: [PHP] Help with files

2004-02-01 Thread Martin Towell
Instead of using r+, use w This will clear the file for you :) -Original Message- From: Mr. Austin [mailto:[EMAIL PROTECTED] Sent: Monday, 2 February 2004 1:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with files I'm not entirely sure why it is that you assume I did

[PHP] HELP PLEASE PHP

2004-01-29 Thread Patrick
Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need some one any one to give me some advice on this Posted layout it seems to work but not

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread John Nichel
Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need some one any one to

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
John Nichel wrote: Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread memoimyself
Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to know in order to solve your problem can be found in one convenient location:

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
Man, you really are a card Erik. Fellow manual reader, Jas [EMAIL PROTECTED] wrote: Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to

[PHP] Help with a string replacement

2004-01-28 Thread Miguel J. Jimnez
Hi, I want to replace a string a:[whatever] with a href=[something][whatever]. [whatever] may be what ever substring possible... ie. I want to replace all occurences that exists being [whatever] a variable expression... Thanks... -- PHP General Mailing List (http://www.php.net/) To

[PHP] Help: arrays in a class

2004-01-28 Thread jazzman
Hi all, I'm having some trouble here and I hope you can help. I'm writing a class for PHP to help track includes in a c++ source file. My class has 3 member variables: a filename file contents array of files that file includes The class definition looks like this

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John Nichel
[EMAIL PROTECTED] wrote: snip Here's the problem. In ParseFile I call the function: array_push($this-$includedFiles, $ifName); Here you have it ending in an 's' where $ifName is the name of an include file I found in the code. However, I get an error stating the first argument must be an

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John W. Holmes
From: [EMAIL PROTECTED] class clsfTreeNode { //member variables var $fName; var $fData; var $includedFiles; //constructor function clsfTreeNode( $fileName ) { $this-$fName = $fileName; $this-$fData = file_get_contents($this-$fName); $this-ParseFile(); You have an extra $ sign

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John Nichel
John W. Holmes wrote: snip You have an extra $ sign in your variables names. $this-fName instead of $this-$fName Not sure if that'll solve all your problems, but it's a start. ---John Holmes... Oh, sure. Point out what I missed in my eval. ;) -- By-Tor.com It's all about the Rush

Re: [PHP] Help: arrays in a class

2004-01-28 Thread jazzman
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote: in php you have to access a member variable (or methods) with: $this-varname (without the $) e.g.: $this-includedFile = array(); hope this helps AHA! I think that's it. The comment someone sent to me (Sorry, i'm awful with names) about

[PHP] Help me with this please???

2004-01-26 Thread Radwan Aladdin
Hi.. I'm trying to make a PHP code that do the following : Inserts the server time to the database (When login). and then insert it again (When logout). Now I want to compare the two values to know the defference between them by minutes.. so for example : if the defference was 2880 minutes

[PHP] help with mysql

2004-01-26 Thread Tom Flood
Hello, I am just beginning my learning of php and its uses with mysql. I wrote a small program to add information into a mysql database. However my script returns the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/ephi/mysql.php on line 16 what is

Re: [PHP] help with mysql

2004-01-26 Thread Renan G. Galang
- Original Message - (BFrom: "Tom Flood" [EMAIL PROTECTED] (BTo: [EMAIL PROTECTED] (BSent: Tuesday, January 27, 2004 2:27 PM (BSubject: [PHP] help with mysql (B (B (B Hello, (B (B I am just beginning my learning of php and its uses with mysql. I wrote a (B small prog

[PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * ?php $code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah; $url =

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 06:50:37PM +0200, John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * ?php $code = blah

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * ?php $code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah; $url =

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi Joel, Thanks for the reply. I have tried using / to delimit the string and I get the following error String $url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;; Gives the error: *Warning*: Unknown modifier '/' in* /test.php* on line *8* I found out that I could use '

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel,

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 07:15:53PM +0200, John Clegg wrote: Hi Joel, Thanks for the reply. I have tried using / to delimit the string and I get the following error String $url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;; Gives the error: *Warning*: Unknown

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John Maybe

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Nichel wrote: John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas

Re: [PHP] Help with preg_replace

2004-01-19 Thread Jason Wong
On Tuesday 20 January 2004 01:31, John Clegg wrote: Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. preg_quote() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators *

Re: [PHP] Help with preg_replace

2004-01-19 Thread John W. Holmes
joel boonstra wrote: The problem is that there are still special chars that need escaping. Specifically, the question mark (?) and the square braces ([]). Here is some modified code (apologies for poor word-wrapping): ?php $code = blah

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John W. Holmes wrote: In $url, the periods still need to be escaped, too. This is where preg_quote() comes in handy. $url = http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL];; $url = preg_quote($url); $code = preg_replace(#$url#,$replace,$code,1); I hope the OP took notice of the

[PHP] help with form

2004-01-17 Thread eawilkes
I'm creating a form that puts data into two different tables in the database. I was wondering how to get the ID from the first table and, in the background, associate it with the second table? any help is GREATLY appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] help with form

2004-01-17 Thread daniel
I'm creating a form that puts data into two different tables in the database. I was wondering how to get the ID from the first table and, in the background, associate it with the second table? any help is GREATLY appreciated! Firstly you never said which db ? I'll assume mysql, check out

Re: [PHP] help with form

2004-01-17 Thread Justin French
On Sunday, January 18, 2004, at 01:39 PM, eawilkes wrote: I'm creating a form that puts data into two different tables in the database. I was wondering how to get the ID from the first table and, in the background, associate it with the second table? any help is GREATLY appreciated! Check out

[PHP] Help parsing text file?

2004-01-08 Thread Carlton L. Whitmore
I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. Carlton.

Re: [PHP] Help parsing text file?

2004-01-08 Thread Brad Pauly
On Thu, 2004-01-08 at 16:27, Carlton L. Whitmore wrote: I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. I would guess that

[PHP] PHP help files in pdf

2004-01-06 Thread Student
Does anyone have the pdf format of the php help files with proper page numbering -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with PNG creation script

2003-12-31 Thread Ashley M. Kirchner
The attached text file contains a script that I've gotten from a web site and that I've been using for a while now to generate on the fly PNG headers. There can be several headers on one page, spanning several days worth of articles. The script works, except it's a huge overhead because

AW: [PHP] Help with PNG creation script

2003-12-31 Thread Marcus Wendt
] Betreff: [PHP] Help with PNG creation script The attached text file contains a script that I've gotten from a web site and that I've been using for a while now to generate on the fly PNG headers. There can be several headers on one page, spanning several days worth of articles. The script

Re: AW: [PHP] Help with PNG creation script

2003-12-31 Thread Ashley M. Kirchner
Marcus Wendt wrote: I'd definitivly suggest you NOT to use this database-pointer approach! Any particular reason you'd not use a database to hold pointers, which might become helpful later on when it comes to searching for expired headers to be deleted (as opposed to searching the physical

[PHP] HELP NEEDED PLEASE - IMAP, MySQL and PHP

2003-12-28 Thread Vernon
Hello all, I have been struggling for some time now to develop or find some product that will allow me to scan documents (I have that part down no problem, using OMNIPAGE 14.0) and put then into a searchable database with a copy of it in some form that is readable like a formatted txt file. I am

[PHP] HELP! -- Problem with imagejpeg()

2003-12-27 Thread René Fournier
Hello, I have a function that is meant to check if an image is greater than a certain width and height, and if it is, downsample it. The checking part works fine. Downsampling is not happening though. Here's what I've got (btw, $file = /somedirectory/photo.jpg):

[PHP] HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
Good, I follow with Windows ISAPI PHP Server: Now the IIS, in the card: ISAPI FILTERS show me php with arrow red and downwards. It says NOT LOADED. Somebody knows so that this can happen? The archives and declarations is correct, just as route a phpîsapi.dll. I have returned to form the IIS

[PHP] Help with php output to file

2003-12-18 Thread Paul Godard
Hi I have develop an online catalog in php/mysql. Now the client needs the web site on a cd. Of course without php or mysql... What is the fastes and easiest way to convert the only 2-3 dynamic php pages into static html files? Of course I could copy the html code generated by the php pages

RE: [PHP] Help with php output to file

2003-12-18 Thread Sam Masiello
Anytime I need to do something similar to this I prefer to use lynx -source [[URL]] [[output_file]] HTH! --Sam Paul Godard wrote: Hi I have develop an online catalog in php/mysql. Now the client needs the web site on a cd. Of course without php or mysql... What is the fastes and

[PHP] Help need with image2wbmp() arguments

2003-12-17 Thread Ivan Dermanov
There is a problem with PHP 4.3.4 under Windows by image2wbmp() example from PHP Manual. Example 1. image2wbmp() example --- ?php $file = 'php.jpg'; header('Content-type: ' .

<    10   11   12   13   14   15   16   17   18   19   >