[PHP] question regarding subclasses, is this possible to do

2003-12-01 Thread Luke
properties for that current window, but it would be sumpler if i could use $test->windows($id)->showID() and if no var is there, show all...any ideas on how to do this? Thanks heaps Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread Luke
smax)); }else{ $string .= chr(rand($lowercaselettersmin, $lowercaselettersmax)); } $length--; } return $string; } function createType(){ srand ((double) microtime() * 845676); $tid = rand(0, count($this->types)-1); return $this->types[$tid]; } function createCount

[PHP] Re: replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread Luke
i forgot to mention, that being a class, you should be able to set any of the variable you want (either on class creation: new honeyPot($value1, $value2, etc); or with the class variables, $spambot = new honeyPot; $spambot->addresses = 50; //amount to create) Luke -- PHP General Mailing L

[PHP] Re: replace %rand[x]-[y]% macro in string with random string

2003-12-02 Thread Luke
t;.gn",".gp",".gq",".gr",".gs"," .gt",".gu",".gw",".gy",".hk",".hm",".hn",".hr",".ht",".hu",".id",".ie",".il" ,".im&quo

[PHP] Re: news service

2003-12-02 Thread Luke
news.php.net and subscribe to the group php.general make sure you have all your email addresses and stuff setup in the account because it may ask you to send a confirmation no user/pass required -- Luke "Bigmark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] H

[PHP] Re: Unicode translation

2003-12-02 Thread Luke
Yeah, i had a similar problem, i dont know if its the same, but i found that adding in the head of the html output fixed it Luke - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Wednesday, Dec

[PHP] Re: reload farmes

2003-12-02 Thread Luke
i use echo "\n"; echo "javascript:top.location.href='{$placetogo}';\n"; echo ""; and if you want to refresh a specific frame, replace top in the script for the frame name -- Luke "Christian Jancso" <[EMAIL PROTECTED]> wrote in m

[PHP] Re: Generate automatic list of dates

2003-12-02 Thread Luke
that should do it :) uend: " . $uend; while($ufirst <= $uend){ //do other stuff here, insert into database etc $ufirst = strtotime("+1 day", $ufirst); $formatted = date("d/m/Y", $ufirst); echo "ufirst: " . $ufirst . " : " . $formatted; }

Re: [PHP] Re: Unicode translation

2003-12-02 Thread Luke
no, but on windows, you should be able to access most of them (depending on the font) by using ALT+(number pad code) eg ALT+(num pad)0169 gives you -> © Luke -- Luke "Louie Miranda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does all unicode characters

[PHP] Re: search/replace functions

2003-12-03 Thread Luke
code- for($i = 0; $i <= 31; $i++) { eregi_replace($search[$i], $replace[$i], $content); } return $content; } -- becomes ---new code- $content = str_replace($search, $replace, $content); return $content; } -- Luke "Sc

[PHP] Re: PHP and Intranets

2003-12-03 Thread Luke
;), "unknown")) $ip = getenv("REMOTE_ADDR"); else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) $ip = $_SERVER['REMOTE_ADD

[PHP] Re: Losing Sessions.

2003-12-04 Thread Luke
somewhere, that code should be if (isset($_SESSION['xebitsession'])) same with everywhere else, unless $xebitsession is set, anwhere that there is $_SESSION[$xebitsession] should become $_SESSION['xebitsession'] Maybe you could try it with a cookie instead and see if th

[PHP] Re: Sort Array by date

2003-12-04 Thread Luke
an easy way, but might not work in your case is to use sort() if instead of storing the dates like 12-04-2003, could you prehaps store them as 2003-04-03 year-month-day and then you could use $datearray = sort($datearray, SORT_STRING); would this work for you? -- Luke "Matt Palermo&quo

[PHP] Re: Search logic question

2003-12-04 Thread Luke
uot;query results from {$_GET['search']}"; //then you could loop thru it $i=1; $subsearch == true; while($subsearch == true){ if(isset($_GET['subsearch' . $i])){ $results = "subquery results"; }else{ $subsearch = false; } $i++; }

[PHP] Re: PHP to read and write on a MUSH/MUX

2003-12-04 Thread Luke
NAME PASSWORD\n"); or something similar like to know how it go's -- Luke "Angel Of Death" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm fairly new to PHP and am trying to make a script that connects to a > MUSH, logs in, sends some com

[PHP] Re: Random Numbers..

2003-12-07 Thread Luke
select all and use mysql_data_seek($result, rand(mysql_num_rows($result) - 1)); $row = mysql_fetch_assoc($result); and there, your random row is returnd, that should be easy enough :) and it should work -- Luke "Theheadsage" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: Help with php output to file

