php-general Digest 14 Aug 2008 11:33:31 -0000 Issue 5623

2008-08-14 Thread php-general-digest-help
php-general Digest 14 Aug 2008 11:33:31 - Issue 5623 Topics (messages 278055 through 278067): Re: regex 278055 by: Philip Thompson 278056 by: Micah Gersten 278057 by: Shawn McKenzie 278058 by: Boyd, Todd M. 278059 by: Philip Thompson 278060

php-general Digest 14 Aug 2008 23:57:30 -0000 Issue 5624

2008-08-14 Thread php-general-digest-help
php-general Digest 14 Aug 2008 23:57:30 - Issue 5624 Topics (messages 278068 through 278104): Tool Tip in pdf 278068 by: Subhranil 278074 by: Micah Gersten Re: On one of my computers, php can't see an external javascriptI included 278069 by: Boyd, Todd M.

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-14 Thread Per Jessen
googling1000 wrote: I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the following

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-14 Thread googling1000
Hi, Thanks already for replying. How do you check for that??? And, what do you have to do to force Apache to load it??? Per Jessen wrote: googling1000 wrote: I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-14 Thread Per Jessen
googling1000 wrote: Hi, Thanks already for replying. How do you check for that??? And, what do you have to do to force Apache to load it??? You're on Windows, right? Sorry, I don't know anything about Windows. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] On one of my computers, php can't see an external javascriptI included

2008-08-14 Thread Carlos Medina
googling1000 schrieb: I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the following line in

[PHP] php-gd problems on Ubuntu 8.04

2008-08-14 Thread Chantal Rosmuller
Hi list, I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu doesn't use the gd bundles library for security reasons if I understood this correctly. I solved it by downloading a php-gd fedora rpm and converting it to .deb with alien. it works for the apache websites but not for

[PHP] Tool Tip in pdf

2008-08-14 Thread Subhranil
Hi all, I am creating a pdf where text size of cell is not fixed. My problem is if one text is too long than that cell then it overlap the next cell. I wish to show the part of the text which are loneger than cell size and put a tool tip on that cell which show the complete text. Is it

RE: [PHP] On one of my computers, php can't see an external javascriptI included

