Re: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 4:26 PM, Daevid Vincent wrote: > > >> -Original Message- >> From: Sean Greenslade [mailto:zootboys...@gmail.com] >> Sent: Wednesday, May 29, 2013 10:28 AM >> >> Also, (I haven't tested it, but) I don't think that example you gave >> would work. Without any sort of q

RE: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Daevid Vincent
> -Original Message- > From: Andreas Perstinger [mailto:andiper...@gmail.com] > Sent: Tuesday, May 28, 2013 11:10 PM > To: php-general@lists.php.net > Subject: Re: [PHP] need some regex help to strip out // comments but not > http:// urls > > On 28.05.2013 23:17, Daevid Vincent wrote: >

Re: [PHP] {SOLVED] mysqli & nested queries - maybe I'm rusty...

2013-04-02 Thread Lester Caine
Jay Blanchard wrote: [snip] ...stuff... [/snip] I rewrote everything so that I could get the data in a single query and then performed some manipulation with PHP to get the proper output. No need to call multiple queries in this case, just had to sleep on it. In Firebird, CTE queries are great

Re: [PHP] {SOLVED] mysqli & nested queries - maybe I'm rusty...

2013-04-02 Thread Jay Blanchard
[snip] ...stuff... [/snip] I rewrote everything so that I could get the data in a single query and then performed some manipulation with PHP to get the proper output. No need to call multiple queries in this case, just had to sleep on it. -- PHP General Mailing List (http://www.php.net/) To u

[PHP] [SOLVED] Re: [PHP] php5.3 exec() : output truncate

2013-01-30 Thread patrick ficheux
I found the reason of this issue : SELinux by defaut, SELinux is enabled on CentOS5.5 => httpd runs with "restricted rights" If I temporary disabled SELinux + restart httpd => "ps -A" from my script runs as expected $ setenforce 0 $ /etc/init.d/httpd restart Le 30/01/2013 19:14,

RE: [PHP] SOLVED: variable placeholders in a text file

2012-12-31 Thread Nelson Green
On Mon, 31 Dec 2012 1On Mon, 31 Dec 2012 17:47:00 Stephen D wrote: > By using require_once instead of fopen and fread, I have simpler code > and PHP evaluates the embedded variables in $markup without any need to > use string functions. > > In your case, I would make the file greeter.php > >

[PHP] SOLVED: [PHP] alias address in REMOTE_ADDR

2012-05-12 Thread Tóth Csaba
Hi, shiplu and Jim, many thanks for the hints, I solved it; wasn't related to PHP, but I will write it down so if others search for this problem, at least they will have one solution that worked. Jim: the Apache was configured to listen on all interfaces - I had to, because I have multiple SS

[PHP] [Solved] Problem with PHP 5.3.3 under Debian/Squeeze

2011-03-20 Thread Michelle Konzack
Fscking Debian installer has killed/replaced all of my configs and restructured it. Now installing the backups from Lenny is working properly... Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ##

[PHP] [SOLVED] Re: [PHP] curl_exec won't return (any data)

2011-02-11 Thread Tolas Anon
fromTolas Anon to libcurl development dateFri, Feb 11, 2011 at 5:09 PM subject Re: php curl_exec won't return any data, libcurl-7.21.3.0, php 5.3.4, WampServer2.1d-x64.exe mailed-by gmail.com On Fri, Feb 11, 2011 at 1:32 PM, Daniel Stenberg wrote: > On Fri, 11 Feb 201

[PHP] [SOLVED] Re: session_id() is not passed to the next page

2011-01-04 Thread Michelle Konzack
Hello Daniel Molina Wegener, Am 2011-01-04 07:43:46, hacktest Du folgendes herunter: > Did you tried working with error_reporting(E_ALL) and looking if you have > the well known warning "headers already sent"?. Try to work with > error_reporting(E_ALL), instead of hiding errors. If you get that

Re: [PHP] [SOLVED] Re: Upgraded system and now $_SERVER['SERVER_NAME'] is not more working

2010-12-22 Thread Ravi Gehlot
You probably have error_reporting turned on and that caught on errors. There are new tougher rules/requirements with newer PHP versions. Ravi.

[PHP] [SOLVED] Re: Upgraded system and now $_SERVER['SERVER_NAME'] is not more working

2010-12-20 Thread Michelle Konzack
I do not know HOW, but it wors again... Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France EURL itsyst...@tdnet

Re: [PHP] [SOLVED]mail command failing

2010-06-29 Thread Mike Wright
Mike Wright wrote: Hi all, I'm very puzzled by this. I've been using the php mail command for years but now I can't get it to work and can't figure out how to diagnose the problem. I can access the mail server with "/usr/bin/mailx" and by telnet "localhost 25". I can also send mail using

[PHP] [SOLVED] Re: [PHP] cannot compile PHP 5.2.11 on Mac OS X 10.6.1

2009-10-25 Thread Mari Masuda
Hi, So I found out there are two bugs filed in bugs.php.net that are related to this problem. The bugs are http://bugs.php.net/bug.php?id=49332and http://bugs.php.net/bug.php?id=49267. To anyone else that has the same issues as me, here is how to get around the problem if you are trying

Re: [PHP] [SOLVED] class to generate Javascript Object ??

2009-10-04 Thread Michael A. Peters
Andrea Giammarchi wrote: Thank you, worked beautifully. just don't ignore this: PHP 5 >= 5.2.0 if you are trying to create something portable, you should consider a Pear fallback ... I make heavy use of DOMDocument so I need 5.2.x anyway. But thanks for the warning. -- PHP General Maili

RE: [PHP] [SOLVED] class to generate Javascript Object ??

2009-10-04 Thread Andrea Giammarchi
> Thank you, worked beautifully. just don't ignore this: PHP 5 >= 5.2.0 if you are trying to create something portable, you should consider a Pear fallback ... if(!function_exists('json_encode')){ require_once 'JSON.phps'; // http://mike.teczno.com/JSON/JSON.phps function json_en

Re: [PHP] [SOLVED] class to generate Javascript Object ??

2009-10-04 Thread Michael A. Peters
Andrea Giammarchi wrote: > I'm thinking (hoping) there is already a php class somewhere for > generating JavaScript object strings that I can instead of my ugly > easily breakable way of doing it. > > Anyone know of one? json_encode http://uk3.php.net/manual/en/function.json-encode.php

[PHP] [SOLVED] Re: Missing php5apache2.dll

2009-10-03 Thread Floydian
Floydian wrote: Hello, I've downloaded the VC6 PHP 5.3.0 windows zip (php-5.3.0-nts-Win32-VC6-x86.zip) and I don't see the file php5apache2.dll in it. php5apache.dll is in there, but the apache 2 file isn't. Where can I find this file? I've found the dll :) The php5apache2.dll and php5apach

Re: [PHP] [SOLVED] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Steve : > Ashley Sheridan wrote: >> >> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: >> >>> >>> 2009/8/26 Ashley Sheridan : >>> On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: > > I've been playing about more and now I have the following code: > >

[PHP] [solved] Re: [PHP] phpMyAdmin, suhosin, proper solutions

2009-04-05 Thread Michael A. Peters
Michael A. Peters wrote: Chris wrote: Yes, I read the documentation on how to make them play nice, and to me it is unacceptable to change suhosin settings intended to protect my users and my site from a malicious user so that I can use a web app that is not open to the public. No idea what t

[PHP] [SOLVED] How do you use php-gettext?

2009-03-22 Thread Michelle Konzack
Now it works... I do not know why but it works. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread John Corry
I read (well, skimmed anyway) this thread and saw that the original poster's issue was resolved. For the archives though, I'd like to mention that the PEAR Auth and MDB2 packages would make all of the things that are being done by this code much easier for the programmer. Auth allows you to authe

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Jim Lucas
Frank Stanovcak wrote: > if you want to know what is happening...I just did the research...the while > statment runs untill the condition is false. This means that, this your > case, > $row = false. We were getting results in the loop becuase that never > happened while it was looping, but to en

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Frank Stanovcak
if you want to know what is happening...I just did the research...the while statment runs untill the condition is false. This means that, this your case, $row = false. We were getting results in the loop becuase that never happened while it was looping, but to end the loop it proccessed $row = f

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread tedd
Terion Miller wrote: SOLVED: Thanks everyone I got it working it was the loop...took it out and now it works like a charm!! Is there a way to mark things solved? Normally, when one post [SOLVED] in the subject line, the post also provides the solution. As it is now, a person with a similar

[PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Nathan Rixham
changing the title; but nobody else does it which leads to some great out of context discussions :) Terion Miller wrote: SOLVED: Thanks everyone I got it working it was the loop...took it out and now it works like a charm!! Is there a way to mark things solved? On Wed, Jan 7, 2009 at 1:46 PM,

[PHP] SOLVED Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
Jim McIntyre wrote: metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); Never mind - I found the problem. It was a lo