2003-12-18 Thread Luke
what about output buffering and saving the output to a file instead of flushing to the screen, that would work easy :) Luke -- Luke "Paul Godard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have develop an online catalog in php/mysql. Now t

[PHP] Re: copy function

2003-12-18 Thread Luke
Try this: if (copy($file_att,'servername\\folder\\'.$file_name)) and make sure you have write access on the winNT server did that work? Luke om "Omar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way to copy a file from 1 server to a

[PHP] Re: Newbie question

2004-01-13 Thread Luke
it sounds like maybe you dont have the mysql php extension turned on in the php ini file, or your php doesnt have mysql support? Luke "James Marcinek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Everyone, > > I'm new to this so forgive my ig

[PHP] Re: alternative to protecting files through http auth.

2004-01-14 Thread Luke
index.php page if they have to be redirected, or if they are already logged in, or if they dont have permission That might work -- Luke "Scott Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Is there no other way to protect your (no

Re: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Luke
) sounds like you mat not have connected to a valid FTP server? possibly or permissions? -- Luke "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] $mode = FTP_BINARY; $picuploadname = $picupload[$i]; $piclocalname = "../pictures/".$piclo

[PHP] Re: Multiple drop downs

2004-01-15 Thread Luke
to connect to the database several times, allthought you will have to loop through a multidimensional array, but that would work -- Luke "Alex Hogan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > > > I am converting a page from asp that is u

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Luke
hi Very simple problems, good to see ur getting the hang of it :) the first is, you have defined your variables after you include the page, so that the echo is outputting a blank variable... so instead of: make it '; include ("../../../../includes/javascript.php"); include ("../../../../i