2008-08-14 Thread Boyd, Todd M.
-Original Message- From: Carlos Medina [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 2:06 AM To: php-general@lists.php.net Subject: Re: [PHP] On one of my computers, php can't see an external javascriptI included googling1000 schrieb: I have apache and php on

RE: [PHP] On one of my computers, php can't see an external javascriptI included

2008-08-14 Thread Jay Blanchard
[snip] googling1000 schrieb: I have apache and php on Windows. I have 3 computers. A php file is calling an external .js file. Two of my computers have no problem calling a .js file, there's only one machine that doesn't execute functions inside of the .js file. My .php file has the

[PHP] Merge array i think

2008-08-14 Thread admin
Here is my problem in mssql in asp i can SELECT (height + 'x' + width) as size FROM Twenty How can i do that for mysql under php? I am trying to create a single array result using 2 different fields of data plus extra characters. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Merge array i think

2008-08-14 Thread admin
Never mind I was looking at php and it was a Mysql thing SELECT CONCAT('My', 'S', 'QL'); will do exactly what i want Here is my problem in mssql in asp i can SELECT (height + 'x' + width) as size FROM Twenty How can i do that for mysql under php? I am trying to create a single array

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-14 Thread googling1000
Edit: I don't think Javascript is disabled on my computer. When I tried posting the code online, I see that my js functions are executed just fine on this one particular machine. -- View this message in context:

Re: [PHP] Tool Tip in pdf

2008-08-14 Thread Micah Gersten
Why not wrap the text? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Subhranil wrote: Hi all, I am creating a pdf where text size of cell is not fixed. My problem is if one text is too long than that cell then it overlap the next cell. I wish to

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-14 Thread Micah Gersten
Make sure that your php.ini file for the cli is loading gd. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Chantal Rosmuller wrote: Hi list, I have a PHP problem on Ubuntu 8.04, the php-gd package for ubuntu doesn't use the gd bundles library for

[PHP] PHP editor for linux

2008-08-14 Thread It flance
Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor for linux

2008-08-14 Thread Dan Joseph
On Thu, Aug 14, 2008 at 1:05 PM, It flance [EMAIL PROTECTED] wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You should

Re: [PHP] PHP editor for linux

2008-08-14 Thread Micah Gersten
I use Eclipse with PHPEclipse. I think you have to install from source to get PHPEclipse to work right. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian

Re: [PHP] PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 1:05 PM, It flance [EMAIL PROTECTED] wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Eclipse with

[PHP] Floats and avoid exponential notation - How?

2008-08-14 Thread k bah
Hi, I'm working with floats because I have a big number to identify users, and the only operation I make with this number is to add something less than 100 with 100 (one and ten zeros). Besides that I just need to use the number to search (= comparison). I never need the

[PHP] Re: PHP editor for linux

2008-08-14 Thread Colin Guthrie
Eric Butera wrote: Eclipse with PDT. http://www.zend.com/en/community/pdt#all As much as I hate +1 emails, this is a good options... Good subversion integration too if that floats your boat. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Displaying files

2008-08-14 Thread Dan Shirah
I think this should be a simple question and answer, but after looking through the manual and goggling I have yet to find an answer. Question: Using PHP, how would I go about opening a file in a window, table or div? Example: I have a file called 123.xls. When a condition is met, I want PHP to

Re: [PHP] Re: PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 1:36 PM, Colin Guthrie [EMAIL PROTECTED] wrote: As much as I hate +1 emails, this is a good options... Good subversion integration too if that floats your boat. Col +1 for subclipse! ;D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Displaying files

2008-08-14 Thread Jim Lucas
Dan Shirah wrote: I think this should be a simple question and answer, but after looking through the manual and goggling I have yet to find an answer. Question: Using PHP, how would I go about opening a file in a window, table or div? Example: I have a file called 123.xls. When a condition is

Re: [PHP] Displaying files

2008-08-14 Thread Dan Shirah
Who needs PHP... :) The following will open a new browser window and load the href in it. a href=http://examples.com/123.xls; target=_blankOpen It!!!/a If that isn't what you are looking for, please give a little more details. You're killin' me, Jim! :) I need to open the file from the

Re: [PHP] Displaying files

2008-08-14 Thread Stut
On 14 Aug 2008, at 21:06, Dan Shirah wrote: Who needs PHP... :) The following will open a new browser window and load the href in it. a href=http://examples.com/123.xls; target=_blankOpen It!!!/a If that isn't what you are looking for, please give a little more details. You're

Re: [PHP] Displaying files

2008-08-14 Thread Dan Shirah
You need to know the mime type for the file you're serving. Call header('Content-Type: x/y'); where x/y is the mime type. Then call readfile('/path/to/file/on/server'); to output the file to the browser. -Stut Stut, trying that method gives me the following: PHP Warning: readfile(

[PHP] Passing variable to a page in a frameset

2008-08-14 Thread Jody Cleveland
Hello, I've got a website here: http://beta.menashalibrary.org/about On every page, i've got a search box at the top. This search box searches the library's web catalog. The problem is, when someone searches, it takes them away from the site. What I'd like to do is take what a person

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Bastien Koert
On Thu, Aug 14, 2008 at 4:34 PM, Jody Cleveland [EMAIL PROTECTED]wrote: Hello, I've got a website here: http://beta.menashalibrary.org/about On every page, i've got a search box at the top. This search box searches the library's web catalog. The problem is, when someone searches, it takes

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Dan Shirah
Hello, I've got a website here: http://beta.menashalibrary.org/about On every page, i've got a search box at the top. This search box searches the library's web catalog. The problem is, when someone searches, it takes them away from the site. What I'd like to do is take what a

Re: [PHP] Displaying files

2008-08-14 Thread Stut
On 14 Aug 2008, at 21:29, Dan Shirah wrote: You need to know the mime type for the file you're serving. Call header('Content-Type: x/y'); where x/y is the mime type. Then call readfile('/path/to/file/on/server'); to output the file to the browser. -Stut Stut, trying that method gives me

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Stut
On 14 Aug 2008, at 21:34, Jody Cleveland wrote: I've got a website here: http://beta.menashalibrary.org/about On every page, i've got a search box at the top. This search box searches the library's web catalog. The problem is, when someone searches, it takes them away from the site. What