[PHP] [SOLVED]RE: [PHP] restricted file access

2008-08-29 Thread Angelo Zanetti
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 28 August 2008 21:19 To: php-general@lists.php.net Subject: RE: [PHP] restricted file access At 10:50 AM +0200 8/28/08, Angelo Zanetti wrote: >Thanks for your reply. > >But what happens if the file is situated here: > >www.si

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
Robert Cummings wrote: function setCal($h=0,$m=0,$s=0,$offset,$dayVal=1){ $stamp = date('U',mktime($h,$m,$s, $offset,$dayVal,date('Y'))); I don't really want to say "I told you so", but that's one of the two lines I denoted as

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Robert Cummings
On Thu, 2008-05-29 at 07:37 -0400, Mark Weaver wrote: > Mark Weaver wrote: > > Hi all, > > > > I've put this off as long as possible, however I think I've reached an > > impasse. > > > > I've got an application that I've been writing. One of the modules for > > this app is an event calendar. I'

Re: [PHP] SOLVED: Calendar Date Help

2008-05-29 Thread Mark Weaver
Mark Weaver wrote: Hi all, I've put this off as long as possible, however I think I've reached an impasse. I've got an application that I've been writing. One of the modules for this app is an event calendar. I've got the calendar to the place where it displays the current month as well as

RE: [PHP] (SOLVED) /etc/php.init changes not honored

2008-01-16 Thread Ryan H. Madison
All, The problem turned out to be selinux. With the newest version of RH, a new security model has been implemented. Instead of doing Discretionary Access Control (DAC, conventional rwx permissions) RH implements selinux which uses Mandatory Access Control (MAC, enhanced permissions using

Re: [PHP] [SOLVED] Why I sart getting "Fatal error: Allowed memory size..." after php upgrade?

2007-12-20 Thread afan pasalic
Richard Lynch wrote: > On Thu, December 20, 2007 11:37 am, afan pasalic wrote: >> The hosting company I have one account (and several Add Domains) >> upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I >> start getting the error message: >> Fatal error: Allowed memory size of 83886

[PHP] [SOLVED] Re: [PHP] disappearing array?

2007-09-21 Thread Jas
Found the problem. I had a typo on my conditional statement. if( $fix->ValArray( $_POST['add_order_items'] === -1 ) ) { $errors['add_order_array'] = $erlink; } Should have been: if( $fix->ValArray( $_POST['add_order_items'] ) === -1 ) { $errors['add_order_array'] = $erlink; } My eyes need to b

Re: [PHP] [SOLVED] Page Numbering

2007-09-19 Thread Jim Lucas
Dan Shirah wrote: Awesome. I just had to modify the outter query: $SQL = "SELECT TOP {$max_results} Value1, Value2 FROMmy_table WHERE credit_card_id NOT IN ( To read: $SQL = "SELECT TOP {$max_results} Value1, Value2 FROMmy_table

[PHP] [SOLVED] Page Numbering

2007-09-19 Thread Dan Shirah
Awesome. I just had to modify the outter query: $SQL = "SELECT TOP {$max_results} Value1, Value2 FROMmy_table WHERE credit_card_id NOT IN ( To read: $SQL = "SELECT TOP {$max_results} Value1, Value2 FROMmy_table WHERE my_tab

[PHP] SOLVED Re: [PHP] problem with composing URL with GET Variables

2007-05-23 Thread Angelo Zanetti
SOLVED. seems that something else was causing the script not to work. Thanks anyway Angelo Zanetti wrote: Dear all. I have a script that is called by an AJAX popup. Now I use an image file to get the path of an image for an tag eg: the $getImageURL is composed as follows: $

[PHP] *SOLVED* Need to POST multiple values with single name

2007-04-27 Thread Maxim . Sedelnikov
Thanks to all. I've solved the problem with 'http_post_data()': $data=array('aaa1' => '2', 'bbb2' => ''); $mult='licenses=lic1&licenses=lic2'; $http_response=http_post_data($url,http_build_str($data).'&'.$mult,$opt); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Re: Make eclipse-php recognise custom extension as php ? [SOLVED]

2007-04-27 Thread Don Don
Hi Roberto, I finally made it to work by using the content-type option in adition to your earlier tip. I did this Windows -> Preferences -> Content Types -> i clicked on text in the top box -> and selected -> PHP Source file , then added my custom extension below. The new custom extension

[PHP] [SOLVED] [PHP] return bounced email to specific email address

2007-01-31 Thread afan
> [EMAIL PROTECTED] wrote: >> hi, >> is it possible to specify email address in mail() function where bounced >> email could return? >> >> I checked http://us2.php.net/manual/en/function.mail.php but didn't find >> anything. > > That's the right place. It's the 5th parameter you want to change. > >

RE: [PHP]SOLVED convert date to reversed date

2007-01-31 Thread Reinhart Viane
Thx All -Oorspronkelijk bericht- Van: Jim Lucas [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 30 januari 2007 16:52 Aan: Jim Lucas CC: Arpad Ray; [EMAIL PROTECTED]; php-general@lists.php.net Onderwerp: Re: [PHP] convert date to reversed date Jim Lucas wrote: > Arpad Ray wrote: >> $filenam

[PHP] SOLVED: RE: [PHP] storing date in datetime column

2007-01-09 Thread afan
WORKS PERFECT! Thanks Brad! -afan > [EMAIL PROTECTED] wrote: >> hi, >> $date = "January 8 2007 11:23 pm"; >> and have to store it on db in datetime column as -mm-dd HH:ii:ss. >> Is there any function that will "translate" $date in format I >> need to store it in DB? >> >> Right now I was thin

[PHP] [Solved] Re: [PHP] DOM: Problem with loadXML(), createProcessingInstruction()

2006-09-19 Thread Chris Boget
Has anyone found a workaround for this; a workaround the fact that loadXML() completely replaces the existing document structure? It's amazing what you find out after you've already made yourself look foolish. $xmlStr = 'blah'; $doc = new DOMDocument( '1.0', 'UTF-8' ); $docFragment = $doc->c

Re: [PHP] *SOLVED* Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Finally! Solution: I needed to create what is called a "mount point" or "share point" in my home directory. Basically I created a folder in my home directoy, and then used this following command in the Terminal to mount the server share on the mount point of my choosing: mount -t smbfs //[EMAIL P

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
tedd wrote: Not meaning to wake you, but you might consider removing markup from presentation via css. If so, checkout: http://www.w3schools.com/css/css_pseudo_elements.asp Ah, good point! Lol. Looking into that now... all I want is basic access-key support/styling. Thanks for the tip. :)

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread tedd
At 4:29 AM -0700 8/22/06, Micky Hulse wrote: Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key => $string) { $pages[$key][0] = ''.$string[0][0].''.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky Micky

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key => $string) { $pages[$key][0] = ''.$string[0][0].''.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To

[PHP] [SOLVED - THE REDHAT WAY] Re: [PHP] stupid compile problem... additional ini files not found

2006-08-21 Thread Jochem Maas
I worked round my problem by adding the contents of my additional ini files to the bottom of the std ini file - a typical redhat solution to a typical redhat problem (I only ever seem to have to go through this kind of crap on Redhat - Debian is much nicer to me). Jochem Maas wrote: > hi people,

[PHP] SOLVED (spelling error) - Re: [PHP] How to get rid off empty elements of an array?

2006-08-07 Thread afan
Sorry for this. Spelling error. :( -afan > Hi to all! > > I have a form with 6 text fields where visitor has to enter product serial > number (same type data). he has to enter AT LEAST ONE. > > for ($i=0; $i<6; $i++) > { > echo ' size="25">'; > } > > After the form is submitted I'm getting an

[PHP] [Solved] Re: [PHP] shebang line drive me nuts.

2006-08-07 Thread Jochem Maas
hi Duncan, the disk the home dirs are situated on (where the script was living) was indeed mounted as noexec. THANK YOU for saving me hours of mental torture (and teaching me something in the process), thanks to everyone else for giving their time/energy. kind regards, Jochem Duncan Hill wrote:

[PHP] [SOLVED] Re: [PHP] ftp_put()'ing a string ...

2006-07-13 Thread Jochem Maas
I figured out how to ftp a string into a remote file using the ftp streams wrappers. the code looks as follows (I leave out the definition of the [error logging] callback PLFTPServerNotifier() the prototype requirements of which can be found in the manual): array('overwrite' => false))); strea

[Fwd: [PHP] Problem installing php] - SOLVED

2006-07-11 Thread Ruben Rubio Rey
Solved installing csv version. Is it officially stable? Do anyone know when is it going to be stable? Original Message Subject:[PHP] Problem installing php Date: Tue, 11 Jul 2006 12:04:18 +0200 From: Ruben Rubio Rey <[EMAIL PROTECTED]> To: php-general@lists.php.n

[PHP] Solved (Re: [PHP] HTML form)

2006-06-01 Thread Martin Marques
On Thu, 01 Jun 2006 13:06:24 -0600, John Meyer <[EMAIL PROTECTED]> wrote: > Martin Marques wrote: >> doesn't seem to get it right. Here is the HTML output: >> >> >> Profesor titular >> Profesor asociado >> Profesor adjunto >> Jefe de trabajos pracáá½ticos >> Ayudante de cat½edra >> Ayudante a

RE: [PHP][Solved] Mail and hotmail

2006-05-04 Thread Peter Lauri
Sending email to hotmail using mail(); > you need to set your mail headers for the mail to be assumed valid, namely: X-Sender From Date Subject Delivered-to MIME-Version Reply-To Content-type X-Priority Importance Return-Path X-Mailer HTH Angelo -- PHP General Mailing List (http://www.php.

[PHP] [SOLVED] RE: [PHP] How can I see where my script wasting time?

2006-04-17 Thread afan
Yes, it was problem with indexing and with help of "explain select" I got really decent speed. tanks to all for big help! -afan > [snip] > I was developing one site with fake records in DB. Now, I put it live > whit > real records. The site is running ok, but it's painfully slow. Even for > gra

Re: [PHP] [SOLVED] PHP 4.3.11, question about classes

2006-03-22 Thread Michael Hulse
On Mar 22, 2006, at 4:33 AM, chris smith wrote: Sorry for the confusion :) Not at all. :) I am stoked to be finally learning about OOP/classes/objects in PHP... the tutes you sent are very helpful. Many thanks for you help, I really appreciate it. ;) Nice site btw, great info, cool desig