Re: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Luke
ftp_put($conn_ftp,$picuploadname ,$piclocalname , FTP_BINARY); should be the same as ftp_put($conn_ftp,$picuploadname ,$piclocalname , 2003); so i duno :/ -- Luke "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] That shouldnt matter, because FTP_BINA

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Luke
Yeah, its fine, as long as your while loop ends just after a quick glance, it looks like an infinite loop, you might try instead of while (count($aListItems)){ try while (isset($aListItems[$i])){ or while ($i < count($aListItems)){ -- Luke "Jon Bennett" <[EMAIL PROTECTED]&g

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Luke
be better of doing your html code with echos, as you have a few variables in there.. eg '; if($includemiddle == TRUE){ echo ''; } echo ''; ?> and if you are echoing a variable, quotes around it arent needed you can just use echo $variable; instead of echo "

[PHP] Re: Using lists over newsgroup, Problem

2004-01-18 Thread Luke
I'm successfully using Outlook Express news client to view messages and post messages, but i do get postmaster reply emails sometimes saying message sending expired, even though they show up and obviously worked as i can get replys -- Luke "Siamak" <[EMAIL PROTECTED]>

[PHP] Re: Error Reporting help

2004-01-18 Thread Luke
Are you using output buffering? that will stop it from being displayed (it does on mine, if thre is an error and output buffering, nothing at all shows up) So try turning output buffering off, or at the beggining somewhere put while(@ob_end_flush); -- Luke "Chris Edwards" <[EM

[PHP] Re: Can this head section, which loads many style sheets, be improved or simplified?

2004-01-19 Thread Luke
be suitable. -- Luke "Freedomware" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I now that have a system that works beautifully. I just wondered if it > could be simplififed or improved even more. > > The head section on every page consists of an inclu

Re: [PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Luke
Well if you do want to read it, i logged in and uploaded the PDF versions of the tutorial to my webserver, so take a look PDF (A4) http://www.zeyus.com/phptutorial/wa-effphp-a4.pdf PDF (Letter) http://www.zeyus.com/phptutorial/wa-effphp-ltr.pdf Hope you find it useful! Luke "Chris W. P

[PHP] Re: Specifying file paths in Windows

2004-01-20 Thread Luke
try removing the dot and / so if (is_file("filedir/test.txt")) echo "Found it!"; else echo "Not found"; that should work on windows and unix platforms, i dont think windows likes the single dot, but you can use relative referencing, by just using the direct

Re: [PHP] authentication problems!

2004-01-20 Thread Luke
Yeah, i think i mentioned the same thing(or was going to :/ ) you should be able to use the local filesystem, and reffer to it relatively! and then you can stream it and you wont need any authentication, and noone will be able to directly link to the file -- Luke "Jason Wong" <[EM

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
yeah its strange, $test is equal to $test2, $test is equal to $test3 but $test2 is not equal to $test3, $test = "string"; $test2 = true; $test3 = 0; if($test == $test2){ echo "hi"; } somone tell me im wrong please? else thats seriously weird -- Luke <[EMAIL PROTECTED]

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
because when the string and int are compared, the string is zero (because it has no numerical value)? did that make sense? am i right? -- Luke "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2004-01-20 at 22:39, Luke wrote: > > yeah its

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
im goin bananas, its time to go to band practise anyways, -- Luke "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2004-01-20 at 23:00, Luke wrote: > > ok, i read the section, but even so > > > > if $a == $b > > and

[PHP] Re: Specifying file paths in Windows

2004-01-21 Thread Luke
ows/system32 C:\WINDOWS\system32>cd\ C:\>c:/windows/system32/ftp.exe ftp> quit C:\>cd /windows/system32 C:\WINDOWS\system32>cd ../system/ C:\WINDOWS\system> so there shouldnt be a problem using relative referencing and forward slashes? as far as i can see :/ -- Luke

Re: [PHP] 2 x DB connections at once

2004-01-22 Thread Luke
("SELECT * FROM table WHERE name='me'", $sqlconnection1); //this will select the table named table from the mydata2 database mysql_query("SELECT * FROM table WHERE name='me'", $sqlconnection2); hope thats what you were after -- Luke ___

[PHP] Re: page order

2004-01-22 Thread Luke
ased on $_GET['id'], submit it to itself, and add &step=2 }elsif($_GET['step'] == 2 || $_GET['step'] == 'save'){ //save data back to database based on $_POST information from form and $_GET['id'] } } and you should be abl

[PHP] unexpected $ error

2004-09-21 Thread luke
hi, i get the following error when trying to run this code (see below): Parse error: parse error, unexpected $ in /full path form.php on line 59 i have checked for unclosed braces - none - and tried uploading the files in ascii format just in case but get the same same error. i have searched ma

[PHP] php parses but no data inserted

2004-09-21 Thread luke
hi there, the following code runs but no message is displayed from the if then else statement at the end of the script. also, nothing is written to the database. i have checked the insert statement and the login credentials are correct.does anyone know what might be causing this? thanks, lukemac

[PHP] inserting timestamp into mysql field

2004-09-21 Thread luke
-00-00 00:00:00. Many thanks, Luke Mackenzie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] alternative to mysql_field_name()

2004-09-21 Thread Luke
ls/114/3.php many thanks, luke. --- need a new website? get over to http://www.lukem-sites.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to concatenate php variables in mysql query

2004-09-22 Thread luke
hi, i'm trying to concatenate two php variables (containing form data) in a mysql query. i'm currenty using the dot operator: telphone number =$telcode.$telnumber' but only the telcode gets written to the database. any ideas? many thanks, luke m. -- PHP General Mai

[PHP] implode errors if array empty

2004-09-22 Thread luke
k of a way round this? many thanks, luke m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] implode errors if array empty

2004-09-22 Thread luke
is empty (the user didnt select anything in the form), > the implode function errors out. > > can anyone think of a way round this? > > many thanks, > > luke m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread luke
_1='$address1',address_2='$address2', address_3='$address3', town='$town', county ='$county', postcode='$postcode', country ='$country', telephone_number='$telcode.$telnumber', fax_number='$faxcode.$faxnumber'

[PHP] header("Location: ") problem

2004-09-22 Thread luke
hi, is there a way of setting a target property for header("Location: thanks.htm")? my form is in an iframe so when i hit submit, my php page redirects the user to thanks.htm but this is rendered within the iframe not in a fresh page. any ideas? thanks, luke. -- PHP General Ma

Re: [PHP] PHP telnet server

2009-01-01 Thread Luke
bandwidth requirements > at all. > > > /Per Jessen, Zürich > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater :O) PGP Fingerprint: 643B B93E D979 15C9 5BBD 7AF

Re: [PHP] PHP blogs?

2009-03-20 Thread Luke
http://www.planet-php.net/ is an aggregator of some of the good stuff >> that's out there. >> > > It displays horribly in Firefox. > They need to fix it. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Namespce operator

2009-03-25 Thread Luke
Safari: > http://www.rgraph.net (Updated March 14th) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater http://dinosaur-os.com/ :O)

Re: [PHP] Logical next step in learning?

2009-04-14 Thread Luke
Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > That or create a website that has already been created, but on a smaller scale. That way you will run into the common issues that you will have to deal with in most of the projects you do. -- Luke Slater :O)

[PHP] problem with my class

2009-04-16 Thread Luke
;solution = mysql_real_escape_string($s); } public function saveRecipe() { $query = "INSERT INTO recipe (title, problem, solution) VALUES ('".$this->rtitle."', '".$this->problem."', '".$this->solution."')"; mysql_query($query); } } Many thanks, Luke Slater

