Re: [PHP] Regarding variable reference

2004-06-16 Thread Ulrik S. Kofod
Justin Patrin sagde: Ulrik S. Kofod wrote: Why are you using eval? Eval is slow and is a hack... Just do: $y = $$x; if(isset($y)) { echo p$x:$y/p; } } True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4 times faster

Re: [PHP] RE: Text message

2004-06-16 Thread Ulrik S. Kofod
Lester Caine sagde: R'Twick Niceorgaw wrote: Is this some kind of virus? anybody else receiving it? I have received 3 mails from this address through the list today all with a .bmp attachment It has passed clam av + fprot on linux as well as norton on windows but still want to double

Re: [PHP] Re: array_rand() not random

2004-06-16 Thread Kim Steinhaug
Well, I must admit Im gotten abit to familiar with the use of MySQL lately, though it might be abit overkill - but what the heck. The database is there to be used and we shouldnt worry to much. For those really worrying there are several file based sql alternatives out there. Ok, I would use and

Re: [PHP] Just Testing

2004-06-16 Thread Kevin Clark
Um how so? On Wed, 16 Jun 2004 04:18:27 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Michael Lauzon ([EMAIL PROTECTED]): I am just testing, so that I can create a filter. btw, you're going about it wrong. Filters will just contribute spaming to the list. Curt -- --

Re: [PHP] Re: Unit Testing

2004-06-16 Thread Trevor Nesbit
Hi I'm interested in locating something straight forward to teach to our programming students... Am appreciating the discussion so far... Trevor Nesbit MBS BSc BCom CA PGDipBusAdmin Degree Leader for Bachelor of ICT Programme Leader for Graduate Diploma in eCommerce School of Computing -

RE: [PHP] Combo problems.. Multi Array??

2004-06-16 Thread Ford, Mike [LSS]
On 15 June 2004 00:07, Michael Benbow wrote: Thanks Mike, I have read up a lot on permutation but I'm not completely sure that this will solve my problem. From what I can gather permutation takes a sample (i.e. ABC) and tells you how many different ways it can arrange the letters, with

Re: [PHP] Active windows

2004-06-16 Thread franciccio
Very hard (impossible) to control user activities by php-scripting. You are talking about client-side actions while php is only server-side. You should check for javascript client-side coding help. Franciccio Curt Zirzow [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] * Thus

[PHP] Current config of PHP

2004-06-16 Thread Johannes Reichardt
Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version? - Johannes -- PHP General Mailing List

[PHP] Get Current config of PHP

2004-06-16 Thread Johannes Reichardt
Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version? - Johannes -- PHP General Mailing List

Re: [PHP] Current config of PHP

2004-06-16 Thread Marek Kilimajer
Johannes Reichardt wrote --- napísal:: Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version?

Re: [PHP] Losing Sessions

2004-06-16 Thread Marek Kilimajer
Paul Liebrand wrote --- napsal:: Curt, Thanks for the reply. I am going to go ahead and change all my session variables to use the methods you described. Because I am using the session_register method, could this be the cause of my problem? That it works 90% of the time, but a couple times

[PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
Hi list, on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting 'test2': class test { function printClass() { echo __CLASS__; } } class test2 extends test { } test2::printClass(); I would like to get/echo the name of the class calling the method - in my

Re: [PHP] Current config of PHP

2004-06-16 Thread Marek Kilimajer
Johannes Reichardt wrote --- napísal:: Thanks a lot - do you know how to do that with apache 1.3xxx by any chance? What is that? - Johannes Johannes Reichardt wrote --- napísal:: Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them -

[PHP] Re: post data

2004-06-16 Thread Rhemax
?php if(count($_POST) 0){ process form ... header('Location: '.$_SERVER['PHP_SELF']); die; } ? html ... your form here ... /html Eoghan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, im posting a form to itself... and im wondering if there is any

[PHP] Sending email with php

2004-06-16 Thread Phpu
Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. Thanks

[PHP] Re: Sending email with php

2004-06-16 Thread Torsten Roehr
Phpu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. Take a look at PEAR's Mail package: http://pear.php.net/package/Mail Regards, Torsten Roehr -- PHP General Mailing List

Re: [PHP] Sending email with php

2004-06-16 Thread Chris Hayes
At 12:43 16-6-04, you wrote: Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. for what it's worth, i use the class from phpguru.org and try a google on [helo smtp php mail], loads of hits -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Sending email with php

2004-06-16 Thread pete M
I use phpMailer http://phpmailer.sourceforge.net/ makes mailing a doddle pete Phpu wrote: Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Robin Vickery
On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Hi list, on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting 'test2': class test { function printClass() { echo __CLASS__; } } class test2 extends test { }

Re: [PHP] Current config of PHP

2004-06-16 Thread raditha dissanayake
Johannes Reichardt wrote: Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version? look in the

[PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier way. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] update count

2004-06-16 Thread Jay Blanchard
[snip] What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier way. :-) [/snip] Do the update with conditions (this is a SQL question)

Re: [PHP] update count