Re: [PHP] How does one obtain the resolution of an image in PHP? [SOLVED]

2006-03-17 Thread Simon M. Campden-Main
Good morning, Edwin. Thank you very much for taking the time to respond to my query. E> See if you have ImageMagick installed. I didn't, but do now. E> You could probably use the "identify" command to find the info you need. For more information: $ man identify It works, Edwin. A tad slow (

Re: [PHP] Coordenates latitude / longitude on PHP - SOLVED

2006-03-03 Thread Ruben Rubio Rey
It wasn't so hard! I ll post the solution, so everyone ll be able to do it function getlocationcoords($lat, $lon, $width, $height) { $lat=$lat*20; $lon=$lon*28; $x = (($lon + 180) * ($width / 360)); $y = ((($lat * -1) + 90) * ($height / 180)); return array("x"=>round($x),"y"=>rou

[PHP][SOLVED] Problem with mail() on Debian

2006-02-24 Thread George Pitcher
Hi, Thanks to David - his suggestion to comment out the php.ini sendmail_path line and reverting to using Manuel's email class solved the problem. Many thanks to all. George > -Original Message- > From: Manuel Lemos [mailto:[EMAIL PROTECTED] > Sent: 23 February 2006 7:58 pm > To: php-ge

Re: [PHP][SOLVED] Regular expression

2006-01-30 Thread Barry
Silvio Porcellana [tradeOver] wrote: Barry wrote: Simple reg help please i want to match the last "," in "a,b,c,d" and replace it with " and " Without using a regexp, you could do: $string = 'a,b,c,d'; $letters = explode(',', $string); $last_letter = array_pop($letters); $final_st

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-27 Thread Barry
Chris Boget wrote: Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken for

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Chris Boget
Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken for a possible typo whe

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Barry
Chris Boget wrote: echo $$foo Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Chris Boget
echo $$foo Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken for a p

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Barry
Barry wrote: Fernando Anchorena wrote: Barry wrote: Fernando Anchorena wrote: Fisrt thx to all for yours answers, I'm updating the mail because in hte last mail I'didn express my self correctly : EXAMPLE page1.php === $sql_pro ="SELECT Sid FROM tab

Re: [PHP][SOLVED] How would u strip the path?

2006-01-24 Thread Nicholas Couloute
Thanks that is just what I needed! On Tue, 24 Jan 2006 4:08 am, Paul Scott wrote: On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote: how would u strip the path off of a variable? say that: http://za2.php.net/manual/en/function.basename.php basename it! --Paul ~Nick Couloute co-ow

Re: [PHP][SOLVED] Re: Search files in a directory!

2006-01-23 Thread Nicholas Couloute
thank you barry! function substr_count() does what I need! On Mon, 23 Jan 2006 9:13 am, Barry Krein wrote: Nicholas Couloute wrote: What would I do to the variable each tome to compare it to the query? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com use substring count or any other str

Re: [PHP] [SOLVED]Problem with php.ini

2005-08-16 Thread Tim Boring
On Tue, 2005-08-16 at 17:59 +0200, Torgny Bjers wrote: > Tim Boring wrote: > > >I'm having a problem with php-cli and php_mod reading my php.ini file. > >I've compiled php from source, during which process I set > >"--with-config-file=/etc". Once the compile completed, I then copied > >php.ini-re

RE: [PHP] PDFs are blank in e-mail sent via PHP - SOLVED

2005-07-28 Thread Jay Blanchard
[snip] Using the following code; $fileRead = fopen($fileAtt,'rb'); $fileData = fread($fileRead,filesize($fileAtt)); fclose($fileRead); [/snip] PHP had been recompiled on the production server and in the course of doing so magic quotes was set to

[PHP] solved::session wierd in Konqueror

2005-05-13 Thread Brian V Bonini
This is solved... --original-- session_start(); header("Cache-control: private"); // IE 6 Fix $user_quotes = $_SESSION['user_quotes']; if (!isset($user_quotes) || $user_quotes >= count($quote_result) - 1) { $user_quotes = 0; } else { $user_quotes++; } echo ""; echo $_SESSION['user_quotes