Re: [PHP] problem with my class

2009-04-16 Thread Luke
2009/4/16 Jan G.B. > 2009/4/16 Luke : > > Hi guys, > > > > I've been learning about object oriented programming and I wrote this > test > > class but it doesn't seem to be working, it throws no errors but doesn't > > insert anything to the data

Re: [PHP] @$_POST[...]

2009-04-22 Thread Luke
> PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I believe placing an @ in front of a statement suppresses any error messages it generates. -- Luke Slater :O)

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
id in local part unless // local part is quoted if (!preg_match('/^"("|[^"])+"$/', str_replace("","",$local))) { $isValid = false; } } if ($isValid && !(checkdnsrr($domain,"MX") || checkdnsrr($domain,"A"))) { // domain not found in DNS $isValid = false; } } return $isValid; } -- Luke Slater http://dinosaur-os.com/ :O)

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
2009/4/28 Jan G.B. > 2009/4/28 Luke : > > > > > > 2009/4/28 Jan G.B. > >> > >> 2009/4/28 Jay Blanchard : > >> > Our company wants to do e-mail verification and does not want to use > the > >> > requests / response method (click

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Luke
and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V >by William Shakespeare > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > But you're just using the same design semantic, but coding it in CSS instead of using ; it even has the same name! There appears to be nothing wrong with tables when used for the right reasons - they _are_ there for a reason. -- Luke Slater http://dinosaur-os.com/ :O)

Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Luke
gt; Lenin > > www.twitter.com/nine_L > > > Moo, I would say learn to do PHP by itself before you go using frameworks. AJAX is a bit different though because there will be few reasons that you will ever need to write low level code when you're using a library like Prototype =) -- Luke Slater :O)

[PHP] class problem :(

2009-05-28 Thread Luke
into it and there seems to be something you can do with get_called_class() but unfortunately I'm stuck with 5.2.9 at the moment and that is new to 5.3. Any ideas? Perhaps there is a different way I could implement the classes - I would rather not have getObjectIds repeated three times! Thanks in advance, -- Luke Slater :O)

[PHP] class problem

2009-05-28 Thread Luke
into it and there seems to be something you can do with get_called_class() but unfortunately I'm stuck with 5.2.9 at the moment and that is new to 5.3. Any ideas? Perhaps there is a different way I could implement the classes - I would rather not have getObjectIds repeated three times! Thanks in advance, -- Luke Slater http://dinosaur-os.com/ :O)

Re: [PHP] Re: class problem :(

2009-05-28 Thread Luke
2009/5/29 Shawn McKenzie > Luke wrote: > > Right I've read the manual on this and all that so hopefully you find > people > > can help. > > I have an abstract class with three children. The abstract is ForumObject > > and the three children are Thread, Category

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Luke
it: http://www.php.net/unsub.php > > I was once working with a very problematic partner that kept changing data in our database, so I rot13d all the data and told him it was some advanced encryption and he never worked it out :) -- Luke Slater :O)

[PHP] Socket error

2009-06-28 Thread Luke
cket, SOL_SOCKET, SO_REUSEADDR, 1); socket_set_nonblock($master_socket); And I'm getting: 'PHP Warning: socket_bind(): unable to bind address [22]: Invalid argument in /home/luke/talkserver/new/classes/server.php online 30' $this->port is valid, I've checked both this

[PHP] Socket error

2009-06-28 Thread Luke
cket, SOL_SOCKET, SO_REUSEADDR, 1); socket_set_nonblock($master_socket); And I'm getting: 'PHP Warning: socket_bind(): unable to bind address [22]: Invalid argument in /home/luke/talkserver/new/classes/server.php online 30' $this->port is valid, I've checked both this

Re: [PHP] Socket error

2009-06-28 Thread Luke
2009/6/29 Stuart > 2009/6/29 Luke : > > Hey guys, getting an odd error here... The code involved: > > > >$master_socket = socket_create_listen($this->port); > > > >socket_bind($master_socket, '127.0.0.1', $this->p

Re: [PHP] Socket error

2009-06-29 Thread Luke
2009/6/29 Daniel Brown > On Mon, Jun 29, 2009 at 02:42, Luke wrote: > > Hey guys, getting an odd error here... The code involved: > [snip!] > >Luke, > >Just a friendly reminder: for future reference, please don't start > a second thread on the li

[PHP] Scope woe

2009-06-30 Thread Luke
things like adding: private $firstobject = $GLOBALS['firstobject']; But apparently that's bad syntax. I was just wondering the best way to get around this? Thanks a lot for your help, -- Luke Slater :O)

Re: [PHP] Re: Scope woe

2009-06-30 Thread Luke
t; > On Tue, Jun 30, 2009 at 8:43 AM, Peter Ford wrote: > > Luke wrote: > >> Hello again guys, > >> > >> I was wondering the best way to tackle the following problem: > >> > >> I've got a class, containing a property wh

Re: [PHP] Re: PHP 5.3.0 Released!

2009-06-30 Thread Luke
compatible with 5_3 ? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Did anyone notice it has been released on the same day as firefox 3.5? See any similarity in the version numbers? -- Luke Slater :O)

Re: [PHP] Sessions

2009-07-03 Thread Luke
ww.php.net/unsub.php > > Some people have a file called init.php, which would contain session_start(); as well as other things that need to be done every page load (connect to the database perhaps?) and they just 'require' that at the top of every page. -- Luke Slater http://dinosaur-os.com/ :O)

Re: [PHP] How to build an FF extension

2009-07-23 Thread Luke
; > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Only officially: http://en.wikipedia.org/wiki/FF<http://en.wikipedia.org/wiki/FF> -- Luke Slater :O)

[PHP] unsubscription not working

2009-07-31 Thread Luke
I'm subscribed with. -- Luke Slater :O) this text is protected by international copyright. it is illegal for anybody apart from the recipient to keep a copy of this text. dieser text wird von internationalem urheberrecht geschuetzt. allen ausser dem/der empfaenger/-in ist untersagt, eine ko

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
. Instead, > I received "use javascript". Okay... but that's not a php solution, right? > > Cheers, > > tedd > > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) &g

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
2009/8/17 tedd > At 4:10 PM +0100 8/17/09, Luke wrote: > >> What would be really cool is if someone wrote a PHP script that generates >> some Javascript code that could do this. >> >> I mean while we're on the subject of complicating things ;) >> >>

Re: [PHP] Another date exercise

2009-08-17 Thread Luke
2009/8/17 Luke > > > 2009/8/17 tedd > >> At 4:10 PM +0100 8/17/09, Luke wrote: >> >> What would be really cool is if someone wrote a PHP script that generates >>> some Javascript code that could do this. >>> >>> I mean while we'r

Re: [PHP] Another date exercise

2009-08-19 Thread Luke
t; > "$1/$2/$3", $date); > > echo date("M j, Y", strtotime($date)) ."\n"; > > } > > > > ?> > > > > Guess you didn't like this one? Also, if you change the / to - in the > preg_replace() it should work on Euro style da

Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread Luke
; > http://stut.net/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Then I assume you would have to copy the object into another variable rather than reference the one you are trying to destroy? --