RE: [PHP] PHP editor for linux

2008-08-14 Thread Boyd, Todd M.
-Original Message- From: Micah Gersten [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 12:20 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] PHP editor for linux I use Eclipse with PHPEclipse. I think you have to install from source to get

Re: [PHP] Displaying files

2008-08-14 Thread Dan Shirah
That simply means it can't open the file. Make sure the machine this is running on has everything it needs to access that UNC filename. -Stut Stut, If I copy the link from the error message and paste it into a browser running from my PHP server, the file comes up just fine. Should I try

Re: [PHP] PHP editor for linux

2008-08-14 Thread Nathan Nobbe
On Thu, Aug 14, 2008 at 2:54 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Micah Gersten [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 12:20 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] PHP editor for linux I

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread george
On Thu, Aug 14, 2008 at 3:43 PM, Dan Shirah [EMAIL PROTECTED] wrote: Hello, I've got a website here: http://beta.menashalibrary.org/about On every page, i've got a search box at the top. This search box searches the library's web catalog. The problem is, when someone searches, it

Re: [PHP] Displaying files

2008-08-14 Thread Stut
On 14 Aug 2008, at 21:57, Dan Shirah wrote: That simply means it can't open the file. Make sure the machine this is running on has everything it needs to access that UNC filename. -Stut Stut, If I copy the link from the error message and paste it into a browser running from my PHP

RE: [PHP] PHP editor for linux

2008-08-14 Thread Boyd, Todd M.
From: Nathan Nobbe [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:00 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] PHP editor for linux On Thu, Aug 14, 2008 at 2:54 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Micah Gersten

RE: [PHP] Displaying files

2008-08-14 Thread Boyd, Todd M.
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:21 PM To: Dan Shirah Cc: PHP-General List Subject: Re: [PHP] Displaying files On 14 Aug 2008, at 21:57, Dan Shirah wrote: That simply means it can't open the file. Make sure the machine

Re: [PHP] Displaying files

2008-08-14 Thread Stut
On 14 Aug 2008, at 22:24, Boyd, Todd M. wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:21 PM To: Dan Shirah Cc: PHP-General List Subject: Re: [PHP] Displaying files On 14 Aug 2008, at 21:57, Dan Shirah wrote: That simply means it can't

RE: [PHP] Displaying files

2008-08-14 Thread Boyd, Todd M.
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:34 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Displaying files On 14 Aug 2008, at 22:24, Boyd, Todd M. wrote: -Original Message- From: Stut

[PHP] parsing form with a website question...

2008-08-14 Thread bruce
Hi guys... Got a question that I figured I'd ask before I reinvent the wheel. A basic website has a form, or multiple forms. within the form, there might be multiple elements (lists/select statements, etc...). each item would have a varname, which would in turn be used as part of the form

Re: [PHP] PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 4:59 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: i used to use php-eclipse + subclipse all the time; i never had to 'install from source' or had issues installing subclipse on top of php-eclipse... just my 2c, vim + cli + protoeditor(as needed) -nathan What sort of

Re: [PHP] parsing form with a website question...

2008-08-14 Thread Robert Cummings
On Thu, 2008-08-14 at 15:47 -0700, bruce wrote: Hi guys... Got a question that I figured I'd ask before I reinvent the wheel. A basic website has a form, or multiple forms. within the form, there might be multiple elements (lists/select statements, etc...). each item would have a

RE: [PHP] parsing form with a website question...

2008-08-14 Thread bruce
rob, i'm fully aware of the issues, and for the targeted sites that i'm focusing on, i can employ strategies to prune the tree... but the overall issue is that i'm looking for a tool/app/process that does what i've described. the basic logic is that the app needs to use a config file, and that

Re: [PHP] parsing form with a website question...

