[PHP] Gd2 Fonts

2004-07-23 Thread Alexandru Boulescu
Hi, I'm a newbie to linux and I have a question related to gd2 and ttf fonts under this operating system. I hava a php script that writes a text on a picture using functions like and i don't know how and where to install ttf fonts for this script to work. i've tried to put them in the same dir

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

2004-07-23 Thread Marek Kilimajer
Jordi Canals wrote: Porcupine PC wrote: How can i use PHP-Nuke in this safe mode? You must try to ask this in a PHP-Nuke especific list ... But the answer is NO, cannot be used in safe mode. Weird, I've seen php-nukes running in safe mode. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Getting PHP on Windows to talk to MS SQL?

2004-07-23 Thread weston
I'm trying to get PHP (for Windows) to talk to MS SQL Server. This is proving to be non-trivial... I downloaded and installed the Windows binary package on my machine (the machine is running Microsfot Windows XP Professional), and jumped through the hoops to get it running under Apache 2.0. So

Re: [PHP] Gd2 Fonts

2004-07-23 Thread Jason Wong
On Friday 23 July 2004 14:37, Alexandru Boulescu wrote: I'm a newbie to linux and I have a question related to gd2 and ttf fonts under this operating system. I hava a php script that writes a text on a picture using functions like and i don't know how and where to install ttf fonts for this

Re: [PHP] Getting PHP on Windows to talk to MS SQL?

2004-07-23 Thread Jason Wong
On Friday 23 July 2004 15:15, [EMAIL PROTECTED] wrote: Questions which are DB related should be posted to the php-db list. I'm trying to get PHP (for Windows) to talk to MS SQL Server. This is proving to be non-trivial... [snip] Have you gone through the suggestions in the user notes on the

Re: [PHP] Getting PHP on Windows to talk to MS SQL?

2004-07-23 Thread Paul Kain
Hi Weston, maybe this page can help you http://in.php.net/manual/en/function.odbc-connect.php On Fri, 23 Jul 2004 02:15:11 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get PHP (for Windows) to talk to MS SQL Server. This is proving to be non-trivial... I downloaded and

[PHP] good PHP to PDF libary?

2004-07-23 Thread Louie Miranda
Im looking for some good and complete and advanced PHP to PDF libarary. So far, i have seen pdflib and ros 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. thanks -- Louie

[PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Ron King
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 create simple php pages and serve them up. Then I tried to install pear, and things

[PHP] log.

2004-07-23 Thread Ulitin S.S.
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. p.s. sorry for my english. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] php and images

2004-07-23 Thread Roman Duriancik
I have problem with jpg pictures in php pages. Path and picture is correct but when i want see picture in php script picture don't show. I use PHP4.3.4 on apache server 2.0.44 on Windopws 2000 Server. Thanks for help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: good PHP to PDF libary?

2004-07-23 Thread Torsten Roehr
Louie Miranda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Im looking for some good and complete and advanced PHP to PDF libarary. So far, i have seen pdflib and ros 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

[PHP] Re: php and images

2004-07-23 Thread Torsten Roehr
Roman Duriancik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have problem with jpg pictures in php pages. Path and picture is correct but when i want see picture in php script picture don't show. I use PHP4.3.4 on apache server 2.0.44 on Windopws 2000 Server. Thanks for help.

[PHP] PHP4 : Installing LDAP without recompiling ?

2004-07-23 Thread ange
Hi everyone, I have currently a production server running PHP 4 with MySQL and other extension support enaoubled. This server is working and used by number of users. Can I enable LDAP support without having to recompile PHP ? Very thanks for your help Regards, Ange. -- PHP General Mailing

Re: [PHP] PHP4 : Installing LDAP without recompiling ?

2004-07-23 Thread Evan Nemerson
On Friday 23 Jul 2004 02:40, ange wrote: Hi everyone, I have currently a production server running PHP 4 with MySQL and other extension support enaoubled. This server is working and used by number of users. Can I enable LDAP support without having to recompile PHP ? Try running phpize in

Re: [PHP] PHP4 : Installing LDAP without recompiling ?

2004-07-23 Thread ange
Very thanks, this seems a perfectly suitable solution I will try this way just after lunch :) I may need further help about loading the .so lib with dl, but since I have not yet installed openldap, this seems a bit prematurate. Thanks again for your help. ange. Evan Nemerson [EMAIL

Re: [PHP] Disk serial number

2004-07-23 Thread Rosen
I receive an error: Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Friday, July 23, 2004, 8:26:56 AM, you wrote: R Hi, R Is there a way to get with PHP script (

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

2004-07-23 Thread Aidan Lister
Hi Ron, Sounds like you've done everything correctly, just PHP wasn't installed as a CLI. Just to be sure, do a $ find / -name php Then, if it is found, $ lynx -source http://go-pear.org/ | /path/to/php If it's not found, just grap a PHP rpm (make sure it's a CLI version, or --with-cli) and

[PHP] Re: log.

2004-07-23 Thread Aidan Lister
Hi Ulitin, When a user visits your page, you can create a session. This session will identify the user throughout his visit. Most people tend to log all actions to an IP address, or a hostname, this is probably easier. To get the IP, browser, referer, etc, look at:

[PHP] Re: log.

2004-07-23 Thread Ulitin S.S.
Aidan Lister [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED] Hi Ulitin, When a user visits your page, you can create a session. This session will identify the user throughout his visit. Most people tend to log all actions to an IP address, or a hostname, this

Re: [PHP] Disk serial number

2004-07-23 Thread Burhan Khalid
Rosen wrote: Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? c:\dir c:\test.txt Volume in drive C is Primary Volume Serial Number is 003E-6CEA Directory of c:\ 07/23/2004 01:43 PM11

[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: ?php if(strlen($_POST['item01']) 0) { ? ?php } ? (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

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

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

[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

[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

[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

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

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

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

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

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 message

[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

[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

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: ?php

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

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

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Chris Partridge
I have used ros 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] strlen question

2004-07-23 Thread Jake Stonebender
?php if(strlen($_POST['item01'] . $_POST['item02'] . strlen($_POST['item03'])) { ? 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] strlen question

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

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

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

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

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

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

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 ros 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. Several are

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

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 price

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'

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'

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 tabs

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

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

[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

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

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, when I first learned

[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

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

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. ?php if ($recordset['field'] != 1) { ? a href=# onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('PreviousPage','','/URL/ ButtonName.gif',1)img src=/URL/ButtonName.gif

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

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 '

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 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. ?php if ($recordset['field'] != 1) { ? a href=# onMouseOut=MM_swapImgRestore()

[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.php

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

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

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

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

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]

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

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

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] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
snip Jason Davidson wrote: Can you show whats on either side of that too please /snip 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

[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

[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, etc.) with

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 registration

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
snip 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? /snip Quothe the terminal: [EMAIL PROTECTED] html]$ find / -type f -name php.ini

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

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 or 3, etc.)

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

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 or 3,

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

[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

[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

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); imgNeeded = table['field'];

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, 3 = bkgrnd-negative.gif); imgNeeded

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 = ??? http://us3.php.net/array $imgBkgrnd =

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

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

[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

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Paul William
So far, i have seen pdflib and ros pdf class. But i really would like to hear from you guys what is best? I use the ros 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

[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

  1   2   >