Re: [PHP] IRC and English

2009-09-01 Thread Luke
t's a English based list. > Or is it allowed to discriminate here? > > As a non-english speaker I feel very uncomfortable with this thread. > > With the best intentions for the community, sincerely yours, > > Martin Scotta > Spanish Speaker > I don't think we w

Re: [PHP] CodeWorks 09

2009-09-02 Thread Luke
just the USA :) > > -- > Peter Ford phone: 01580 89 > Developer fax: 01580 893399 > Justcroft International Ltd., Staplehurst, Kent > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visi

Re: [PHP] CodeWorks 09

2009-09-03 Thread Luke
; > Nice one, I might be able to get to that one :) Thanks, -- Luke Slater :O) this text is protected by international copyright. it is illegal for anybody apart from the recipient to keep a copy of this text. dieser text wird von internationalem urheberrecht geschuetzt. allen ausser dem/de

Re: [PHP] php File upload

2008-08-07 Thread Luke
y. > > Just my 2cents :) > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V >by William Shakespeare > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] php File upload

2008-08-08 Thread Luke
I think the sentiment is that you can't fit all of the file in the memory at once Luke Slater On 8 Aug 2008, at 07:59, Per Jessen <[EMAIL PROTECTED]> wrote: Jim Lucas wrote: What Apache starts, it reads the PHP memory limits in to the running Apache process. When you try a

Re: [PHP] php File upload

2008-08-08 Thread Luke
Maybe there is some configuration in the server somewhere causing it to incorrectly use the tmp? Luke Slater On 8 Aug 2008, at 08:48, Torsten Rosenberger <[EMAIL PROTECTED]> wrote: Hello on a linux system (Suese 10.2) with 1 GB memory its not possible to upload via http a 1 G

Re: [PHP] Re: php File upload

2008-08-08 Thread Luke
You could always program in something (perhaps in Ajax) to monitor the progress of the file upload and check for errors periodically. Luke Slater On 8 Aug 2008, at 11:55, Peter Ford <[EMAIL PROTECTED]> wrote: Per Jessen wrote: Tom wrote: Im very glad to fix this problem, but the ne

Re: [PHP] php File upload

2008-08-08 Thread Luke
Is a 1.9 gb file upload even sustainable on even a fairly small scale web application? Maybe you could implement FTP if you trust the people that want to upload the file. Luke Slater Lead Developer NuVoo On 9 Aug 2008, at 14:52, "Tom" <[EMAIL PROTECTED]> wrote: Practica

Re: [PHP] Why PHP4?

2008-08-08 Thread Luke
A friend works in a place where they use pascal as a database interface! Luke Slater Lead Developer NuVoo On 8 Aug 2008, at 16:25, V S Rawat <[EMAIL PROTECTED]> wrote: On 8/8/2008 3:59 AM India Time, _Micah Gersten_ wrote: You can't steal it, but you can't do anything wi

