[PHP] Re: Open Source Classifides

2008-08-15 Thread Lupus Michaelis
Joey a écrit : Does anyone know of a good php based classified system? What do you mean by classified system ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 22:56 -0500, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: > >> Herman Gomez wrote: > >>> Hi, > >>> > >>> Here is something I used to do in C/C++ to include/exclude automaticaly > >>> all debugging code at compilin

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Robert Cummings wrote: On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can

Re: [PHP] SESSION problem

2008-08-15 Thread VamVan
Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. Thanks On Fri, Aug 15, 2008 at 4:39 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:47 PM -0500 8/15/08, Boyd

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: > Herman Gomez wrote: > > Hi, > > > > Here is something I used to do in C/C++ to include/exclude automaticaly > > all debugging code at compiling time: > > > > #define debug TRUE > > #ifdef(debug) > > //debugging code > > #endif > > >

RE: [PHP] SESSION problem

2008-08-15 Thread tedd
At 1:47 PM -0500 8/15/08, Boyd, Todd M. wrote: Have you tried: echo SID; ...? I'm wondering if you're going to get different values on the two pages. What that means beyond two different sessions is beyond me, but it's a start. Todd Boyd Web Programmer Todd: I added code to show th

[PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can include/exclude easily all debugging code in the final compiled code. In PHP I ha

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Bojan Tesanovic
Hm , this issue has been reported http://bugs.php.net/bug.php?id=25876 and http://bugs.php.net/bug.php? id=32330 and it occurs sporadically for some users though most of them said that setting ini_set("session.save_handler", "files"); solved the problem and / tmp dir must be writable by serve

Re: [PHP] PHP Script/Thread ID thingie

2008-08-15 Thread Stut
On 15 Aug 2008, at 23:30, Richard Lynch wrote: On Fri, August 15, 2008 10:52 am, Stut wrote: On 15 Aug 2008, at 16:37, [EMAIL PROTECTED] wrote: I'm logging things with error_log, and would like to be able to sort out one script run from another. So I'm looking for some kind of "script id" or "

Re: [PHP] PHP Script/Thread ID thingie

2008-08-15 Thread Richard Lynch
On Fri, August 15, 2008 10:52 am, Stut wrote: > On 15 Aug 2008, at 16:37, [EMAIL PROTECTED] wrote: >> I'm logging things with error_log, and would like to be able to sort >> out one script run from another. >> >> So I'm looking for some kind of "script id" or "thread id" or "PHP >> script run execu

[PHP] Open Source Classifides

2008-08-15 Thread Joey
Hello All, Does anyone know of a good php based classified system? Thanks!

RE: [PHP] How to submit form via PHP

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 2:54 PM > To: php-general@lists.php.net > Subject: RE: [PHP] How to submit form via PHP > > Thanks, that was what I needed. Also I found this: > http://curl.haxx.se/libcurl/php/examples

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 2:58 PM, Dan Shirah wrote: There you go! Entering in the search criteria pulls up the search in a new window and automatically pulls results based on your search. Then I can just close the window to return to where I was on your site. I think that is simple and easy

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

2008-08-15 Thread Dan Shirah
There you go! Entering in the search criteria pulls up the search in a new window and automatically pulls results based on your search. Then I can just close the window to return to where I was on your site. I think that is simple and easy to use. And I'm sure not much of a headache for you!

RE: [PHP] How to submit form via PHP

2008-08-15 Thread pe . ve . ce
Thanks, that was what I needed. Also I found this: http://curl.haxx.se/libcurl/php/examples/./simplepost.html. Is it somehow possible to retrieve result of that operation? Thanks in advance. Matěj "czech_d3v3l0pr" Grabovský > Původní zpráva > Od: Warren Vail <[EMAIL

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

2008-08-15 Thread Dan Shirah
On 8/15/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > GET should work too. Do you know of any examples anywhere online for >>> this? My brain shuts off at the thought of how I'd do that. >>> >>> - jody >> >> > When you GET a value you are retrieving a passed value that appears in the > address bar

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

2008-08-15 Thread Dan Shirah
> > GET should work too. Do you know of any examples anywhere online for this? >> My brain shuts off at the thought of how I'd do that. >> >> - jody > > When you GET a value you are retrieving a passed value that appears in the address bar: Example http://www.mysite.com?name=joe www.mysite.com is

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

2008-08-15 Thread Stut
On 15 Aug 2008, at 20:34, Jody Cleveland wrote: On Aug 15, 2008, at 2:27 PM, Stut wrote: On 15 Aug 2008, at 20:21, Jody Cleveland wrote: I work for a consortium of 30 libraries. Each library has their own website, but they all share the same web catalog. On each library's website there is

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

2008-08-15 Thread Dan Shirah
> > I work for a consortium of 30 libraries. Each library has their own > website, but they all share the same web catalog. On each library's website > there is a search box to search the catalog, which is on a completely > different server from the websites. We've been finding that once people use

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 2:27 PM, Stut wrote: On 15 Aug 2008, at 20:21, Jody Cleveland wrote: I work for a consortium of 30 libraries. Each library has their own website, but they all share the same web catalog. On each library's website there is a search box to search the catalog, which is on

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

2008-08-15 Thread Stut
On 15 Aug 2008, at 20:21, Jody Cleveland wrote: I work for a consortium of 30 libraries. Each library has their own website, but they all share the same web catalog. On each library's website there is a search box to search the catalog, which is on a completely different server from the web

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 2:05 PM, Stut wrote: On 15 Aug 2008, at 19:50, Jody Cleveland wrote: On Aug 15, 2008, at 1:46 PM, Stut wrote: On 15 Aug 2008, at 19:39, Jody Cleveland wrote: On Aug 15, 2008, at 1:22 PM, Warren Vail wrote: Actually you may want to check back with basic html at the "tar

Re: [PHP] preg_replace strange behaviour, duplicates

2008-08-15 Thread Micah Gersten
Take a look at the negative assertions on this page: http://us2.php.net/manual/en/regexp.reference.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Adz07 wrote: > I am trying to nail down a bit of code for changing processor names depending > on matches. >

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

2008-08-15 Thread Dan Shirah
> > That is exactly what I want. I apologize for the confusion. I was having a > hard time trying to put what I was trying to do in words. But, yes, your > second paragraph is exactly what I want to do. My knowledge of PHP is very > limited, and I've tried to search for something that will do this,

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

2008-08-15 Thread Stut
On 15 Aug 2008, at 19:50, Jody Cleveland wrote: On Aug 15, 2008, at 1:46 PM, Stut wrote: On 15 Aug 2008, at 19:39, Jody Cleveland wrote: On Aug 15, 2008, at 1:22 PM, Warren Vail wrote: Actually you may want to check back with basic html at the "target" parameter on your search "form" statemen

RE: [PHP] How to submit form via PHP

2008-08-15 Thread Jay Blanchard
[snip] On Fri, 2008-08-15 at 13:30 -0500, Jay Blanchard wrote: > [snip] > Hello. I'm pretty noob in PHP and would like to know how can I submit > some HTML form got via file_get_contents(URL). For example: > > > > > > so how can I submit 'someform' form. > > Thanks in advance for any suggesti

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

2008-08-15 Thread Warren Vail
Probably something I don't understand about your implementation, but the form parameter will allow a target parameter, and if the frameset contains a frame that is named (even one different from the one that contains the search form), the results should be placed in the "target" frame. Without a t

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 1:46 PM, Stut wrote: On 15 Aug 2008, at 19:39, Jody Cleveland wrote: On Aug 15, 2008, at 1:22 PM, Warren Vail wrote: Actually you may want to check back with basic html at the "target" parameter on your search "form" statement. HTH, Warren Vail Vail Systems Technology [

RE: [PHP] SESSION problem

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 12:10 PM > To: php-general@lists.php.net > Subject: [PHP] SESSION problem > > Hi gang: > > Arrggg -- what the heck is going on? > > I can't get anything to pass via SESSION -- what's wrong? > > H

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

2008-08-15 Thread Stut
On 15 Aug 2008, at 19:39, Jody Cleveland wrote: On Aug 15, 2008, at 1:22 PM, Warren Vail wrote: Actually you may want to check back with basic html at the "target" parameter on your search "form" statement. HTH, Warren Vail Vail Systems Technology [EMAIL PROTECTED] Target won't work for me

RE: [PHP] How to submit form via PHP

2008-08-15 Thread Warren Vail
Key to this one may be understanding what is being asked. I think pe.ve.ce performed a file read (file_get_contents) on the form from another website and wants to be able to simulate a browser submit from his code. If this is correct, I would recommend you take a look at CURL. There are probably

Re: [PHP] How to submit form via PHP

2008-08-15 Thread Dotan Cohen
2008/8/15 Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > Hello. I'm pretty noob in PHP and would like to know how can I submit > some HTML form got via file_get_contents(URL). For example: > > > > > > so how can I submit 'someform' form. > > Thanks in advance for any suggestions. > [/snip] > > Cl

RE: [PHP] How to submit form via PHP

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 13:30 -0500, Jay Blanchard wrote: > [snip] > Hello. I'm pretty noob in PHP and would like to know how can I submit > some HTML form got via file_get_contents(URL). For example: > > > > > > so how can I submit 'someform' form. > > Thanks in advance for any suggestions. >

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 1:22 PM, Warren Vail wrote: Actually you may want to check back with basic html at the "target" parameter on your search "form" statement. HTH, Warren Vail Vail Systems Technology [EMAIL PROTECTED] Target won't work for me because the originating page with the search b

RE: [PHP] How to submit form via PHP

2008-08-15 Thread Jay Blanchard
[snip] Hello. I'm pretty noob in PHP and would like to know how can I submit some HTML form got via file_get_contents(URL). For example: so how can I submit 'someform' form. Thanks in advance for any suggestions. [/snip] Click 'Submit' Your form tag needs an action statement All of the

[PHP] Re: Buffering problem

2008-08-15 Thread Lupus Michaelis
Anders Norrbring a écrit : I'm running out of ideas to where to look for this, so can you please give me some pointers? I guess it is that you're seeking for : -- Mickaël Wolff aka Lupus Michaelis http://lupusmic

[PHP] How to submit form via PHP

2008-08-15 Thread pe . ve . ce
Hello. I'm pretty noob in PHP and would like to know how can I submit some HTML form got via file_get_contents(URL). For example: so how can I submit 'someform' form. Thanks in advance for any suggestions. Matěj "czech_d3v3l0p3r" Grabovský -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Buffering problem

2008-08-15 Thread Dan Joseph
On Fri, Aug 15, 2008 at 2:18 PM, Anders Norrbring <[EMAIL PROTECTED]>wrote: > I'm trying to make php output things sequentially as they're > printed/echoed.. No luck. It's buffered to the end of the script, and then > it comes on to screen. > This is while running Apache2, in a cli session it work

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

2008-08-15 Thread Warren Vail
Actually you may want to check back with basic html at the "target" parameter on your search "form" statement. HTH, Warren Vail Vail Systems Technology [EMAIL PROTECTED] > -Original Message- > From: Jay Moore [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 7:03 AM > To: ph

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Chris Ditty
Fatal error: session_start(): Failed to initialize storage module. in /home/webroot/www/service/payarrange/index.php on line 4 Line 4 is the session_start(); >>> Bojan Tesanovic <[EMAIL PROTECTED]> 8/15/2008 1:10 PM >>> Can you give us the exact error that you got, that can help to debug ... O

[PHP] Buffering problem

2008-08-15 Thread Anders Norrbring
I'm trying to make php output things sequentially as they're printed/echoed.. No luck. It's buffered to the end of the script, and then it comes on to screen. This is while running Apache2, in a cli session it works fine. The script does *not* have any buffering commands at all. The web server doe

Re: [PHP] Displaying files

2008-08-15 Thread Philip Thompson
On Aug 14, 2008, at 3:29 PM, 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 giv

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Bojan Tesanovic
Can you give us the exact error that you got, that can help to debug ... On Aug 15, 2008, at 7:53 PM, Chris Ditty wrote: Can someone tell me what I am missing here? This is working fine on my development machine(5.2.6), but on the production box(4.3.2), it doesn't want to work. I am getti

RE: [PHP] Re: PHP editor for linux

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: Davi Vidal [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 12:07 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Re: PHP editor for linux > > Em Friday 15 August 2008, Robert Cummings escreveu: > > On Fri, 2008-08-15 at 10:43 -0600, Nat

[PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Chris Ditty
Can someone tell me what I am missing here? This is working fine on my development machine(5.2.6), but on the production box(4.3.2), it doesn't want to work. I am getting that error on my session_start() function. Is the difference in versions what is causing the problems? I've googled and n

Re: [PHP] SESSION problem

2008-08-15 Thread Philip Thompson
On Aug 15, 2008, at 12:16 PM, Dan Joseph wrote: On Fri, Aug 15, 2008 at 1:09 PM, tedd <[EMAIL PROTECTED]> wrote: Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's the example -- (all the code is there): I populate the $_SESSIONs

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

2008-08-15 Thread Dan Shirah
> > So, I had this all wrong before. Basically, I need two forms, right? One >> on my originating page, and one on the page within the frameset I want to >> pass the values to. Correct? >> >> My form, which I named my_search has one input field, which I named query. >> In the javascript, I put in

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 11:32 AM, Dan Shirah wrote: In the of my page, I have this: function submitForm(var1,var2) { top.mainFrame.document.my_search.text1.value = var1; top.mainFrame.document.my_search.text2.value = var2; top.mainFrame.document.my_search.submit(); document.search_form.submi

Re: [PHP] Re: PHP editor for linux

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 14:06 -0300, Davi Vidal wrote: > Em Friday 15 August 2008, Robert Cummings escreveu: > > On Fri, 2008-08-15 at 10:43 -0600, Nathan Nobbe wrote: > > > On Fri, Aug 15, 2008 at 10:40 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > > >> What do you think is the best php editor

Re: [PHP] SESSION problem

2008-08-15 Thread Dan Joseph
On Fri, Aug 15, 2008 at 1:09 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Arrggg -- what the heck is going on? > > I can't get anything to pass via SESSION -- what's wrong? > > Here's the example -- (all the code is there): > > I populate the $_SESSIONs here. > > http://www.webbytedd.com/b2/

[PHP] SESSION problem

2008-08-15 Thread tedd
Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's the example -- (all the code is there): I populate the $_SESSIONs here. http://www.webbytedd.com/b2/session-test/index.php If you click "Proceed to Step 2", you'll see that nothing

Re: [PHP] Re: PHP editor for linux

2008-08-15 Thread Davi Vidal
Em Friday 15 August 2008, Robert Cummings escreveu: > On Fri, 2008-08-15 at 10:43 -0600, Nathan Nobbe wrote: > > On Fri, Aug 15, 2008 at 10:40 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > >> What do you think is the best php editor for linux. > > > > > > pico :-) > > > > ed baby; its all abou

Re: [PHP] Re: PHP editor for linux

2008-08-15 Thread Robert Cummings
On Fri, 2008-08-15 at 10:43 -0600, Nathan Nobbe wrote: > On Fri, Aug 15, 2008 at 10:40 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > >> What do you think is the best php editor for linux. > > > > pico :-) > > > ed baby; its all about ed! hexedit /dev/sda1 ;) Cheers, Rob. -- http://www.i

Re: [PHP] Re: PHP editor for linux

2008-08-15 Thread Nathan Nobbe
On Fri, Aug 15, 2008 at 10:40 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > >> What do you think is the best php editor for linux. > > pico :-) ed baby; its all about ed! -nathan

Re: [PHP] Re: PHP editor for linux

2008-08-15 Thread Richard Heyes
>> What do you think is the best php editor for linux. pico :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-08-15 Thread Dan Shirah
> > In the of my page, I have this: > > > function submitForm(var1,var2) { > top.mainFrame.document.my_search.text1.value = var1; > top.mainFrame.document.my_search.text2.value = var2; > top.mainFrame.document.my_search.submit(); > document.search_form.submit(); > } > > > If I type in a word

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 9:20 AM, Dan Shirah wrote: Frames?! As a fellow Wisconsinite and a web developer, I'm going to have to ask you to leave the state. Minnesota can have you. :P Jay PS - No, but seriously, frames?!?! There's nothing wrong with a Frame every once in a while! Gra

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

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 7:33 AM, Dan Shirah wrote: I apologize for my ignorance, I don't really know much about javascript. When I add all that into my form page, when I submit the form, it just replaces the page I was on with the form results, rather than in the new frame page. I'm assuming I need

[PHP] preg_replace strange behaviour, duplicates

2008-08-15 Thread Adz07
I am trying to nail down a bit of code for changing processor names depending on matches. Problem i am having is the replacement takes place then it seems to do it again replacing the text just replaced as there are similar matches afterwards. example (easier) $string = "The new Intel Core 2 Duo

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

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 9:20 AM > To: Jay Moore > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: Passing variable to a page in a frameset > > > > > Frames?! > >> > >> As a fellow Wisconsinite and a web develo

Re: [PHP] PHP Script/Thread ID thingie

2008-08-15 Thread Eric Butera
On Fri, Aug 15, 2008 at 11:37 AM, <[EMAIL PROTECTED]> wrote: > > I'm logging things with error_log, and would like to be able to sort out one > script run from another. > > So I'm looking for some kind of "script id" or "thread id" or "PHP script run > execution ID" type of function. > > getmypi

RE: [PHP] import XLS sheet into DB

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: Alain R. [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 3:30 AM > To: php-general@lists.php.net > Subject: [PHP] import XLS sheet into DB > > Hi, > > I would like to import content of an XLS sheet into a PostgreSQL DB > (table). > > How can i do th

Re: [PHP] PHP Script/Thread ID thingie

2008-08-15 Thread Stut
On 15 Aug 2008, at 16:37, [EMAIL PROTECTED] wrote: I'm logging things with error_log, and would like to be able to sort out one script run from another. So I'm looking for some kind of "script id" or "thread id" or "PHP script run execution ID" type of function. getmypid() just returns the

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

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: Simcha Younger [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 2:49 AM > To: 'Don'; php-general@lists.php.net > Subject: RE: [PHP] Removing an element from the middle of an mdlti- > dimentsional array > > > array_splice($a, 1, 1); > > This will remo

[PHP] PHP Script/Thread ID thingie

2008-08-15 Thread ceo
I'm logging things with error_log, and would like to be able to sort out one script run from another. So I'm looking for some kind of "script id" or "thread id" or "PHP script run execution ID" type of function. getmypid() just returns the same apache child process ID all the time, so tha

[PHP] Re: PHP editor for linux

2008-08-15 Thread Shawn McKenzie
It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks I use Aptana which is based on eclipse and has built-in HTML/JS/PHP?SVN stuff. Also a cool plugin that lets you easily develop for the iPhone and preview it. -Sha

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
> > A scheduled task is messy. IIWY I'd use FTP to pull the file over, but > that's still pretty messy. > > If this is an Intranet then the risks involved in giving that user access > to the network is minimal and probably would be the best solution. > Alternatively you could set up an HTTP server

[PHP] Conditional compilation

2008-08-15 Thread Herman Gomez
Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can include/exclude easily all debugging code in the final compiled code. In PHP I have not been able

Re: [PHP] Displaying files

2008-08-15 Thread Stut
On 15 Aug 2008, at 15:41, Dan Shirah wrote: Your best bet would be to run a periodic sync to copy the files across from the other server but it would have to run outside the IIS process. There are plenty of solutions around for doing this and they have nothing to do with PHP. You can then re

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
> > Your best bet would be to run a periodic sync to copy the files across >> from the other server but it would have to run outside the IIS process. >> There are plenty of solutions around for doing this and they have nothing to >> do with PHP. You can then refer to the local copy of the file fro

Re: [PHP] Displaying files

2008-08-15 Thread Stut
On 15 Aug 2008, at 15:17, Dan Shirah wrote: What about using some type of a dispatch script? Locate all the files outside of the doc root and then just call: viewdocument.php? ID=12345678 ? Although now that I've typed that I realize that you would still be running the same issue.. Unless you

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

2008-08-15 Thread Dan Shirah
> > Frames?! >> >> As a fellow Wisconsinite and a web developer, I'm going to have to ask you >> to leave the state. Minnesota can have you. >> >> :P >> >> >> Jay >> >> >> PS - No, but seriously, frames?!?! > > There's nothing wrong with a Frame every once in a while! Granted they aren't used mu

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
> What about using some type of a dispatch script? Locate all the files >> outside of the doc root and then just call: viewdocument.php?ID=12345678 ? >> Although now that I've typed that I realize that you would still be running >> the same issue.. Unless you used javascript in your PHP to call th

Re: [PHP] Displaying files

2008-08-15 Thread Jason Pruim
On Aug 15, 2008, at 9:57 AM, Dan Shirah wrote: Wow, I think it finally clicked. Sorry that took so long. The whole point behind using PHP was to try and copy or call the file from the server side so the user does not see the path to the document. Using HTML and Javascript it is extrememly

Re: [PHP] Displaying files

2008-08-15 Thread Thiago H. Pojda
On 8/15/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Wow, I think it finally clicked. > > Sorry that took so long. > That's fine, sorry if I sounded rude or something. I didn't mean it. The whole point behind using PHP was to try and copy or call the file from > the server side so the user does

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

2008-08-15 Thread Jay Moore
Jody Cleveland 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 them away from the site. What I'd like to do is take

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
Wow, I think it finally clicked. Sorry that took so long. The whole point behind using PHP was to try and copy or call the file from the server side so the user does not see the path to the document. Using HTML and Javascript it is extrememly easy to just view source and see the path. Whereas us

Re: [PHP] Displaying files

2008-08-15 Thread Stut
On 15 Aug 2008, at 14:26, Dan Shirah wrote: Because as I mentioned before PHP runs as a different user to your browser. -Stut Stut, Are you referring to this? "If you're using IIS then it's the IUSR_machine user which doesn't have access to the network by default" The IUSR_SERVERNAME ac

Re: [PHP] Displaying files

2008-08-15 Thread Thiago H. Pojda
On 8/15/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > Thiago, > > HTML WORKS > Open > > Javascript WORKS > function openWin(folder,file) { > var LeftPosition = (this.screen.width) / 2; > var TopPosition = (this.screen.height) - this.screen.height; > var Height = (this.screen.height) - 90; >

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
> > Because as I mentioned before PHP runs as a different user to your >> browser. >> >> -Stut > > Stut, Are you referring to this? "If you're using IIS then it's the IUSR_machine user which doesn't have access to the network by default" The IUSR_SERVERNAME account is what it should be connecti

Re: [PHP] Displaying files

2008-08-15 Thread Stut
On 15 Aug 2008, at 13:37, Dan Shirah wrote: If the network resource is the only location where these files exist, what do you suggest I do? Use PHP to first copy() the file from the server to a temp directory on my web server and then open the document from the temp dir? PHP cannot access

Re: [PHP] Displaying files

2008-08-15 Thread Thiago H. Pojda
On 8/15/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Okay, I'm perplexed! > > If I put the exact same value into a javascript function and open a window > the document comes up perfectly fine. > > But, when trying to readfile() copy() or fopen() in PHP I get the "failed > to > open stream:" error.

Re: [PHP] Displaying files

2008-08-15 Thread Stut
On 15 Aug 2008, at 14:07, Dan Shirah wrote: Okay, I'm perplexed! If I put the exact same value into a javascript function and open a window the document comes up perfectly fine. But, when trying to readfile() copy() or fopen() in PHP I get the "failed to open stream:" error. Any idea why

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
Okay, I'm perplexed! If I put the exact same value into a javascript function and open a window the document comes up perfectly fine. But, when trying to readfile() copy() or fopen() in PHP I get the "failed to open stream:" error. Any idea why the exact same link would open fine using a HTML li

Re: [PHP] Displaying files

2008-08-15 Thread Dan Shirah
If the network resource is the only location where these files exist, what do you suggest I do? Use PHP to first copy() the file from the server to a temp directory on my web server and then open the document from the temp dir? On 8/14/08, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > > -Orig

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

2008-08-15 Thread Dan Shirah
> > I apologize for my ignorance, I don't really know much about > javascript. When I add all that into my form page, when I submit the > form, it just replaces the page I was on with the form results, rather > than in the new frame page. I'm assuming I need to put the url for the > frameset page i

Re: [PHP] import XLS sheet into DB

2008-08-15 Thread Jason Pruim
On Aug 15, 2008, at 4:29 AM, Alain R. wrote: Hi, I would like to import content of an XLS sheet into a PostgreSQL DB (table). How can i do that ? thanks a lot, A. Alain, I haven't done it with PostgreSQL... But assuming it's not far from MySQL just save the excel file as a csv, or a

Re: [PHP] import XLS sheet into DB

2008-08-15 Thread Mario Guenterberg
On Fri, Aug 15, 2008 at 10:29:40AM +0200, Alain R. wrote: > Hi, > > I would like to import content of an XLS sheet into a PostgreSQL DB (table). > > How can i do that ? Your question is not php related ;-) Maybe, export the sheet as comma separated csv file and import it to postgresql. Happy cod

[PHP] import XLS sheet into DB

2008-08-15 Thread Alain R.
Hi, I would like to import content of an XLS sheet into a PostgreSQL DB (table). How can i do that ? thanks a lot, A. -- 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-15 Thread Mario Guenterberg
On Thu, Aug 14, 2008 at 07:32:13PM -0400, Eric Butera wrote: > What sort of plugins do you use with vim? For a while I was > interested with it after seeing some presentations on it. I never > could figure out how to get it to do code completion based on methods > of a class, it sort of jumbled a