Re: [PHP] How to get all links from a webpage?

2004-07-23 Thread raditha dissanayake
Wudi wrote: How can I get all links from a webpage? You need to parse the HTML of the web page first there may be several classes already available taht does it for you. The best I have seen though is not in PHP but in perl. -- Raditha Dissanayake. ---

[PHP] Re: Installing Php5 over Existing Php4.3.6

2004-07-23 Thread Francis Chang
No, I do not want to keep the old distribution. What is the proper way to "uninstall" the existing installation? Do I just do a 'make distclean'? Would that clean up all the libraries and the program files of the existing installation? Thanks again. Francis "Jason Barnett" <[EMAIL PROTECTED]

[PHP] How to get all links from a webpage?

2004-07-23 Thread Wudi
How can I get all links from a webpage? For example the HTML sources is: Page 2 http://www.host.com/path/logo.png";> And I want to get: print_r($links) Array ( [Page 2] => ../page2.htm ) print_r($images) Array ( [0] =>

[PHP] PHP editor that doesn't require installation

2004-07-23 Thread John W. Holmes
Does anyone know of a good windows PHP editor that I can run from a USB flash drive without installing it? A good stand-alone editor. I know how to use Vi, so I'll even take a copy of that (so long as it's got syntax hightlighting) so long as installation isn't required. For everyone else, yes,

Re: [PHP] which user is a script executing as?

2004-07-23 Thread Matt M.
> How do I determine with which user's permissions PHP scripts are executing? > > I am experimenting with suEXEC and running PHPs as CGIs; I need to know > with which user's permissions PHP scripts are executing. > > I've tried using getmyuid() and get_current_user(), but these only report the >

Re: [PHP] Code elegance and cleanliness

2004-07-23 Thread Matthew Sims
> Just a quick question. Does it really matter how long your code is or how > many variables you use? For instance you can enter the following... > > $imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > $imgNeeded = table['field']; > $imgNa

[PHP] Re: replace n first occurences of a char in a string

2004-07-23 Thread Jason Barnett
Then, once I have determined there are more than one dot, how can I remove all the dots but the right most one? You can replace a limited number of matches using preg_replace(). $number = '123.456.789.10'; $count = substr_count($number, '.'); $number = preg_replace('/\./', '', $number, $count -

[PHP] Re: Code elegance and cleanliness

2004-07-23 Thread Jason Barnett
Depends on the project. Generally I try to use something more like the first code block unless I really need to optimize for the server. Getting another server is usually cheaper than the extra time (read: money) spent debugging. Robb Kerr wrote: Just a quick question. Does it really matter ho

[PHP] replace n first occurences of a char in a string

2004-07-23 Thread C.F. Scheidecker Antunes
Hello all, If I have a string like this 123.456.789.01 , where dots are used to separate the thousands and the decimal part. How can I first detect this situation? More than one dot. I guess I could use str_word_count() from the manual, right? Then, once I have determined there are more than on

[PHP] Code elegance and cleanliness

2004-07-23 Thread Robb Kerr
Just a quick question. Does it really matter how long your code is or how many variables you use? For instance you can enter the following... $imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); $imgNeeded = table['field']; $imgName = $imgBkgr

[PHP] Re: Changing items in $_POST

2004-07-23 Thread Jason Barnett
However, there are a few variables I need changed. For example, the people I'm sending it to need $rate_1m which is a mortgage rate but in $_POST there is $rate_1m1 (the whole number) and $rate_1m2 (the two numbers after the decimal). How do I get those two together and then discard the two num

[PHP] Changing items in $_POST

2004-07-23 Thread Jeff Oien
I have items from a form that will be in $_POST that I want to send on. I'll be using this: $arr = array(); foreach($_POST as $key => $value) { $arr[] = $key.'='.urlencode($value); } $URL = "https://example.com/script.asp?".implode('&',$arr); header("Location: $URL\n"); However, there are a

Re: [PHP] which user is a script executing as?

2004-07-23 Thread Matthew Sims
> How do I determine with which user's permissions PHP scripts are > executing? Generally, if you execute a script through the web server, it's being executed under the web server's UID. > > I am experimenting with suEXEC and running PHPs as CGIs; I need to know > with which user's permissions PH

Re: [PHP] Re: Trouble with Apache, PHP, pear