2004-06-16 Thread John Nichel
Bob Lockie wrote: What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier way. :-) UPDATE thisDB.thisTable SET thisTable.thisColumn =

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
Robin Vickery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Hi list, on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting 'test2': class test { function printClass() {

[PHP] list methods of class COM ?

2004-06-16 Thread Matthieu Loudes
Hi, Where can i find the methods list of module COM ? Ex : $Odject = new COM(WinNT://domain); Thanks ! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update count

2004-06-16 Thread Robin Vickery
On Wed, 16 Jun 2004 09:40:52 -0400, Bob Lockie [EMAIL PROTECTED] wrote: What is the best way to only do an update if it going to update only one row? You don't say what database you're using. The general way is to use a unique key in the WHERE clause. UPDATE tablename SET foo=1 WHERE

[PHP] Search Sanitization

2004-06-16 Thread Gabe
I'm writing a *very* simple search form for my db and was interested in hearing some recommendations on what to check for with the user's input for the search. However, I guess more specifically my question is if anyone had any advice as to other things I should check since it's a search form.

Re: [PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? You don't say what database you're using. The general way is to use a unique key in the WHERE clause. UPDATE tablename SET foo=1 WHERE id=123 MySQL also lets you use a LIMIT clause that will either limit the number

Re: [PHP] Regarding variable reference

2004-06-16 Thread Jason Wong
On Tuesday 15 June 2004 14:14, [EMAIL PROTECTED] wrote: Hi, I have variables called Cookie1 to Cookie35. I would like to print the values of Cookie1 to Cookie35 using for loop. Could anybody correct the below code to print the variables. == for($i=1;$i34;$i++)

Re: [PHP] can't change upload_tmp_dir--not sure what's up

2004-06-16 Thread Jason Wong
On Tuesday 15 June 2004 05:47, cory wrote: alas, when i upload a file, nothing arrives in the specified folder. All permissions are set to full access. Get the example in the manual to work then modify it to your needs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] index.php not loading up

2004-06-16 Thread John Nichel
Nguyen, Long P (Mission Systems) wrote: this is an entry in the php.ini file: error_reporting = E_ALL ~E_NOTICE where on the machine are the error logged to? Below that will be a line like this... display_errors = On If you setting is Off, change it to 'On', and restart your webserver. Also,

Re: [PHP] Scheduling a PHP script

2004-06-16 Thread Jason Wong
On Monday 14 June 2004 22:21, Phil Ewington - 43 Plc wrote: Is your commandline php executable compiled --with-mysql ? My PHP installation (4.3.6) was configured with: with-mysql=shared Does /path/to/php -i | less confirm this? -- Jason Wong - Gremlins Associates - www.gremlins.biz

RE: [PHP] index.php not loading up

2004-06-16 Thread Nguyen, Long P (Mission Systems)
ok - I checked and it's set to: display_errors = On so going back to your original question - yes error set to display on, but I don't think I am seeing errors - where are the error logs? Thank you -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Wednesday, June

Re: [PHP] index.php not loading up

2004-06-16 Thread Greg Donald
On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems) [EMAIL PROTECTED] wrote: so going back to your original question - yes error set to display on, but I don't think I am seeing errors - where are the error logs? Depends on what web server software you're using. Mine are in

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
On Wed, 16 Jun 2004 10:34:21 -0400, Gabe [EMAIL PROTECTED] wrote: I'm writing a *very* simple search form for my db and was interested in hearing some recommendations on what to check for with the user's input for the search. However, I guess more specifically my question is if anyone had

Re: [PHP] Just Testing

2004-06-16 Thread Greg Donald
On Wed, 16 Jun 2004 00:13:50 -0700, Kevin Clark [EMAIL PROTECTED] wrote: Um how so? He probably means it's improper netiquette to send a test message to such a large list as php-general. One could just wait for a message, as they usually come only moments apart. Sending a test message can

Re: [PHP] Just Testing

2004-06-16 Thread John Nichel
Greg Donald wrote: On Wed, 16 Jun 2004 00:13:50 -0700, Kevin Clark [EMAIL PROTECTED] wrote: Um how so? He probably means it's improper netiquette to send a test message to such a large list as php-general. One could just wait for a message, as they usually come only moments apart. Sending a

[PHP] PHP MySQL DATE comparison

2004-06-16 Thread Ryan Schefke
Hello, I'm pulling a date in the datetime format via a MySQL query. Using PHP I would like to check if that date is prior to today's date. Can someone please help with this quick question. Thanks, Ryan

Re: [PHP] update count

2004-06-16 Thread Daniel Clark
If your table has a primary key, or auto increment field works well and is quick. What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an

[PHP] Re: PHP MySQL DATE comparison

2004-06-16 Thread Torsten Roehr
Ryan Schefke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I'm pulling a date in the datetime format via a MySQL query. Using PHP I would like to check if that date is prior to today's date. Can someone please help with this quick question. You could convert it to a

RE: [PHP] PHP MySQL DATE comparison

2004-06-16 Thread Ryan Schefke
Hi All, Answering my own question here, maybe this will help others out: I found a nifty function below that will return seconds from Unix epoch to a mysql value in the datetime format. I'll just compare this to the php function time(). Let me know if anyone has a better solution. ?

RE: [PHP] index.php not loading up

2004-06-16 Thread Nguyen, Long P (Mission Systems)
apache - and I would think that mine would also be /var/log/apache but that path does not exist - was this created automatically when apache was installed? -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:00 PM To: Nguyen, Long P (Mission

RE: [PHP] index.php not loading up

2004-06-16 Thread R'twick Niceorgaw
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: apache - and I would think that mine would also be /var/log/apache but that path does not exist - was this created automatically when apache was installed? probably its /var/log/httpd ? -R'twick -- This is a signature

[PHP] Re: update count

2004-06-16 Thread Gerben
LIMIT 1 Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier

[PHP] src=test.php

2004-06-16 Thread Gerben
I wondering how browsers handle the following html-codes: link rel=stylesheet src=style.php / and script type=text/javascript src=code.php/script are there any browser that will choke in it because the files don't have the appropriate (.css and .js) extension? -- PHP General Mailing List

RE: [PHP] index.php not loading up

2004-06-16 Thread Nguyen, Long P (Mission Systems)
Found it, thanks. The errors are: [Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer:

[PHP] Re: Sending email with php

2004-06-16 Thread Manuel Lemos
Hello, On 06/16/2004 07:43 AM, Phpu wrote: Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. You may want to try this class that lets you send messages via a custom SMTP server if you really have to: http://www.phpclasses.org/mimemessage --

RE: [PHP] src=test.php

2004-06-16 Thread Chris W. Parker
Gerben mailto:[EMAIL PROTECTED] on Wednesday, June 16, 2004 10:38 AM said: I wondering how browsers handle the following html-codes: link rel=stylesheet src=style.php / and script type=text/javascript src=code.php/script are there any browser that will choke in it because the files

RE: [PHP] index.php not loading up

2004-06-16 Thread Michal Migurski
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16

RE: [PHP] index.php not loading up

2004-06-16 Thread R'twick Niceorgaw
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: Found it, thanks. The errors are: [Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 /var/www/html/ check your httpd.conf file and see if

Re: [PHP] src=test.php

2004-06-16 Thread Michal Migurski
I wondering how browsers handle the following html-codes: link rel=stylesheet src=style.php / and script type=text/javascript src=code.php/script are there any browser that will choke in it because the files don't have the appropriate (.css and .js) extension? What matters is the

[PHP] Read Last Lines of a Text File

2004-06-16 Thread Scott Miller
I have a text file (log file) that I want to be able to read the last 30 or 40 lines of. I've created the code below, but since this file is so large (currently 8 MB) it won't work. The code works on smaller files, but not this one. Can someone look at this below and tell me where I went wrong?

Re: [PHP] Read Last Lines of a Text File

2004-06-16 Thread Matt Matijevich
[snip] I've created the code below, but since this file is so large (currently 8 MB) it won't work. [/snip] I would guess you are running into your php memory_limit. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] index.php not loading up

2004-06-16 Thread Nguyen, Long P (Mission Systems)
Doesn't look like it.. DocumentRoot /var/www/html -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 1:10 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] index.php not loading up Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:

RE: [PHP] src=test.php

2004-06-16 Thread Keith Greene
I don't think there is a standard for the extensions of these files. In fact, this page: http://www.w3c.org/TR/CSS1#basic-concepts uses a url of http://style.com/cool; as an example of an external style sheet. Also, I use a .php file as a javascript include on my site. The script is included on

[PHP] Value in URL issue

2004-06-16 Thread Mike R
I have an issue where I have a value in a link like this: http://www.something.com/templates/nav.php?page=about But when the link is clicked on, the value of page is empty. Is this a globals issue of some sort? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Value in URL issue

2004-06-16 Thread Torsten Roehr
Mike R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have an issue where I have a value in a link like this: http://www.something.com/templates/nav.php?page=about But when the link is clicked on, the value of page is empty. Is this a globals issue of some sort? Try accessing

RE: [PHP] Re: Value in URL issue

2004-06-16 Thread Mike R
Both $_GET['page'] and print_r($_REQUEST) come up empty! No results at all. :\ -Mike -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 3:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Value in URL issue Mike R [EMAIL PROTECTED]

[PHP] Re: Value in URL issue

2004-06-16 Thread chmok
[EMAIL PROTECTED] (Mike R) wrote in news:[EMAIL PROTECTED]: I have an issue where I have a value in a link like this: http://www.something.com/templates/nav.php?page=about But when the link is clicked on, the value of page is empty. Is this a globals issue of some sort? Thanks,

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
$_SERVER['QUERY_STRING'] should get anything after the ? in your url. - Original Message - From: Mike R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 1:45 PM Subject: [PHP] Value in URL issue I have an issue where I have a value in a link like this:

Re: [PHP] Search Sanitization

2004-06-16 Thread Gabe
Greg Donald wrote: On Wed, 16 Jun 2004 10:34:21 -0400, Gabe [EMAIL PROTECTED] wrote: I'm writing a *very* simple search form for my db and was interested in hearing some recommendations on what to check for with the user's input for the search. However, I guess more specifically my question is if

Re: [PHP] Read Last Lines of a Text File

2004-06-16 Thread Matt Grimm
[EMAIL PROTECTED] (Scott Miller) wrote in news:[EMAIL PROTECTED]: I have a text file (log file) that I want to be able to read the last 30 or 40 lines of. I've created the code below, but since this file is so large (currently 8 MB) it won't work. The code works on smaller files, but not

RE: [PHP] Re: Value in URL issue

2004-06-16 Thread Mike R
I only get 'NULL' when I do that. Sort of interesting. -Mike -Original Message- From: Matt Grimm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 4:10 PM To: Mike R Subject: Re: [PHP] Re: Value in URL issue Try this at the top of nav.php (before any other code):

RE: [PHP] Value in URL issue

2004-06-16 Thread Mike R
Nothing gets printed out with this. :\ -Mike -Original Message- From: Gabino Travassos [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 4:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Value in URL issue $_SERVER['QUERY_STRING'] should get anything after the ? in

Re: [PHP] Regarding variable reference

2004-06-16 Thread Justin Patrin
Ulrik S. Kofod wrote: Justin Patrin sagde: Ulrik S. Kofod wrote: Why are you using eval? Eval is slow and is a hack... Just do: $y = $$x; if(isset($y)) { echo p$x:$y/p; } } True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4 times

Re: [PHP] list methods of class COM ?

2004-06-16 Thread Marek Kilimajer
Matthieu Loudes wrote --- napsal:: Hi, Where can i find the methods list of module COM ? Ex : $Odject = new COM(WinNT://domain); Thanks ! Matt http://msdn.microsoft.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
Maybe you should post all the relevant code. - Original Message - From: Mike R [EMAIL PROTECTED] To: Gabino Travassos [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 2:36 PM Subject: RE: [PHP] Value in URL issue Nothing gets printed out with this. :\ -Mike

[PHP] Re: Unit Testing

2004-06-16 Thread Red Wingate
Used all but 'Generic PHP Framework' and everything was quite fine and worked out just as i expected. But i was still missing some features which made me build my own small library to fit into my Framework. -- red Rick Fletcher wrote: Has anyone done any PHP unit testing? I've been looking around

[PHP] Re: Unit Testing

2004-06-16 Thread Red Wingate
Allmost forgot about this one: http://www.phppatterns.com/index.php/article/articleview/33/1/2/ very well written ( phpPatterns() ) covers some other nice topics as well, allways worth a read. -- red Red Wingate wrote: Used all but 'Generic PHP Framework' and everything was quite fine and worked

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
On Wed, 16 Jun 2004 16:10:10 -0400, Gabe [EMAIL PROTECTED] wrote: Hi Greg, I was looking at your function and I was wondering if you could explain how the slashes function works exactly. It looks like it is recursive, but I don't understand why you would need to do that. It handles regular

Re: [PHP] Read Last Lines of a Text File

2004-06-16 Thread Ashwin Purohit
Or maybe execution time limit. [snip] I've created the code below, but since this file is so large (currently 8 MB) it won't work. [/snip] I would guess you are running into your php memory_limit. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: RE: [PHP] list methods of class COM ?]

2004-06-16 Thread Marek Kilimajer
Forwarded to the list... - Pôvodná správa - Predmet: RE: [PHP] list methods of class COM ? Dátum: Wed, 16 Jun 2004 17:06:25 -0400 Od: Gryffyn, Trevor [EMAIL PROTECTED] Pre: Marek Kilimajer [EMAIL PROTECTED] I'm not familiar with using COM(WinNT://domain) but I've done quite a bit with COM

[PHP] Include Issues

2004-06-16 Thread Stephen Craton
I have a script that calls a function called conbox. This function creates the HTML to a content box and you also pass a file to be included into the content area of the box. The function echos out some of the HTML, then does a simple include(), and then echos out the rest of the HTML. I'm

[PHP] Resolving a warning

2004-06-16 Thread Ryan Schefke
Hi All, I've built my own shopping cart and use a library supplied by USAePay. The library is accessed via an include statement in my code. Because of theirs a desire to keep this library outside of my public web file directory USAePay recommended using: include

[PHP] Re: Include Issues

2004-06-16 Thread Justin Patrin
Stephen Craton wrote: I have a script that calls a function called conbox. This function creates the HTML to a content box and you also pass a file to be included into the content area of the box. The function echos out some of the HTML, then does a simple include(), and then echos out the rest

[PHP] Re: Resolving a warning

2004-06-16 Thread Justin Patrin
Warning: main(): open_basedir restriction in effect. File(/usr/local/lib/php/usaepay.php) is not within the allowed path(s): (/home/httpd/vhosts/tgwedding.com/httpdocs:/tmp) in /home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/payment7.php on line 11 How can I resolve this? Search the PHP

RE: [PHP] Re: Include Issues

2004-06-16 Thread Stephen Craton
Thank you for the suggestion, worked like a charm. I was using GLOBALS earlier in the script because of the same issue, just wasn't thinking about it for these variables. :-) Thanks, Stephen Craton http://www.melchior.us -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED]

Re: [PHP] Read Last Lines of a Text File

2004-06-16 Thread Curt Zirzow
* Thus wrote Scott Miller ([EMAIL PROTECTED]): I have a text file (log file) that I want to be able to read the last 30 or 40 lines of. I've created the code below, but since this file is so large (currently 8 MB) it won't work. The code works on smaller files, but not this one. Can someone

Re: [PHP] Value in URL issue

2004-06-16 Thread Curt Zirzow
hmm.. the third different topic in this thread.. * Thus wrote Mike R ([EMAIL PROTECTED]): I have an issue where I have a value in a link like this: http://www.something.com/templates/nav.php?page=about But when the link is clicked on, the value of page is empty. Is this a globals issue

Re: [PHP] Value in URL issue

2004-06-16 Thread Curt Zirzow
* Thus wrote Gabino Travassos ([EMAIL PROTECTED]): Maybe you should post all the relevant code. Please dont. If a simple script like so: ?php vardump($_GET); that is access via: http://server/simplescript.php?avar=avalue Is printing null, then something else is wrong. Curt -- First, let

Re: [PHP] Resolving a warning

2004-06-16 Thread Curt Zirzow
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]): I've built my own shopping cart and use a library supplied by USAePay. The library is accessed via an include statement in my code. Because of theirs a desire to keep this library outside of my public web file directory USAePay recommended

Re: [PHP] Regarding variable reference

2004-06-16 Thread Curt Zirzow
* Thus wrote Ulrik S. Kofod ([EMAIL PROTECTED]): but I think it is easier to read the program when using eval as it is more eye catching than just an extra $ that is easily missed. quote If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP

Re: [PHP] Resolving a warning

2004-06-16 Thread Marek Kilimajer
Ryan Schefke wrote --- napísal:: Hi All, I've built my own shopping cart and use a library supplied by USAePay. The library is accessed via an include statement in my code. Because of theirs a desire to keep this library outside of my public web file directory USAePay recommended using:

[PHP] imagecolortransparent IE

2004-06-16 Thread Brian Krausz
Hi, I have been working to create a program that takes a user-uploaded background image, a little alpha blending, some data, and a pinch of fairy dust, and outputs a nice image. I have had trouble with the image displaying properly in Internet Explorer. An example:

Re: [PHP] imagecolortransparent IE

2004-06-16 Thread Richard Harb
That's sort of a known issue with our oh so standards compliant favourite browser... Search google for ie png transparency and though shall be enlighted. Richard -Original Message- Hi, I have been working to create a program that takes a user-uploaded background image, a little

[PHP] PDF Templates with PHP

2004-06-16 Thread Merlin
HI there, I am wondering if it is possible to generate a pdf page with pdflib based on a existing pdf document. For example using an invoice template and filling in the values with php. Thank you for any hint, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: