[PHP] Object reference into variable?

2007-08-07 Thread GMail
Hello, I have a question (what a surprise :-) ) I browsed the archives, but didn't find what I'm looking for. I have an object instance stored in some variable (like $myobject). I want to save this instance into another variable (like $tempobject). I thought, this will be the way: $myobject

[PHP] Re: Object reference into variable?

2007-08-07 Thread GMail
I forgot to tell you that I have to use PHP4.2 because of my web provider. Anything besides of _clone? SanTa - Original Message - From: Hamza Saglam To: "Sándor Tamás (GMail)" Sent: Tuesday, August 07, 2007 10:49 AM Subject: Re: Object reference into variable?

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Manolet Gmail
2006/12/29, Arpad Ray <[EMAIL PROTECTED]>: Angelo Zanetti wrote: > So is there a way to test for \r\n? or what else can I use to delimit > these two values (last column of row and first column of next row)? > mmm what about open the file with and hex editor?.. or mmm notepad++ have a option to

[PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
Hi, i have a problem using regex, i want to get all the text between " " so i try this... $subject = 'menu "Archer?",-,"Chief?",L_Menu2,"Big Mouth?",L_Menu3;'; if (ereg('"([^"]*)"', $subject, $regs)) { print_r($regs); } but just return me: Array ( [0] => "Archer?" [1] => Archer?

Re: [PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
CRE)... anyway, PCRE is better that ereg? On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote: > Hi, i have a problem using regex, i want to get all the text between " " > > so i try this... > > $subject = 'menu "Archer?",-,"Chi

Re: [PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
r alternative to ereg()." On Sat, Feb 03, 2007 at 01:58:50PM -0500, Manolet Gmail wrote: > anyway, PCRE is better that ereg? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image from a secure site

2007-03-08 Thread Manolet Gmail
hi, i install 4 IP cameras and i want to extract the images from their web interface that is protected be a username and password (HTTP AUTH) and show it into another system. so i do a function to connect to it and get the image... function subd($host,$port,$ownername,$passw,$request) { $sock =

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
2007/3/12, Richard Lynch <[EMAIL PROTECTED]>: Instead of trying to re-invent the authentication wheel, just use http://php.net/curl wow!! Thanks you A LOOOT!!! thats amazing!!! On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: > hi, i install 4 IP cameras and i want t

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
curl_exec($ch); curl_close($ch); 2007/3/13, Manolet Gmail <[EMAIL PROTECTED]>: 2007/3/12, Richard Lynch <[EMAIL PROTECTED]>: > > Instead of trying to re-invent the authentication wheel, just use > http://php.net/curl > wow!! Thanks you A LOOOT!!! thats amazing!!!

[PHP] HTDIGEST FILE FORMAT

2007-04-01 Thread Manolet Gmail
hi, i want a php script to create htdigest file... the correct file is: username:admin digest:trac pass:admin admin:trac:71ea86385b35d5e2575b0baec1904ded i try to do it on php with this: echo "admin:trac:".md5("admin"); but i receive this: admin:trac:21232f297a57a5a743894a0e4a801fc3 how is

[PHP] exec dont work for svn

2007-05-28 Thread Manolet Gmail
hi, i want to do a svn update (subversion) from php using exec (or system) now, this works: exec("ls; pwd",$out); foreach($out as $line)echo"$line\n"; and this also works and print me the help from subversion: exec("svn help",$out); foreach($out as $line)echo"$line\n"; but this doesnt work:

[PHP] exec dont work for svn

2007-05-29 Thread Manolet Gmail
2007/5/28, Greg Donald <[EMAIL PROTECTED]>: On 5/28/07, Manolet Gmail <[EMAIL PROTECTED]> wrote: > but this doesnt work: > > exec("svn update",$out); > foreach($out as $line)echo"$line\n"; > > dont print anything... dont update the file

Re: [PHP] exec dont work for svn

2007-05-29 Thread Manolet Gmail
e 2>&1", $out); Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > -Original Message- > From: Manolet Gmail [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 29, 2007 5:45 PM >

Re: [PHP] exec dont work for svn

2007-05-30 Thread Manolet Gmail
2007/5/30, Richard Lynch <[EMAIL PROTECTED]>: On Tue, May 29, 2007 10:44 am, Manolet Gmail wrote: > 2007/5/28, Greg Donald <[EMAIL PROTECTED]>: >> On 5/28/07, Manolet Gmail <[EMAIL PROTECTED]> wrote: >> > but this doesnt work: >> > >> > exe

[PHP] channels attribute value returns wrong

2006-10-31 Thread dhatri gmail
Hello, using function getimagesize(); I am trying to get channels attribute value of image, it returns 3 for cmyk image actually it should return 4, can you tell me why it happens so? regds. dmt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-04-29 Thread Terry Ally (Gmail)
Hi all, I have been using a mailto() script for the last three years and from April 25, 2012 incoming HTML email in Goggle mail is displaying as Plain Text. Something clearly changed with Google. Perhaps there is some change I need to make with my script?? // First set up some variables for reci

Re: [PHP] PHP & Database Problems

2012-05-02 Thread Terry Ally (Gmail)
Dear Ethan, It would be useful to see what code you are using. The syntax is: UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value The data that you are required to enter is for Intake3. I am assuming that the only change is the History and/or Phone that you nee

Re: [PHP] date conversion/extraction issues

2012-05-03 Thread Terry Ally (Gmail)
Haluk, After you retrieve the date from the database you still have to convert it from a string to time and then to a date. Try: Terry On 2 May 2012 22:36, Haluk Karamete wrote: > This is my code and the output is right after that... > > $PDate = $row['PDate']; > //row is tapping into ms-sq

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread Terry Ally (Gmail)
Tom, Here is how you would paginate in PHP. // // Number of records to show per page: $display = 4; // Determine how many records there are. if (isset($_GET['np'])) { $num_pages = $_GET['np']; } else { $query = "SELECT * FROM mytable"; $query_result = mysql

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-03 Thread Terry Ally (Gmail)
at 5:14 PM, Marco Behnke wrote: > > > > > > > Am 29.04.2012 22:31, schrieb Terry Ally (Gmail): > > > >> Hi all, > >> > >> I have been using a mailto() script for the last three years and from > >> April > >> 25, 2012 incoming HTML ema

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread Terry Ally (Gmail)
just the distance. I need the distance so that I can calculate cost of a trip. http://maps.googleapis.com/maps/api/distancematrix/json"; method="get"> Get Distance On 4 May 2012 15:08, David OBrien wrote: > Google is still your friend > > On Fri, May 4, 20

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-11 Thread Terry Ally (Gmail)
ovember 2012 18:48, shiplu wrote: > You can always use timestamp which is integer. > > $todaydate = time(); > $showenddate = strtotime($showsRecord['end_date']); > > > On Mon, Nov 12, 2012 at 12:30 AM, Terry Ally (Gmail) > wrote: > >> Hi all, >&

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-11 Thread Terry Ally (Gmail)
Stuart, I reversed it as you suggested and every future show is displaying as having ended. Terry On 11 November 2012 19:11, Stuart Dallas wrote: > Please include the list when replying. > > On 11 Nov 2012, at 19:08, "Terry Ally (Gmail)" > wrote: > > > What I

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Terry Ally (Gmail)
must convert both $todaydate and $showendate with strtotime() > function, then you can compare them. > > On Mon, Nov 12, 2012 at 1:30 AM, Terry Ally (Gmail) > wrote: > >> Hi all, >> >> I am having a problem with comparing time. I am using the following: >> >

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Terry Ally (Gmail)
_**date']); > > >> if ($todaydate< $showenddate): >> echo "The date of the show has not yet arrived"; >> else: >> echo "The show has ended"; >> endif; >> >> You must convert both $todaydate and $showendate with strt

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Terry Ally (Gmail)
You could echo HTML code e.g. Number: *Submit* or include it as one of your form attributes: ** First name: Last name: On 4 March 2013 07:16, Maciek Sokolewicz wrote: > On 4-3-2013 6:44, John Taylor-Johnston wrote: > >> I have many different submit button. >> >> >> >> When php

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Terry Ally (Gmail)
I was using an example and NOT intended to show ASP. On 4 March 2013 08:35, Maciek Sokolewicz wrote: > On 4 March 2013 09:32, Terry Ally (Gmail) wrote: > > You could echo HTML code e.g. > Which is still purely HTML and has nothing whatsoever to do with PHP. > > > > &g

Re: [PHP] webform spam prevention

2013-04-04 Thread Terry Ally (Gmail)
has been a significant reduction in emails from legitimate SEO companies. However there is an upsurge in fly-by-night individuals who are all using Gmail addresses and originating in the USA. It seems as though someone is selling them a database of websites to contact. I wish there was a way of