Re: [PHP] var static

2003-08-28 Thread Jordan S. Jones
If I were you, I would use the following: if (!is_a ($miInstancia, 'db')) $miInstancia=new db(); That way you can ensure that the variable has been instantiated and is an instance of the db class.. But it may not really matter.. Jordan S. Jones Alvaro Martinez wrote: I've found the solution m

Re: [PHP] parsing domains

2003-08-28 Thread David T-G
Mike -- ...and then CollegeSucks.com Mike said... % % Quick question... Quick answer :-) % ... % % $parseddomain = preg_replace('/.+?(\..+)/', '$1', $domain); # pulls out "domain" from # domain.com # www.domain.com # www.domain.ac.uk # ... $this_domain = preg_replace('/(

[PHP] jpeg libraries.

2003-08-28 Thread Mike At Spy
I got the jpeg libraries from: http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 And installed them; even did a make test to make sure everything was correct. It did install some jpeg stuff under /usr/local/bin, but I don't see anything added to /usr/local/lib. After that, I re-compile

[PHP] Some cookies are being set, some aren't

2003-08-28 Thread Thaddeus J. Quintin
I've got a problem with cookies failing. Here's the setup- A staging server, RedHat Linux, with php 4.3 Main server, FreeBSD, also php 4.3 Running identical Apache setups and Identical php setups. The staging server is only accessible behind our local firewall and does not run https. The Main s

[PHP] post v get

2003-08-28 Thread andu
When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form? -- Regards, Andu Novac -- PHP General Mailing List (http://www.p

RE: [PHP] can pdf forms be used to submit data into db?

2003-08-28 Thread Roedel, Mark
Guess I'm a little late to this party, but... If you're still looking for help with tying a PDF form to a database, drop me a note. I've got some code I developed for our online admissions application that I can probably be talked into sharing. -- Mark Roedel Web Programmer / Analyst LeTournea

Re: [PHP] jpeg libraries.

2003-08-28 Thread Curt Zirzow
* Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > It did install some jpeg stuff under /usr/local/bin, but I don't see > anything added to /usr/local/lib. > > After that, I re-compiled php with: > > --with-jpeg > > But nothing changed. > > I re-compiled again with: > > --with-jpeg=/usr/local/

Re: [PHP] post v get

2003-08-28 Thread Jim Lucas
no Jim Lucas - Original Message - From: "andu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 1:49 PM Subject: [PHP] post v get > When you POST a form to the server the server replies with a new > page. if you click the Back button in the browser the server

RE: [PHP] PHP Interview questions

2003-08-28 Thread Matt Matijevich
Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) not pseudo code and it could definatley be cleaned up or done better but her is my quick try at it echo "We are walking to up to a fork in the road."; $randval = rand(1, 500); $randval2 = rand(1, 500

[PHP] Array Push and Keys

2003-08-28 Thread Mike Morton
I am trying to loop through some database results to build an array similar to: Array ( [33]=>Array ( [usa]=>52.00 [sa]=>553.00 ) ) And the problem that I am having is that array_push does not want to take keys when I am using it. My Code: $transactions=Array(); While($r

[PHP] selecting based on a month in a date

2003-08-28 Thread Creative Solutions New Media
Hi, Asked this on the mySQL list but it seems to be more of a PHP syntax thing that a mySQL thing. In have the following line in PHP I have a mySQL table which contains dates formatted as dates(-xx-xx) I want to select all records based on a specific month. This is my select statement S

Re: [PHP] reboot pc with PHP

2003-08-28 Thread David T-G
Petre, et al -- ...and then Petre Agenbag said... % % Hi List Hi! % % I've gone through the list for previous questions and the only one that % seems to be a solution is to use sudo, however, I cannot seem to get it % right. ... % % Obviously these command(s) need to be run as root, so I loo

Re: [PHP] selecting based on a month in a date

2003-08-28 Thread John W. Holmes
Creative Solutions New Media wrote: Hi, Asked this on the mySQL list but it seems to be more of a PHP syntax thing that a mySQL thing. In have the following line in PHP I have a mySQL table which contains dates formatted as dates(-xx-xx) I want to select all records based on a specific mon

Re: [PHP] post v get

2003-08-28 Thread John W. Holmes
andu wrote: When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form? Of course. :) One technique is to use a "middle-man" p

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Evan Nemerson
php.net/pcntl_fork On Thursday 28 August 2003 11:09 am, David Otton wrote: > On Thu, 28 Aug 2003 20:25:05 +0300, you wrote: > >I am looking for PHP analog of Perl LWP::Parallel. > >I need to fetch several URL(pages) from PHP at the same time. > >I have a script which fetch 5-10 URL, each URL fet

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Robert Cummings
This isn't the best solution but it might help bring down the total time. Can you set up a shell script to retrieve the content from a URL (in PHP if you wish) and then from your web app spawn 5 processes, with destination temporary files for the data which you can then poll for completion (microsl

Re: [PHP] jpeg libraries.

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 6:39:16 AM, you wrote: MAS> I got the jpeg libraries from: MAS> http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 MAS> And installed them; even did a make test to make sure everything was MAS> correct. MAS> It did install some jpeg stuff under /usr/local/bi

<    1   2