2004-07-23 Thread Matthew Sims
> At 03:25 AM 7/23/2004, you wrote: > >>Sounds like you've done everything correctly, just PHP wasn't installed >> as a >>CLI. Just to be sure, do a $ find / -name php > > Is it ok to have PHP installed as both CLI and as a module? > It is perfectly okay to have both. I'm using both on a server I

Re: [PHP] Converting regional decimal numbers

2004-07-23 Thread John W. Holmes
C.F. Scheidecker Antunes wrote: I have a few users that use a different number format, other than the US one, which is 1.526,23 . That is, the comma is used as a separator for the fractional part of the number (.23) and the dot is used to separate thousands. Therefore, I need to convert 1.526,23

Re: [PHP] Array help

2004-07-23 Thread Matthew Sims
>> > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => >> > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); >> >> You got it... >> >> imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => >> "bkgrnd-positive.gif", >> "3" => "bkgrnd-negative.gif"); >> imgNeeded = table['field']; >> imgName =

[PHP] Re: Installing Php5 over Existing Php4.3.6

2004-07-23 Thread Jason Barnett
Francis Chang wrote: Hi, I would like to install Php5 over an existing Php4.3.6 installation on Linux. What is the proper procedure? Do I need to "uninstall" the previous version first, if so, how? Can I install Php5 into the same location as the previous installation or should I install it into

[PHP] Re: DOMXML support should be added to PHP5

2004-07-23 Thread Jason Barnett
Scrumpy wrote: Sorry for the repeated posts. I didn't know that they got queued awaiting confirmation of my email address :) Yeah, I was wondering about the reposts. Well you are right that if you used the old DOMXML functions in PHP4 that there is no clean way to move that code forward without

[PHP] Converting regional decimal numbers

2004-07-23 Thread C.F. Scheidecker Antunes
Hello all, I have a few users that use a different number format, other than the US one, which is 1.526,23 . That is, the comma is used as a separator for the fractional part of the number (.23) and the dot is used to separate thousands. Therefore, I need to convert 1.526,23 to 1,526.23, invert t

[PHP] which user is a script executing as?

2004-07-23 Thread Jack
How do I determine with which user's permissions PHP scripts are executing? I am experimenting with suEXEC and running PHPs as CGIs; I need to know with which user's permissions PHP scripts are executing. I've tried using getmyuid() and get_current_user(), but these only report the owner of the s

[PHP] Re: HTML Escaping

2004-07-23 Thread Al
Look up heredoc in te php manual Robb Kerr wrote: I've got a conditional button that needs to appear/hide on my page depending upon the contents of a field in my database. The button is an image and has a long URL and JavaScript for image rotation attached to it. Needless to say, the href is quite

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Paul William
So far, i have seen pdflib and r&os pdf class. But i really would like to hear from you guys what is best? I use the r&os pdf class. It works great. Cheers Paul my only main goal for this is to create a low - res pdf and a hi - res business card pdf template. [/snip] http://www.fpdf.org -- PHP Gen

[PHP] Re: [newbie] Trouble with Apache, PHP, pear

2004-07-23 Thread Ron King
At 01:35 AM 7/23/2004, you wrote: I don't know about mdk10, but I have pear and php running fine on mdk9.2. I don't recall having to add anything to the *.conf files to do it either. If you are going to try piping output to php from the command line, perhaps you should install php-cgi first. I did

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Ron King
At 06:28 AM 7/23/2004, you wrote: You need php-cli rpm, it's not an extension, it's command line binary. And it won't hurt anything to have both cli and extension installed? -- Ron Ron King wrote: When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could se

Re: [PHP] Re: Trouble with Apache, PHP, pear

2004-07-23 Thread Ron King
At 03:25 AM 7/23/2004, you wrote: Sounds like you've done everything correctly, just PHP wasn't installed as a CLI. Just to be sure, do a $ find / -name php Is it ok to have PHP installed as both CLI and as a module? Then, if it is found, $ lynx -source http://go-pear.org/ | /path/to/php If it's no

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > > You got it... > > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", > "3" => "bkgrnd-negative.gif"); > imgNeeded = table['field']; > imgName = ??? >

RE: [PHP] Array help

2004-07-23 Thread Pablo Gosse
Robb Kerr wrote: > On Fri, 23 Jul 2004 14:21:42 -0700 (PDT), Matthew Sims wrote: > >> imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => >> "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > > You got it... > > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > "bkgrnd-positive.gif",

Re: [PHP] Array help