Re: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-09 Thread Luke
Except if paired with javadcript. Luke Slater Lead Developer NuVoo On 9 Aug 2008, at 15:09, Per Jessen <[EMAIL PROTECTED]> wrote: Boyd, Todd M. wrote: I had to use Java for the simple fact that PHP by itself cannot access the local file system in a way that allows for the partial l

Re: [PHP] If Column Exists

2008-08-17 Thread Luke
gt; > > > > Thanks > > > > > > > Use the information_schema: > > > > SELECT COUNT(*) AS column_exists FROM information_schema.COLUMNS WHERE > > TABLE_SCHEMA='db_name' AND TABLE_NAME='table_name' AND > > COLUMN_NAME='

Re: [PHP] Re: SOAP - return a list of items

2008-08-17 Thread Luke
> > > > > > > > It seems like I am just missing something somewhere. > > Anyone able to help? > > -- > -Dan Joseph > > www.canishosting.com - Plans start @ $1.99/month. > > "Build a man a fire, and he will be warm for the rest of the day. > Light a man on fire, and will be warm for the rest of his life." > -- Luke Slater

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

2008-08-18 Thread Luke
Which gd package did you install? Php5-gd worked for me. Could be something like it trying to install a php4 module onto php5 Luke Slater Lead Developer NuVoo On 18 Aug 2008, at 15:47, Chantal Rosmuller <[EMAIL PROTECTED]> wrote: I did, but it doens't help On Thursday 14 August

Re: [PHP] Re: Sale 79% OFF !!!

2008-08-21 Thread Luke
y Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mandriva Linux Contributor [http://www.mandriva.com/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread Luke
Commander) > > can > > find his way around. > > * Easily copiable and deployable. As in can be used by more than one > unit. > > > > -- > > I'm going out to find myself, if you see me here, keep me here untill I > can > > catch up > > > > If I haven't said so already, > > > > Thanks > > Byron > > > > > > -- > Feh. > -- Luke Slater

[PHP] DNL by value

2008-08-26 Thread Luke
Hi everyone, I was wondering if there is a way to create a dnl (or an array?) with all the entries in an XML with a certain value in a certain tag in PHP DOM? Thanks a lot. Luke

Re: [PHP] Google Chrome

2008-09-02 Thread Luke
than you do now. > > -Stut > > -- > http://stut.net/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] Re: Google Chrome

2008-09-03 Thread Luke
thr.ie/ > > Day Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mandriva Linux Contributor [http://www.mandriva.com/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] CMS-Blog system

2008-09-03 Thread Luke
rectory (= users subdomains) would include this > "cms-core" file with some individual settings. Is there better idea? > > I appreciate your discussion on this topic. > > Martin Zvarik > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] Header() - POST

2008-09-05 Thread Luke
POST requests in Ajax (or without in js) is straight forward. On the iPod now but I'll POST an example later. Get it? Luke Slater Lead Developer NuVoo On 5 Sep 2008, at 18:14, mike <[EMAIL PROTECTED]> wrote: On Fri, Sep 5, 2008 at 9:20 AM, Boyd, Todd M. <[EMAIL PROTECTED]>

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-11 Thread Luke
tp://www.tribalogic.net/] > Open Source: > Mandriva Linux Contributor [http://www.mandriva.com/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] Header() - POST

2008-09-11 Thread Luke
ore. > > the reply was on his original attempt to header("POST: /foo") ... that was > it. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Luke
t; if it hasn't already. > > >> If you wanted to combine conditions, you could do this: >> >> switch (1) >> { >> case $i==-2: >> case $i==-1: >> case $i==0: >> >>echo "i is less than 0 but greater than -3 and is a counting number >> (i.e., no fraction)"; >>break; >> >> case $i==1: >>echo "i equals 1"; >>break; >> >> case $i==2: >>echo "i equals 2"; >>break; >> } >> >> >> Typed without checking and after my vacation. >> >> Cheers, >> >> tedd >> >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater

  1   2   3   >