2008-08-14 Thread tedd
At 7:57 PM -0400 8/14/08, Robert Cummings wrote: On Thu, 2008-08-14 at 15:47 -0700, bruce wrote: -snip- That's 100 billion bytes AKA 100 metric gigabytes... remember that was just 1 form. Cheers, Rob. Killjoy. :-) He could have had a lot of fun figuring that out. tedd -- ---

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread tedd
At 4:06 PM -0500 8/14/08, george wrote: Thank you for taking the time to help me with this, I really appreciate it! - jody Make it easy on yourself and try this: http://sperling.com/examples/search/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] parsing form with a website question...

2008-08-14 Thread Chris
bruce wrote: rob, i'm fully aware of the issues, and for the targeted sites that i'm focusing on, i can employ strategies to prune the tree... but the overall issue is that i'm looking for a tool/app/process that does what i've described. the basic logic is that the app needs to use a config

Re: [PHP] parsing form with a website question...

2008-08-14 Thread Robert Cummings
On Thu, 2008-08-14 at 21:39 -0400, tedd wrote: At 7:57 PM -0400 8/14/08, Robert Cummings wrote: On Thu, 2008-08-14 at 15:47 -0700, bruce wrote: -snip- That's 100 billion bytes AKA 100 metric gigabytes... remember that was just 1 form. Cheers, Rob. Killjoy. :-) He could have had a

[PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread Don
Hi, Let's say I have the following array: $myArray = array(array('1','2','3'), array('4','5','6'), array('7','8','9'), array('10','11','12')); How do I remove say the second element? I have tried: $myArray = array_splice($myArray, 1, 1); But this seems to remove the second element as well as

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread mike
Can't you unset() it? Sorry for top posting I'm on an iPhone On Aug 14, 2008, at 7:30 PM, Don [EMAIL PROTECTED] wrote: Hi, Let's say I have the following array: $myArray = array(array('1','2','3'), array('4','5','6'), array('7','8','9'), array('10','11','12')); How do I remove say the

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread Don
Won't unset() destroy the entire array? mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can't you unset() it? Sorry for top posting I'm on an iPhone On Aug 14, 2008, at 7:30 PM, Don [EMAIL PROTECTED] wrote: Hi, Let's say I have the following array: $myArray =

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread mike
Not on the specific sub element. I.e unset($array[2][0]) On Aug 14, 2008, at 8:08 PM, Don [EMAIL PROTECTED] wrote: Won't unset() destroy the entire array? mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can't you unset() it? Sorry for top posting I'm on an iPhone On Aug 14,

Re: [PHP] Removing an element from the middle of an mdlti-dimentsional array

2008-08-14 Thread Don Proshetsky
Yup, thanks. Also execute: $array = array_values(array) in order to fix the indexes - Original Message - From: mike [EMAIL PROTECTED] To: Don [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, August 14, 2008 11:16 PM Subject: Re: [PHP] Removing an element from the

Re: [PHP] PHP editor for linux

2008-08-14 Thread Michael S. Dunsavage
On Thu, 2008-08-14 at 10:05 -0700, It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks I use geany and Quantum -- Michael S. Dunsavage -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-14 Thread Chris
googling1000 wrote: Edit: I don't think Javascript is disabled on my computer. When I tried posting the code online, I see that my js functions are executed just fine on this one particular machine. Hit the file directly in your browser: http://example.com/path/to/javascript.js what do you

Re: [PHP] PHP editor for linux

2008-08-14 Thread Ross McKay
On Thu, 14 Aug 2008 23:46:05 -0400, Michael S. Dunsavage wrote: I use geany and Quantum +2 for geany (SWMBO uses it too). It's a good general-purpose text editor and simplified IDE. Build it from SVN, as it has been moving fairly quickly and distro packages often haven't kept up. -- Ross McKay,

Re: [PHP] PHP editor for linux

2008-08-14 Thread Lester Caine
Boyd, Todd M. wrote: i used to use php-eclipse + subclipse all the time; i never had to 'install from source' or had issues installing subclipse on top of php-eclipse... --- Ahh... but you're in Linux. I was referring to the Windows distribution of Eclipse. It's Java, so I guess it wouldn't