2004-07-23 Thread Robb Kerr
On Fri, 23 Jul 2004 14:21:42 -0700 (PDT), Matthew Sims wrote: > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); You got it... imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); im

[PHP] JavaScript in PHP or PHP in JavaScript

2004-07-23 Thread Robb Kerr
Let me preface this by saying that I don't know JavaScript. I've got a page that is built by a long complicated JavaScript that I was able to hack just enough to function the way I wanted. There are some lines of code -- those that define div positioning -- that need to be different depending upon

[PHP] classes being extended

2004-07-23 Thread Dennis Gearon
Can someone ask the internals list this question, since I can't seem to subscribe right now, (or answer the question) If a class is a base class, does each child make it's own copy of: the whole base class the class variables only something else? So if I have a bunch of obj

Re: [PHP] Error parsing php.ini

2004-07-23 Thread Jason Davidson
Im beat, unless there is any more information that could possibly clue me in, im lost. A one time error on a section of file that is commented out i dont understand. im sorry :( .. some hardware glich or something maybe??? ... i dunno. haha Jason On Fri, 23 Jul 2004 14:10:09 -0700, Pablo Go

Re: [PHP] Array help

2004-07-23 Thread Matthew Sims
> I've got a field in my database that contains a single numerical character > ("1" or "2" or "3", etc.). I need to load a different background image in > one cell of a table depending upon what the number the field contains. > What's the easy syntax for associating entries in the field ("1" or "2

Re: [PHP] Array help

2004-07-23 Thread Jason Davidson
You can either hard code the associations, with something like a swtich statement, or i suppose loop thru one array, adding a key value pair of the numbers => background images. Or, you could create a table called Backgrounds, give them an id which you store in the existing field of your db, and u

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> I've got a field in my database that contains a single numerical character > ("1" or "2" or "3", etc.). I need to load a different background image in > one cell of a table depending upon what the number the field contains. > What's the easy syntax for associating entries in the field ("1" or "2"

Re: [PHP] INSERT INTO using foreach

2004-07-23 Thread Jason Davidson
It may be a matter of opinion, but i beleive this is a poor method of doing what your doing. I would get my values thru $_REQUEST and use addslashes to escape what needs to be escaped, and i would write my SQL query with full column listing and string values in quotes. eg.. INSERT INTO table (col

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Jason Davidson wrote: > Oh, it was a one time error, strange, youve never had this error > before, and this definately is the php.ini file your using, ie, there > isnt another somewhere thats getting used? Quothe the terminal: [EMAIL PROTECTED] html]$ find / -type f -name "php.ini" 2>/dev/nul

Re: [PHP] INSERT INTO using foreach

2004-07-23 Thread Matt M.
> foreach($_POST as $key => $value){ > if($key == 'Submit'){ > exit; > } > else{ > $sql = "INSERT INTO registration ('$key') > VALUES ('$value')"; > $result = mssql_query($sql); > } > } not sure if wrapping columns names in single quotes is valid mssql, try: $sql = "INSERT INTO

[PHP] Array help

2004-07-23 Thread Robb Kerr
I've got a field in my database that contains a single numerical character ("1" or "2" or "3", etc.). I need to load a different background image in one cell of a table depending upon what the number the field contains. What's the easy syntax for associating entries in the field ("1" or "2" or "3",

[PHP] INSERT INTO using foreach

2004-07-23 Thread Alex Hogan
Hi All, I have a form with several values to insert. I thought that I remember a thread that discussed using a loop to insert $_POSTed values. I am trying; foreach($_POST as $key => $value){ if($key == 'Submit'){ exit; } else{ $sql = "INSERT INTO registration ('$key') VALUES ('$va

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Jason Davidson wrote: > Can you show whats on either side of that too please The following are lines 91 - 112 ; You can redirect all of the output of your scripts to a function. For ; example, if you set output_handler to "ob_gzhandler", output will be ; transparently compressed for browsers t

Re: [PHP] Include path (SOLVED)

2004-07-23 Thread PHP Gen
Hey everyone, ** Have you tried $_SERVER['DOCUMENT_ROOT'].'/'; ** Matt, DAMN! THATS what I was looking for. No, didnt try that, took the long route home instead, but atleast brushed up on php's "explode" function. ** $baseDir = $_SERVER["DOCUMENT_ROOT"]; $templatesDir = $baseDir . "/templates/

Re: [PHP] Quickbooks

2004-07-23 Thread Mark
I haven't tried, but supposedly if you get the QDBC driver, it will work just as an ODBC database. --- Ed Lazor <[EMAIL PROTECTED]> wrote: > Has anyone had success accessing Quickbooks from PHP? > > > > Sorry for asking this a second time. The first time didn't > generate any > response and m

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Have you tried > > $_SERVER['DOCUMENT_ROOT'].'/'; > sorry, I meant include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include path

2004-07-23 Thread Ed Lazor
$baseDir = $_SERVER["DOCUMENT_ROOT"]; $templatesDir = $baseDir . "/templates/"; include($templatesDir . "header.php"); include($templatesDir . "body.php"); include($templatesDir . "footer.php"); > :-) > > Good solution, but the problem is once the program is > completed it goes out of my hands

RE: [PHP] Include path

2004-07-23 Thread Vail, Warren
Have you tried; Include "../templates/header.php"; Warren Vail -Original Message- From: PHP Gen [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 12:28 PM To: Jay Blanchard; php php Subject: RE: [PHP] Include path --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > /home/sites

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Good solution, but the problem is once the program is > completed it goes out of my hands and most prolly the > client wont know the exact paths, the templates folder > would *always* be one below...but the path before the > /templates will change. if you dont know what directory it will be in,

RE: [PHP] Include path

2004-07-23 Thread PHP Gen
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > /home/sites/site80/web/articles/myfile.php > > from "myfile.php" I want to include "header.php" > which > is located in: > > /home/sites/site80/web/templates/ > > /* > > eg: > /home/sites/site80/web/articles/myfile.php > /home/sites/site80

Re: [PHP] Include path

2004-07-23 Thread John W. Holmes
PHP Gen wrote: Hello, I am a bit confused :-(, this is my server path: /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ include('/home/sites/site80/web/templates/header.php'); Are you looking for a rel

RE: [PHP] Include path

2004-07-23 Thread Jay Blanchard
[snip] /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ /* eg: /home/sites/site80/web/articles/myfile.php /home/sites/site80/web/templates/header.php */ [/snip] in /home/sites/site80/web/articles

[PHP] Include path

2004-07-23 Thread PHP Gen
Hello, I am a bit confused :-(, this is my server path: /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ /* eg: /home/sites/site80/web/articles/myfile.php /home/sites/site80/web/templates/header.

Re: [PHP] HTML Escaping

2004-07-23 Thread Robb Kerr
On Fri, 23 Jul 2004 14:23:27 -0400, Brent Baisley wrote: > Took me a little while to figure out what you were asking. You can do > something like this for easy readability. > if ($recordset['field'] != "1") { > ?> > > onMouseOver="MM_swapImage('PreviousPage','','/URL/ > ButtonName.gif',1)">

Re: [PHP] HTML Escaping

2004-07-23 Thread Robb Kerr
On Fri, 23 Jul 2004 14:43:29 -0400, John W. Holmes wrote: > Robb Kerr wrote: >> I've got a conditional button that needs to appear/hide on my page >> depending upon the contents of a field in my database. The button is an >> image and has a long URL and JavaScript for image rotation attached to it

Re: [PHP] HTML Escaping

2004-07-23 Thread John W. Holmes
Robb Kerr wrote: I've got a conditional button that needs to appear/hide on my page depending upon the contents of a field in my database. The button is an image and has a long URL and JavaScript for image rotation attached to it. Needless to say, the href is quite long and includes several "'" cha

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Jason Davidson wrote: > whats on line 102 of the php.ini file ??? > > Jason > > On Fri, 23 Jul 2004 10:27:29 -0700, Pablo Gosse <[EMAIL PROTECTED]> > wrote: >> Hi folks. I've written a CMS which uses a cron job to execute a >> script that pushes/pulls content from our website. >> >> It's been

Re: [PHP] HTML Escaping

2004-07-23 Thread Brent Baisley
Took me a little while to figure out what you were asking. You can do something like this for easy readability. if ($recordset['field'] != "1") { ?> onMouseOver="MM_swapImage('PreviousPage','','/URL/ ButtonName.gif',1)"> src="/URL/ButtonName.gif" alt="Previous Page" name="Previous Page" width

Re: [PHP] HTML Escaping

2004-07-23 Thread Matt M.
> Needless to say, the href is quite long and includes several "'" > characters. My conditional works great but I want to know if there is an > easy way to escape the whole href so that the "'" characters will not be > seen as PHP quote marks. See below... urlencode will escape the quotes -- PHP

[PHP] Re: Quickbooks

2004-07-23 Thread Manuel Lemos
Hello, On 07/23/2004 03:00 PM, Ed Lazor wrote: Has anyone had success accessing Quickbooks from PHP? Class: rds http://www.phpclasses.org/qbrds You may want to try this class that integrates with Quickbooks Remote Data Services API. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP com

Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread Justin Patrin
On Fri, 23 Jul 2004 17:51:52 +0300, EE <[EMAIL PROTECTED]> wrote: > On Fri, 2004-07-23 at 00:06, Justin Patrin wrote: > > On Thu, 22 Jul 2004 23:48:54 +0300, EE <[EMAIL PROTECTED]> wrote: > > > Dears, > > > > > > I am planing to rewrite my website. My site is tutorial-type site I > > > wrote it, wh

[PHP] HTML Escaping

2004-07-23 Thread Robb Kerr
I've got a conditional button that needs to appear/hide on my page depending upon the contents of a field in my database. The button is an image and has a long URL and JavaScript for image rotation attached to it. Needless to say, the href is quite long and includes several "'" characters. My condi

[PHP] Quickbooks

2004-07-23 Thread Ed Lazor
Has anyone had success accessing Quickbooks from PHP? Sorry for asking this a second time. The first time didn't generate any response and my email server hiccuped shortly after I made the post, so I likely missed any responses sent directly to me. -Ed

[PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Hi folks. I've written a CMS which uses a cron job to execute a script that pushes/pulls content from our website. It's been working very well, and still is, but this morning I found this in the CMS error log: PHP: Error parsing /u0/local/apache2/conf/php/php.ini on line 102 Has anyone encount

Re: [PHP] Disk serial number

2004-07-23 Thread Lars Torben Wilson
Rosen wrote: I would like to create it as module for PHP like function - like "gethdserial()" - and function to retrieve me serial number of HDD. I know how to retrieve serial number in C, Delphi. I assume you want to do it the hard way to learn about programming modules...? As others have said, tr

Re: [PHP] Using Post like Get

2004-07-23 Thread Frank Munch
Hi, a cookie is path-specific - can that help you? Frank At 10:54 PM 8/23/2004, you wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.

Re: [PHP] Using Post like Get

2004-07-23 Thread Matthew Sims
> What I'm trying to achieve is to have the same cookie IDENTIFY a user on > different (or same) applications (on the same server), but require them > to log in for each application, and get a different session.. Basically, > to keep separate 'user trails and in process variables' for different > t

Re: [PHP] Using Post like Get

2004-07-23 Thread John W. Holmes
Dennis Gearon wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' f

Re: [PHP] Using Post like Get

2004-07-23 Thread raditha dissanayake
Dennis Gearon wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' f

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Matt M.
> PDF Lib is very COOL , its give you ability to encrypt an existing pdf file > its give you a powerful method to import pages from an existing pdf file and > do some thing on it , its have only one problem very expensive price for > full power . > if they only split php version annd change the pr

Re: [PHP] Using Post like Get

2004-07-23 Thread Dennis Gearon
What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' for different tabs or

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Philip Olson
> Im looking for some good and complete and advanced PHP to PDF libarary. > > So far, i have seen pdflib and r&os pdf class. But i really would like > to hear from you guys what is best? > > my only main goal for this is to create a low - res pdf and a hi - res > business card pdf template. Seve

Re: [PHP] Using Post like Get

2004-07-23 Thread John W. Holmes
Dennis Gearon wrote: With get varaibles, it's possible to always have get variables on a page, even without a form, by simply appending the Get variables to the end of the URL. Is there anyway to do the same with Post variables? For instance, a javascript that onUnload submit, or something? You

[PHP] RSS and your opinion needed.

2004-07-23 Thread PHP Gen
Hi, Some time back I came on the list and asked your advise for a class that gets RSS feeds from diff sites, I got quite a few good sites and a particular class that was really good. Unfortunatly I lost it in a webhost change but here is what it did: It got the feed and cached it for a day (or two

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Alawi albaity
PDF Lib is very COOL , its give you ability to encrypt an existing pdf file its give you a powerful method to import pages from an existing pdf file and do some thing on it , its have only one problem very expensive price for full power . if they only split php version annd change the price for fu

Re: [PHP] Using Post like Get

2004-07-23 Thread raditha dissanayake
Dennis Gearon wrote: With get varaibles, it's possible to always have get variables on a page, even without a form, by simply appending the Get variables to the end of the URL. Is there anyway to do the same with Post variables? For instance, a javascript that onUnload submit, or something? You

[PHP] Using Post like Get

2004-07-23 Thread Dennis Gearon
With get varaibles, it's possible to always have get variables on a page, even without a form, by simply appending the Get variables to the end of the URL. Is there anyway to do the same with Post variables? For instance, a javascript that onUnload submit, or something? -- PHP General Mailing

Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 04:57, Justin French wrote: > On 23/07/2004, at 6:48 AM, EE wrote: > > > 1. Printer Friendly Version Capability > > This can be achieved with media specific style sheets stylesheets -- no > need for separate templates. > Do you recommend any tutorial? > > > 2. Search-abi

Re: [PHP] Best practice to re-write a tutorial website

2004-07-23 Thread EE
On Fri, 2004-07-23 at 00:06, Justin Patrin wrote: > On Thu, 22 Jul 2004 23:48:54 +0300, EE <[EMAIL PROTECTED]> wrote: > > Dears, > > > > I am planing to rewrite my website. My site is tutorial-type site I > > wrote it, when I first learned php3, as an undergraduate research class. > > I think the

[PHP] Installing Php5 over Existing Php4.3.6

2004-07-23 Thread Francis Chang
Hi, I would like to install Php5 over an existing Php4.3.6 installation on Linux. What is the proper procedure? Do I need to "uninstall" the previous version first, if so, how? Can I install Php5 into the same location as the previous installation or should I install it into a different PREFIX

Re: [PHP] strlen question

2004-07-23 Thread Jake Stonebender
On Fri, 23 Jul 2004 09:34:24 -0500, Jake Stonebender <[EMAIL PROTECTED]> wrote: That's what I actually meant. Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen question

2004-07-23 Thread Jake Stonebender
I'm shooting for succinctness here. I'd like to see if someone has a shorter solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Chris Partridge
I have used r&os pdf class many times, it is very simple but very effective. Read over the doco's and see how powerful+simple it really is! Cheers, Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and images

2004-07-23 Thread Miroslav Hudak (php/ml)
I have a certain difficulties in case of processing large images thru GD2 library. GD2 has some problems with image processing and it results in some exception and GD just crashes. I have to mention, that the crash causes whole php interpreter to crash and execution of the script is terminated w

Re: [PHP] how to use PHP-Nuke in safe mode

2004-07-23 Thread Porcupine PC
Well the problem i am having is: I am using Raven's 7.3 Distro of PHP-Nuke (www.ravenphpscripts.com) I had the software installed and edited the config.php file. I then setup a administrator "God" account. But then when i try to log in, it said "access denied" Joe "Marek Kilimajer" <[EMAIL PROT

Re: [PHP] strlen question

2004-07-23 Thread Matt M.
> the form is separated into 5 sections and if there are no items filled out > in that section, then i need to hide the title too. > > I have been playing around with the syntax and am not having any > success...any suggestions? > > here is a sample of what i am trying: > > 0) { ?> > >

[PHP] postfix - php

2004-07-23 Thread David Bourne
On 23/07/2004, at 2:15 AM, [EMAIL PROTECTED] wrote: Subject: Re: [PHP] postfix with PHP on Mac OS X I'm betting that the problem is with security. By default, Apple ships the mail server configured to NOT be an open relay. Meaning, you need to provide a login name and password in order to send em

[PHP] Re: php-general Digest 23 Jul 2004 07:15:16 -0000 Issue 2893

2004-07-23 Thread David Bourne
On 23/07/2004, at 2:15 AM, [EMAIL PROTECTED] wrote: To check if your mail server is actually running, type "telnet mailserver.com 25" in your terminal. If it is running, you should get a message like "220 mailserver.com ESMTP...". Then type "quit" to get out. -- PHP General Mailing List (http://

RE: [PHP] Re: strlen question

2004-07-23 Thread Thijs Lensselink
Well you want to check if the var is not set then don't show the title. // if item01 is not set if(!isset($_POST['item01'])) { // $title = ""; } msa wrote: > sorry, i'm not a coder.that means nothing to me.. > > try isset() how? > > "Mr. Bogomil Shopov" <[EMAIL PROTECTED]> wrote in me

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Marek Kilimajer
You need php-cli rpm, it's not an extension, it's command line binary. Ron King wrote: When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked OK. I could c

Re: [PHP] log.

2004-07-23 Thread Matt M.
> I am learning php. > I need to log all actions on my page. (like ip, browser, time, pages etc). > question is: how can i identify a user and when he is on my page(s) to log > all his actions. Along with the other stuff posted, take a look at http://phpsniff.sourceforge.net/ -- PHP General Ma

Re[2]: [PHP] Disk serial number

2004-07-23 Thread Tom Rogers
Hi, Friday, July 23, 2004, 8:08:22 PM, you wrote: R> I receive an error: R> "Warning: dl(): Not supported in multithreaded Web servers - use extension R> statements in your php.ini " You need to add extension=php_w32api.dll to your php.ini and restart the web server -- regards, Tom -- PHP

[PHP] DOMXML API support needed in PHP5

2004-07-23 Thread Scrumpy
When I had decided to redevelop my website using PHP4's XSLT functions as the templating system (as opposed to Smarty, phplib etc.), I looked at PHP4's two alternatives: 1. XML (Expat) + XSL (Sablotron) 2. DOMXML (libxml2 & libxslt) At the time there were early signs that PHP5's XML/XSLT suppor

[PHP] Re: strlen question

2004-07-23 Thread msa
sorry, i'm not a coder.that means nothing to me.. try isset() how? "Mr. Bogomil Shopov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > try isset() > > > Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOMXML support should be added to PHP5

2004-07-23 Thread Scrumpy
Sorry for the repeated posts. I didn't know that they got queued awaiting confirmation of my email address :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DOMXML support should be added to PHP5

2004-07-23 Thread Scrumpy
When I had decided to redevelop my website using PHP4's XSLT functions as the templating system (as opposed to Smarty, phplib etc.), I looked at PHP4's two alternatives: 1. XML (Expat) + XSL (Sablotron) 2. DOMXML (libxml2 & libxslt) At the time there were early signs that PHP5's XML/XSLT suppor

[PHP] DOMXML support should be added to PHP5

2004-07-23 Thread Scrumpy
When I had decided to redevelop my website using PHP4's XSLT functions as the templating system (as opposed to Smarty, phplib etc.), I looked at PHP4's two alternatives: 1. XML (Expat) + XSL (Sablotron) 2. DOMXML (libxml2 & libxslt) At the time there were early signs that PHP5's XML/XSLT suppor

[PHP] DOMXML API support needed in PHP5

2004-07-23 Thread Scrumpy
When I had decided to redevelop my website using PHP4's XSLT functions as the templating system (as opposed to Smarty, phplib etc.), I looked at PHP4's two alternatives: 1. XML (Expat) + XSL (Sablotron) 2. DOMXML (libxml2 & libxslt) At the time there were early signs that PHP5's XML/XSLT suppor

Re: [PHP] log.

2004-07-23 Thread Ulitin S.S.
"John W. Holmes" <[EMAIL PROTECTED]> ???/ ? ?: news:[EMAIL PROTECTED] > Ulitin S.S. wrote: > > I am learning php. > > I need to log all actions on my page. (like ip, browser, time, pages etc). > > question is: how can i identify a user and when he is on my page(s) to

RE: [PHP] good PHP to PDF libary?

2004-07-23 Thread Jay Blanchard
[snip] Im looking for some good and complete and advanced PHP to PDF libarary. So far, i have seen pdflib and r&os pdf class. But i really would like to hear from you guys what is best? my only main goal for this is to create a low - res pdf and a hi - res business card pdf template. [/snip] htt

[PHP] Re: strlen question

2004-07-23 Thread Mr. Bogomil Shopov
try isset() Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] log.

2004-07-23 Thread John W. Holmes
Ulitin S.S. wrote: I am learning php. I need to log all actions on my page. (like ip, browser, time, pages etc). question is: how can i identify a user and when he is on my page(s) to log all his actions. Your web server already does all of this, why duplicate it? Just get a log analyzer. -- ---

[PHP] strlen question

2004-07-23 Thread msa
I have successfully hidden some parts of a form based on items being blank with following code: 0) { ?> (with the help of this forum!!) the form is separated into 5 sections and if there are no items filled out in that section, then i need to hide the title too. I have been playing around

  1   2   >