RE: [PHP][SOLVED] include remote class

2005-05-11 Thread PHP
got it working... $poo = file_get_contents("http://mysite.com/class.php";); eval($poo); where class.php has no -Original Message- From: PHP [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 8:12 AM To: [EMAIL PROTECTED] Cc: PHP LIST Subject: RE: [PHP] include remote class if i got

Re: [PHP] [SOLVED] Function shall receive Pointer to Array

2005-05-05 Thread Fred Rathke
Thanks, Chris. You have been right. It worked already. I still remove all my typing errors in the original version. For this list I wrote a new version of it. Should have tried it first. Sorry. Greatings *I should not work after midnight* Liebe Grüße Fred Rathke [EMAIL PROTECTED] http://communic

[PHP] [SOLVED] Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Sebastien Pahud
Thanks David, Exactly what i was looking for ! Seb David Tucker wrote: I would do it like this : if (mysql_data_seek($result, $rownum)) $a_row = mysql_fetch_row($result); echo $a_row[$column_int]; --Codefox -Original Message- From: Sebastien Pahud [mailto:[EMAIL PROTECTED] Sent: Tu

[PHP] [SOLVED] Re: [PHP] OT - C programming

2005-03-16 Thread Jason Barnett
Philip Olson wrote: > For a nice introduction to extension writing, read this > article: > > Part I: Introduction to PHP and Zend > http://zend.com/php/internals/extension-writing1.php Bookmarked for future reference. Looking forward to the next several parts in this series... > > As well as

[PHP] (SOLVED) Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Ok, well the mystery is solved. Earlier in the script, I had used HEREDOC string delimiting to output some html blocks (I feel, asthetically, that HEREDOC is more readable than escaping out to HTML then back into PHP). Somehow, and I'm not sure how, because I don't remember typing the spaces, b

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 11:20:04 PM, you wrote: T>> I do this for security as I have things in include that I don't T>> want to be avaiable directly to the browser Also you don't need a T>> path for include files you can just d

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 11:20:04 PM, you wrote: T> I do this for security as I have things in include that I don't T> want to be avaiable directly to the browser Also you don't need a T> path for include files you can just do: Don't necessarily disagree with you there other than if you

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 3:57:50 PM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR>> Ok I see where is is going wrong, try this: LG> Oh, very close. Although you have it at $document_root and all LG> that needs to be added is '/include' like below: LG> $i

[PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR> Ok I see where is is going wrong, try this: Oh, very close. Although you have it at $document_root and all that needs to be added is '/include' like below: $include = $document_root . '/include'; Otherwise it's one directory too

[PHP] SOLVED - trouble with JCal Class

2005-02-01 Thread Phillip S. Baker
I was able to figure out the problem. If there is anyone else out there that is using it and needs the solution let me know and I will pass it on. -- Blessed Be Phillip "Phillip S. Baker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am posting this here, as it is a bug in the

[PHP] SOLVED: Global class instances mysteriously set to NULL

2005-01-10 Thread James \(IFMS\)
I *really* appreciate everybody's previous input. I may be a highly experienced programmer, but am relatively new to PHP. OK, I figured out what was going on. Google enough and read enough and the light goes on finally. The problem was not the "require_once" but a scoping problem. Specifically

[PHP] [SOLVED] Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Ewout de Boer
> I'm getting unexpected data from my file_get_contents function using an url > as filename. > > The function does not return false, i do get data from it. Problem is that > is is not the data is requested. The ISP made a mistake in the server config :-( ... it works again regards, Ewout -- P

Re: [PHP][SOLVED] Question: Repopulating form parameters

2004-12-13 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > I think will call it a day for this thread. As I suspected a loop was needed to make this work. In the event that there are other idiots, such as myself, that don't immediately figure out the exact logic I'll post the code: //The sql is Adodb syntax

Re: [PHP][SOLVED] Question: Repopulating form parameters

2004-12-13 Thread Marek Kilimajer
Stuart Felenstein wrote: --- Jason Wong <[EMAIL PROTECTED]> wrote: I think will call it a day for this thread. As I suspected a loop was needed to make this work. In the event that there are other idiots, such as myself, that don't immediately figure out the exact logic I'll post the code: //Th

[PHP] [SOLVED] Re: Wirred problem with "500 Internal Server Error"

2004-11-07 Thread Michelle Konzack
Hello all, it was realy stupid... One of my VirtualHosts had AddHandler cgi-script .php .cgi .sh .pl but NOT inside the directive... ...and has blocked all Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917

Re: [PHP] SOLVED - Validation and session variables

2004-10-27 Thread Stuart Felenstein
I guess this was the one thing I overlooked. Since the page had to return to itself if validation errors, it was already set in the validation script to do so. So, as I had shown in my original post the form action was blank ..well "" Simple solution to keeping my session vars, set action to pa

[PHP] SOLVED Re: [PHP] Help: Database search and results

2004-10-24 Thread Stuart Felenstein
Wow~! I'm getting good. --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I have created a database search and results set. > Things seem to work fine until I add the join > statements into the results page query string. > If I don't use the joins , the search works great. > It > returns the c

Re: [PHP] SOLVED: why this doesn't work as an external file but does internally?

2004-10-06 Thread John Nichel
Brian wrote: Those of us that view emails as a list of conversations would appreciate not changing subject lines. Changing the subject line as in putting 'SOLVED' in it? Hell, I wish more people did that. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (ht

Re: [PHP] SOLVED: why this doesn't work as an external file but does internally?

2004-10-06 Thread Brian
Those of us that view emails as a list of conversations would appreciate not changing subject lines. On Wed, 6 Oct 2004 16:01:32 -0400, Aaron Wolski <[EMAIL PROTECTED]> wrote: > Hi All, > > Just wanted to thank everyone for their advice and help. > > What I ended up doing is simply doing an inc

RE: [PHP] SOLVED: why this doesn't work as an external file but does internally?

2004-10-06 Thread Aaron Wolski
Hi All, Just wanted to thank everyone for their advice and help. What I ended up doing is simply doing an include() of the JS code instead of externally linking to the file. This works perfectly. Thanks again everyone! I appreciate it. Regards, Aaron > -Original Message- > From: Aaro

[PHP] [SOLVED] [PHP] Pear::Image_Text - how to change background color from black

2004-09-24 Thread Chris Dowell
Just FYI I figured it out - there is an $options['canvas'] option which accepts, amongst other things, a handle to an image resource. Trivial then to use imagecreate() and imagecolorallocate() to create a white-background starting point. Sorry for wasting everyone's time Cheers Chris Chris Dowe

Re: [PHP] Appended [PHP] Solved [PHP] ASP guy needs help.

2004-09-22 Thread Marek Kilimajer
LW Ellis wrote: LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone else

[PHP] Appended [PHP] Solved [PHP] ASP guy needs help.

2004-09-22 Thread LW Ellis
LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone else has a similar is

Re: [PHP] Solved [PHP] ASP guts needs help.

2004-09-22 Thread Burhan Khalid
LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone else has a similar iss

[PHP] Solved [PHP] ASP guts needs help.

2004-09-21 Thread LW Ellis
Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. Thanx anyways Leon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOLVED RE: [PHP] Dynamic Function with return?

2004-08-27 Thread bskolb
Thanks for the quick reply, I wasn't aware that passing a variable for the object would work. New code: class testClass { function testFunction($foo) { return $foo=="TEST"; } } $testObj = new testClass; $testFunc = "testFunction"; echo $testObj->$testFunc("TEST"); -

Re: [PHP] Solved: Curious problem overloading derived ObjectArray and __toString

2004-08-27 Thread Stefan
m'kay ... already got it. The routine was disabled due some internal problems. It should be reintroduced in PHP 5.1. *wait* http://www.rb21.com/news/index.php/m/115763/0/#msg_115763 Stefan wrote: hi, I extended ArrayObject (SPL) to a new class. Let's call it ExtObjectArray. ExtArrayObject is qui

[PHP] SOLVED Re: [PHP] Strange PHP problem with mod_perl and MySQL

2004-08-06 Thread Phil Stracchino
On Fri, Aug 06, 2004 at 02:33:28PM -0400, Justin Hannus wrote: > Please include the list when replying to posts... Sorry. You replied to me off-list, so I did the same. Reinstalling DBD::mysql did indeed solve the problem. I now know that whenever I update MySQL, I need to also reinstall both P

RE: [PHP] Upgrade PHP? [SOLVED]

2004-08-02 Thread Will Collins
Yeah, actually, you were right. I must have misunderstood the instructions - probably because of the press for time, reading too quickly. I wasn't using "--with-jpeg-dir", etc. Sorry for the mess, and thanks for all the help. At least some good came out of this -- I now have a working Slackware

Re: [PHP] SOLVED: ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
yup, you were right. I was naming the image "image.png.png". DOH! been a long week Thanks!! On Jul 9, 2004, at 6:42 PM, Jason Wong wrote: On Saturday 10 July 2004 06:38, Jough P wrote: Greetings all, I have a real simple function. I works well on JPG images but ImageCopyResized(), or Imag

  1   2   >