[PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
then gives me in PHP 0.00104167 = 1.25 / (12 * 100); -2.170138889 = 25000 * ( 0.00104167 / (1 - (1 + 0.00104167) ^ -12)) :: ^ is the problem ... The solution SHOULD be 2,097.47 ... Not ­2.17 Would be willing to help correct this and make it valid in PHP? -- St

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Right ... But that is producing even funkier results... doing pow( (1-(1+$nMonthlyInterest)) , ($iMonths*-1) ) ; Gives me : 4.2502451372964E-35 = 25000 * (0.00104167 / 6.1270975733019E+35); -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Eric ... I LOVE YOU... Thanks -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- > From: Eric Gorr <[EMAIL PROTECTED]> > Date: Fri, 19 Sep 2008 16:13:49 -0400 &

Re: [PHP] Google Checkout

2008-09-24 Thread Stephen Wellington
Richard Heyes > > HTML5 Graphing for FF, Chrome, Opera and Safari: > http://www.phpguru.org/RGraph > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Stephen Wellington 07956 042387 01865 280000 ext

[PHP] Required files not being parsed properly...

2008-10-06 Thread Stephen Johnson
Produces what you see here : http://www.thumbnailresume.com/index.html?allow=1 Any one have any thoughts on what is going on? -- Stephen Johnson c | eh The Lone Coder office: 562.366.4433 fax: 562.278.0133 http://www.thelonecoder.com continuing the struggle against bad

Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Stephen Johnson
t; <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson >> <[EMAIL PROTECTED]> wrote: >>> OK .. I am upgrading to PHP5 on a clients box, and after doing so I have >>> run into the problem that files that get br

[PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
n't find a script for (or you've found a script but it could really use improvement or some competition, so we don't get a monopoly :-))? Any help would be very...helpful. Thanks for your time! :-) Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing

RE: [PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
Hah, no, actually I'm going to distribute it for free so I probably will make little to nothing. Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: Stuart [mailto:[EMAIL PROTECTED] - Sent: Wednesday, January 28, 2004 5:47 PM - To: Stephen Craton - Cc: 

RE: [PHP] Ideas Kindly

2004-01-28 Thread Stephen Craton
Ah, yes, I was looking at something like this earlier but more or less on the lines of strictly match making which I have no experience in. But yeah, a social network script would be a good idea. Thanks for the suggestion, I will continue research in other fields as well. :-) Thanks, Stephen

[PHP] Act as a Server

2004-01-31 Thread Stephen Craton
y help here would be appreciated. I don't think this has been done before, or else I would have read their code and seen how they did it. Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Act as a Server

2004-01-31 Thread Stephen Craton
Well, what point is a mailing list if you have to go onto a website to reply to something? That'd be more or less a forum... Thanks, Stephen Craton http://www.melchior.us - -Original Message- - From: DvDmanDT [mailto:[EMAIL PROTECTED] - Sent: Saturday, January 31, 2004 8:30 PM

[PHP] What's the use in OOP?

2004-03-29 Thread Stephen Craton
it now? What does it have to offer then just creating files full of functions to include later like I've always done? Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Stephen Craton
ut it really seemed like a waste since it was such a small basic script. I never really find myself re-needing code except for database connectivity and calling the database and stuff like that. Thanks again for all the replies and helpful information. Thanks, Stephen Craton http://www.melchi

[PHP] PHP has a bug...?

2004-04-05 Thread Stephen Craton
x27;s the code I'm using: $x = (-1 * $b) / (2 * $a); if($x == -0) { $x = 0; } I've fixed it for now by putting the if statement, but I'm not sure why it's giving me -0. Than

[PHP] __PHP_Incomplete_Class Errors...

2004-10-26 Thread Stephen Craton
s via another class this something like this: $db = new theDatabase; $user = new Users; $user->db = $db; And then, within the class, I access it as such: $this->db->query($sql); This works perfectly on my local machine, but it gets all weirded once I upload it. I have NO idea why or how

RE: [PHP] __PHP_Incomplete_Class Errors...

2004-10-27 Thread Stephen Craton
41" Line 41 calls $user->login() which is the function above. What's odd is the fact the first script call works, since the session variable gets populated. If I comment out the second call, it works fine. Anyone have any ideas? Stephen Craton [EMAIL PROTECTED] IM: [EMAIL PROTECTED] ht

[PHP] Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
ing, especially since I went into php.ini (I'm on Windows XP) and changed session.save_patch to this: session.save_path = "C:/PHP/sessiondata" Can anyone give me some input here? I think I see the problem, the whole double back slash in the file location, but I don't see ho

RE: [PHP] Re: Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
just comment that line out, granted, but it doesn't seem practical for my situation. Thanks for the suggestion though! Thanks, Stephen Craton -Original Message- From: Jerry Kita [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:03 PM To: php-general@lists.php.net Subject:

RE: [PHP] Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
Not a production server, just a development server. It doesn't bail either, it still displays the page correctly, but no sessions work, obviously. Thanks, Stephen Craton -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:24 PM To: St

RE: [PHP] Re: Apache 2.0 and Sessions

2005-01-13 Thread Stephen Craton
I didn't need to search, turns out there wasn't a folder C:\WINODWS\TEMP so I just made one and it's all fixed now. Only thing I don't understand is why it didn't change the save path when I asked it to. Oh well. Thanks for all the help people! Thanks, Stephen Crat

[PHP] Appologies

2005-01-15 Thread Stephen Craton
. Once again, sorry for anyone affected. Thanks, Stephen Craton http://www.melchior.us

[PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Stephen Johnson
TECTED]> wrote: > Yes, because I will create a field within the for loop, and the > options of the select should be letters. > > -- > MIGUEL GUIRAO AGUILERA > Logistica R8 - Telcel > Tel: (999) 960.7994 > Cel: 9931-6 > > - Mensaje o

Re: [PHP] Concept ional question

2005-06-29 Thread Stephen Johnson
Personally I am an organization freak so I tend to do the first option - store the images in individual folders, generally using the unique username to create the folder itself. That way when I need to look at a group of images/files/whatever for that user, I can just pull up their directory. I s

Re: [PHP] Conceptional question

2005-06-29 Thread Stephen Johnson
> > Any rough estimates what number of images would be too much? > and does anyone think i should make folders for each user? > Each user is limited to max 3mb of pics though... > > Thanks, > Ryan Personally I believe it is doubtful that you would ever reach the limit unless you where going to

Re: [PHP] cannot connect to MySQL server and not sure why

2005-07-14 Thread Stephen Johnson
Where do you populate $success ? It looks too me that $success would always be empty no matter whether you connected or not. On 7/14/05 8:27 AM, "Bruce Gilbert" <[EMAIL PROTECTED]> wrote: > mysql_pconnect ($mysql_host, $mysql_user, $mysql_password); > if (!$success) &

Re: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-18 Thread Stephen Allen
On Tue, Jul 12, 2005 at 09:23:59PM +0300 or thereabouts, Ahmed Saad wrote: > Hi all, > > I've been around this list for a month or something but i just > discovered today that all my replies weren't sent to the list but > instead to the individual who sent the message. I haven't administered > any

Re: [PHP] PHP script for removing/forwarding suspected spam from pop3 mailbox

2005-08-12 Thread Stephen Allen
On Thu, Aug 11, 2005 at 02:39:57PM +0100 or thereabouts, I. Gray wrote: > Hi. > > I'd like to find or write a script that I can run every so often (hourly > for example) from cron that will check my pop3 mailboxes for any emails > with SPAM in the subject line and either delete them or f

Re: [PHP] mail()

2005-08-17 Thread Stephen Johnson
o I can receive mail? I am using my ISP's POP > server but I dosent send back because my e-mail is [EMAIL PROTECTED] How > do I setup my own domain and does it cost money for an e-mail? -- Stephen Johnson The Lone Coder [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Stephen Johnson
On 8/18/05 9:06 PM, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > Maybe if everybody did this, MS would realize how broken their > cache-handling is and fix it... Nah. They'd just break it even worse. Is someone feeling a bit cynical tonight? Nah. Not

Re: [PHP] Error #1136

2005-08-24 Thread Stephen Johnson
Can you include the SQL statement that is creating the error? The error basically means you are trying to put more data into the dB then you have data cells for. For instance : Good sql statement: $sql = "insert into table (name, address, city, state, zip) VALUES ('$name', '$address', '$city',

Re: [PHP] Automatically generated emails

2005-08-29 Thread Stephen Johnson
Ravi - http://www.php.net/mail That page should get you on your way. http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: Ravi Gogna <[EMAIL PROTECTED]> > Reply-To: <[EMAIL PROTEC

Re: [PHP] need information on sending email using php

2005-09-02 Thread Stephen Johnson
form. My question is How do I do that? > > the webserver that I will be placing this page on has php ver 4.4.0 on it. > > Any help would be appreciated > > Paul -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTEC

Re: [PHP] mixing $_POST and $_GET vars

2005-09-09 Thread Stephen Johnson
ter approach?? > > or do i really need/wind up doing something like > > if ($_GET['foo'])... > > if ($_POST['apple'])... > > and just have a mix of both methods within the code... > > thanks > > -bruce > [EMAIL PROTECTED] -- Stephen

Re: [PHP] searching through a mysql db/tbl

2005-09-10 Thread Stephen Johnson
help you with these questions better then the folks here on the PHP list. > > thanks > > -bruce > [EMAIL PROTECTED] -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTECTED] http://www.thelonecoder.com *Continuing the struggle against bad code* -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
On 9/12/05 12:39 PM, "Peppy" <[EMAIL PROTECTED]> wrote: > for ($i = 1; $i <= 6; $i++) { >Is it possible to increment $i by 5? for ($i = 1; $i <= 6; $i+5) { -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption jour

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
code */ ?> > From: "M. Sokolewicz" <[EMAIL PROTECTED]> > Date: Mon, 12 Sep 2005 23:48:05 +0200 > To: Stephen Johnson <[EMAIL PROTECTED]> > Cc: Peppy <[EMAIL PROTECTED]>, > Subject: Re: [PHP] incrementing in a for loop > > >> >&g

Re: [PHP] DOM XML compatible PHP4 & PHP5

2005-09-13 Thread Stephen Leaf
On Monday 12 September 2005 02:08 pm, Florent Monnier wrote: > Hi, > > Is there a way to make dom xml applications compatible PHP4 and PHP5? > > Thanks You can use the PHP_VERSION predefined constant or the function_exists(string) http://us2.php.net/manual/en/function.function-exists.php What I

Re: [PHP] php/mysql object id question..

2005-09-14 Thread Stephen Leaf
On Wednesday 14 September 2005 03:42 pm, bruce wrote: > hi... > > i have the following psuedo code... > > i'm showing the pertinent parts, and eliminating the rest... > > -- > class sql > { > >    function sql(...) >    { >       return false > >       mysql_

Re: [PHP] mysql query

2005-09-14 Thread Stephen Leaf
On Wednesday 14 September 2005 07:36 pm, Jesús Alain Rodríguez Santos wrote: > I have a table colum in mysql with two fields: day and month. I > would like to know if it's possible to make a query where I can > determine if exist days before to a selected day, for example: > if I have in my table:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-14 Thread Stephen Leaf
On Tuesday 13 September 2005 05:52 pm, Ryan A wrote: > [x] I never work with PHP 4 anymore, all my work is with PHP 5 so far I've not found any hosts that do PHP5, however I do all my own hosting anyway. I've switched to use PHP5 because I was interested in doing XSL, and the concept of doing ob

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-16 Thread Stephen Leaf
k... "I did just click the X.. so Yah..." Just my 2 cents. I'm sure you guys will come up with something.. either way PHP is the only language I'll use for a website. Thank you very much for the detailed reason behind this. On Friday 16 September 2005 09:28 am, Rasmu

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 05:27 am, Jasper Bryant-Greene wrote: > Ken Tozier wrote: > > I don't see any obvious DOM method for including scripts or css links > > like "". Do you have > > to put them in some other type of node like a processing instruction or > > a comment? > > $dom = new

Re: [PHP] REGEX Help Please

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 09:03 am, Shaun wrote: > Hi, > > I am trying to implement a regular expression so that I have a number > between 0.00 and 1.00. the following works except I can go up to 1.99 > > $regexp = "/^[0-1]{1}.[0-9]{2}/"; > > Can anyone help here please? > > Thanks $regexp = "/^

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 12:25 pm, Ken Tozier wrote: > > I would be extremely careful with this.. because sadly PHP's XML > > generator > > uses the short form whenever possible. > > will *NOT* work in most browsers such as FireFox. > > Will work. > > Thanks for the heads up. Looks like if you

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 06:04 pm, Ken Tozier wrote: Not a bad Idea. You might like this function I made then ;) function createElement($parentNode, $name, $elements=array()) { $node = $this->Dom->createElement($name); for ($x=0; $x < count($elements); $x

Re: [PHP] security/sql issues with php

2005-09-21 Thread Stephen Leaf
On Wednesday 21 September 2005 07:45 pm, bruce wrote: > i agree with what you're saying... > > my primary concern was to make sure that there wasn't/isn't something going > on that i haven't seen... up to know, i'm ok with what you're saying. > > however, i still don't have a good answer to my ques

Re: [PHP] Problems with headers

2005-09-21 Thread Stephen Leaf
On Wednesday 21 September 2005 09:34 pm, Graham Anderson wrote: it doesn't look like there is anything wrong with your code. what you might check however is, is there a space or a newline before thanks Chris :) > > I changed the spaces but am still getting the same output errors: > Warning: Cann

Re: [PHP] Problems with headers

2005-09-22 Thread Stephen Leaf
On Thursday 22 September 2005 12:10 am, David Robley wrote: Not sure if you can attach files however to make 100% sure I'm attaching a working copy of your script. I did modify it just a bit. However the code that you gave us initially worked flawlessly under CLI PHP. > Graham Anderson wrote: >

Re: [PHP] Subtracting dates w/o database interaction (MySQL)

2005-09-23 Thread Stephen Leaf
$date = mysql date field 2005-09-23 for example $difference =ceil((strtotime($date) - time()) / 86400); strtotime is far nicer than mktime when you already have a date field ready. On Friday 23 September 2005 03:10 pm, Philip Thompson wrote: > On Sep 23, 2005, at 11:16 AM, Chris W. Parker wrote:

[PHP] Error with DOMDocument->saveXML()

2005-09-28 Thread Stephen Leaf
is. I'd figure this part out myself but I'm due to get off to work in... -4 mins (or 4 mins ago :)). Thanks, Stephen Leaf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
On Thursday 29 September 2005 04:20 am, Andy Pieters wrote: > Hi > > > Fatal error: Method Document::__toString() must return a string > > value in /srv/www/localhost/htdocs/db/index.php on line > > 140 > > That's just what it says, check your program flow. > > You overrided the tostring function

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
guess nows a better time than ever. hopefully I can duplicate this behavior in a smaller class that I can just post to the list. > > "Stephen Leaf" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > On Thursday 29 September 2005 04:20 am, Andy

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
On Thursday 29 September 2005 12:26 pm, Stephen Leaf wrote: I have figured it out! My guess couldn't have been more _wrong_. Here is all you need to recreate the Error. There is only 1 value that is off. in the DOMDocument I gave it the wrong encoding type. uft-8 .. it should read

Re: [PHP] Can I call .html file as a form action instead of .php?

2005-10-03 Thread Stephen Johnson
ent, only the file name > is different. But if I do the former way(call editStaff.html as a form > action), it doesn't work. It calls some files but looks horrible. > So the advice of the guy was wrong, or did I do something wrong? > > Thanks, -- Stephen Johnson The Lone Coder ht

Re: [PHP] domit and XML

2005-10-04 Thread Stephen Leaf
On Tuesday 04 October 2005 12:42 am, Erik Barba wrote: > hi im new in the list i dont know where to write the email so i did it > here, i am having a problem > I have a xml file and im parsing with domit 1.0 but im from mexico, and we > use " é í ó ú á ñ " > the xml acept it but when the php show

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread Stephen Leaf
On Tuesday 04 October 2005 08:15 pm, John Taylor-Johnston wrote: > Any idea why I'm getting this error, and only on this page? I have the > same header on every other page? > http://testesp.flsh.usherb.ca/thingstodo.html > The page contains a \n before I start my > session_name( 'CCLTrolley' ); >

Re: [PHP] PHP and XML

2005-10-05 Thread Stephen Leaf
On Wednesday 05 October 2005 06:20 pm, [EMAIL PROTECTED] wrote: > My company recently installed google's search appliance and I am working > on some scripts to display the search results on our various websites. > The problem I'm having is using the XML parsing functions I've used on > other pages

Re: [PHP] PHP and XML

2005-10-05 Thread Stephen Leaf
On Wednesday 05 October 2005 09:46 pm, Robbert van Andel wrote: > Thanks, I'm investigating XSL and it looks pretty good. We use an RPM > based installation of PHP version 5.0.4. I see on PHP.net's website that > XSL comes standard with PHP 5 and you need to enable it by adding the > argument --w

Re: [PHP] Obsession with BC

2005-10-11 Thread Stephen Leaf
On Tuesday 11 October 2005 01:56 pm, GamblerZG wrote: > > On the final hand, if you pass the pages off from apache to a php > > exe or module.. How does Apache know which one to pass it to? Php4 or > > Php5? > > By the processing instruction target. That's what it's there for. I > guess php 5 and 4

Re: [PHP] outputting xml with DOM and ampersands

2005-10-12 Thread Stephen Leaf
On Wednesday 12 October 2005 12:40 pm, jonathan wrote: > I am trying to output a file using DOM with php5. > > It gives me an error with something like the following: > farm lettuces with reed avocado, crème > fraîche, radish and cilantro Are you doing a: DOMDocument::loadXML('farm lettuces with

Re: [PHP] Is DOM the right thing for the job?

2005-10-13 Thread Stephen Leaf
On Thursday 13 October 2005 12:30 am, Chris wrote: > Snag #1) > The DOMDocument seems to represent an entire page, all I'd like to do is > represent a Form tag and it's internal HTML. I can actually get it to > work that way, but it seems like it's the wrong way to go about things. being how XML wo

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Stephen Leaf
On Thursday 13 October 2005 01:13 am, Johan Grobler wrote: > while ($row = mysql_fetch_array($sql_result)) > { > echo" method=\"post\"> > >".$row['LITERATURE_title']." - ".$row['res_fname']." > ".$row['res_lname']." ... > > Everything works as long as $row['LITERATURE_title'] is one word, see thi

Re: [PHP] 电子传单 ,最廉价的宣传方式

2005-10-13 Thread Stephen Johnson
请停止发送电子邮件到这个列表, 或我将被迫使解开一千头骆驼蚤入您的腋窝。 http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad code */ ?> > From: KOKO电子传单 <[EMAIL PROTECTED]> > Date: Fri, 14 Oct 2005 06:33:57 +0800 > To: > Subject: [PHP] 电子

Re: [PHP] OOP Newbie - why does this not work?

2005-10-20 Thread Stephen Leaf
Try removing the /* and */ Other than that, check your brackets. you never closed the get() function's On Thursday 20 October 2005 09:35 pm, Bob Hartung wrote: > Hi all, >I'm trying to get started in OOP with PHP. I have the following > short code snipped. I'f I comment out the 'class Test'

Re: [PHP] OOP Newbie - why does this not work?

2005-10-20 Thread Stephen Leaf
Sorry.. 1 more thing. php5 does not use var. use public $variable=value; instead. public is only within a class however. you cannot use it outside. On Thursday 20 October 2005 09:35 pm, Bob Hartung wrote: > Hi all, >I'm trying to get started in OOP with PHP. I have the following > short code

Re: [PHP] OOP Newbie - why does this not work?

2005-10-20 Thread Stephen Leaf
.." > > Again, blank page. Funny though, even the ... html block > is not rendered. Again, same beavior on 2 FC4 and 1 Win32 install. > > Tnx > > Bob > > Stephen Leaf wrote: > > Sorry.. 1 more thing. > > php5 does not use var. > > use public $varia

Re: [PHP] OOP Newbie - why does this not work?

2005-10-21 Thread Stephen Leaf
ing a class variable _always_ in php use $this-> On Friday 21 October 2005 04:42 am, Bob Hartung wrote: > Stephen, >I copied your code and ran it. Same thing - a totally blank page. > Therefore I have to surmise that there is a a) bug in the rpm I > downloaded or more likely b)

Re: [PHP] fopen

2005-10-25 Thread Stephen Leaf
if all you want to do is read the entire file try $contents = file_get_contents($filename); On Tuesday 25 October 2005 11:54 pm, John Taylor-Johnston wrote: > It does what I want, but I worry 4096 may not be big enough. Possible? > Is there a way to detect the filesize and insert a value for 4096?

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Stephen Leaf
Last I checked XHTML *is* HTML only with my stricter rules applied. most notably the XML rules. "XHTML is a stricter and cleaner version of HTML." -- W3C XHTML tutorial. (http://www.w3schools.com/xhtml/default.asp) As for using PHP to transform the XSL. I've been doing this with a lot of succes

Re: [PHP] Template style question

2005-11-06 Thread Stephen Leaf
One idea that you might try. is XSL. instead of doing %var1% and doing a replace. you can do things like Doing this also completely separates presentation logic from the code. you can do other fun things like loops also. I will warn you by saying that XSL in the beginning is a real headache to fi

Re: [PHP] form question??

2005-11-07 Thread Stephen Leaf
I wrote a xsl stylesheet to do this. takes the xml and whips it up, into a standard layout. Don't believe I mentioned this but I might have at some point. Register example: Thank you for Registering!

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
For security.. *never* store the password in a cookie.. if you must... instead do some sort of encryption on it and some other value store that and use it for verification. On Friday 11 November 2005 05:43 am, sunaram patir wrote: > Hi, i am having problem with internet explorer. i am working on

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
, especially on a shared server, but it's not > necessarily in the category of "Never do this" > > On Fri, November 11, 2005 9:48 am, Stephen Leaf wrote: > > For security.. *never* store the password in a cookie.. > > if you must... instead do some sort of enc

Re: [PHP] Re: please shed some light on SQLsyntax error

2005-11-13 Thread Stephen Leaf
I believe it's proper SQL syntax to use a double quote " tho for column names. I've heard of backtick working.. but in any example I've ever seen both in classes and on mysql and postgresql sites they always use "" I don't use `` so I'm not sure how widely they are accepted. Just ran a test in s

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Stephen Calnan
> > The only problem with this is that it would take "444" which is not a > > valid call. Wikipedia defines a HAM call sign here: http://en.wikipedia.org/wiki/Call_sign#Amateur_radio A regex based upon this definition might be: /\b(([A-Z]{1,2})|([A-Z][0-9]))[0-9][A-Z]{1,3}\b/ I tested this out

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-22 Thread Stephen Leaf
I use the fileinfo pecl. http://pecl.php.net/Fileinfo how to get a mime type: $info = new finfo( FILEINFO_MIME ); $mime = $info->file($filename); then my extention grabber: function getExtention() { switch ( $this->mimeType ) { case

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-22 Thread Stephen Leaf
The reason why I suggested the fileinfo idea was because IE and mozilla report the mime type differently. image/x-jpeg vs image/jpeg I believe it is. using fileinfo just standardizes what you need to check for. On Tuesday 22 November 2005 09:56 pm, twistednetadmin wrote: > I don't think that is

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-23 Thread Stephen Leaf
I'd say because it's been depreciated. LXXVI. Mimetype Functions Introduction Warning This extension has been deprecated as the PECL extension fileinfo provides the same functionality (and more) in a much cleaner way. On Wednesday 23 November 2005 12:45 pm, Ben wrote: > Curt Zirzow wrote: > >

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Stephen Johnson
You would access them by declaring them as regular variables and then using the regular variables in your code. As a side note - please do NOT turn global variables on in your php.ini file. There is a good reason for why it is shut off and "good" php does not need to have it turned on. Hope

Re: [PHP] Re: Client-side file uploading

2005-11-27 Thread Stephen Leaf
You can change values of the php.ini file within a .htaccess http://www.php.net/manual/en/ini.core.php For example. php_value upload_max_filesize "50M" php_value post_max_size "50M" On Sunday 27 November 2005 05:59, Ajree wrote: > Errata: > > I don't know what I was thinking about when I wrote '

Re: [PHP] A basic question

2005-11-27 Thread Stephen Leaf
because the time.php is parsed by php before it's sent to the client. the time.html is not it's assumed to be a static webpage and just sent as-is to the client. On Sunday 27 November 2005 12:46, Oil Pine wrote: > Hi, > > I am new to php scripting and would like to ask you a basic question. > > C

Re: [PHP] question

2005-11-27 Thread Stephen Leaf
On Sunday 27 November 2005 12:34, cheeto borje wrote: > Hello, > >I wanna ask you about : > >1. When you say server, does it mean my CPU? By CPU I assume you mean your computer and not the Central Processing Unit. being a CPU is the small chip inside your computer attached into the motherb

Re: [PHP] Howto search in SQL for a specific character?

2005-11-29 Thread Stephen Johnson
Try this : $sql = "SELECT nameOfPedigree FROM tbpedigrees WHERE nameOfPedigree like "'%"; The % is a wildcard and will give you the results you want. http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL PROTECTED] continuing the struggle against bad

Re: [PHP] How would you write this?

2005-12-03 Thread Stephen Leaf
I personally would use javascript to evaluate the form and highlight the fields onsubmit. However as a backup I'd do the evaluating in php and add an error label under the field. echo "Password"; if ($noPass) echo "You must supply a password"; Something along those lines. On Saturday 03 Decem

Re: [PHP] Could you help me to solve this problem?

2005-12-04 Thread Stephen Johnson
er with php upload script in > http://us3.php.net/features.file-upload, I can't access the file with web > browser. I get error message as "403 Forbidden" or "You are not authorized > to view this page". > However, there is no such problem when i using FTP to

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention. And because it's part of KDE all the kioslaves come with. Which means editing sites over ftp, ftps, ssh and many others is possible. Like the Vim guy said. DEs? who needs them :) On Tuesday 06 December 2005 08:15, Jeff McKeon

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
8, David Grant wrote: > Stephen Leaf wrote: > > KWrite part of KDE. Notepad with Syntax Highlighting and AutoIndention. > > And because it's part of KDE all the kioslaves come with. Which means > > editing sites over ftp, ftps, ssh and many others is possible. > > Li

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Stephen Leaf
Wow.. Linux must really be real then.. look at all the distributions , kernel patch sets, Window managers, etc. # of programs means nothing. it's the quality of the programs. And yes I am a linux user ;) On Tuesday 06 December 2005 13:24, Jay Blanchard wrote: > [snip] > And for those interested

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Stephen Leaf
had about 15 in my inbox this morning :) On Wednesday 07 December 2005 08:36, Jay Blanchard wrote: > [EMAIL PROTECTED] ? > > I am getting failure notices out the wazoo for some very old messages to > the general list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Class Constant PHP 5

2005-12-07 Thread Stephen Leaf
Dynamically setting a constant would break the very rule of it being a constant in the first place. a constant is something that does not change it cannot be dynamic. On Wednesday 07 December 2005 12:00, Jeffrey Sambells wrote: > is there a way to dynamically define a class constant during runtim

Re: [PHP] get XSLT on server without Sablotron

2005-12-09 Thread Stephen Leaf
should come default with PHP5 http://www.php.net/manual/en/ref.xsl.php On Friday 09 December 2005 07:56, Gerben wrote: > Is there a way to get some sort of XSLT working on my server? > > safe-mode is off > run under apache (php_sapi_mode=apache) > dl() is enabled > I only have FTP access > server

Re: [PHP] CSS and Tables

2005-12-09 Thread Stephen Leaf
Not IE friendly but you could always do table.table1>tr>td { css here; } IE will simply ignore it.. even if you set other rules that it _does_ understand. :) On Friday 09 December 2005 21:07, Curt Zirzow wrote: > On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote: > > This question

Re: [PHP] CSS and Tables

2005-12-09 Thread Stephen Leaf
> > Would also do fairly well, but , since this would apply to all tds > within the table tag (even the cells of any embedded tables) may require > some creative spefification of values to work properly > > Chris > > Stephen Leaf wrote: > >Not IE friendly but you coul

Re: [PHP] Variable $_POST vars?

2005-12-10 Thread Stephen Johnson
ideas? > > I can't seem to get anything to work > > Chris What type of field are you using? In these cases I have always passed the data in an array and passed the post into an array variable which I could then increment. -- Stephen Johnson The Lone Coder http://www.

Re: [PHP] Variable $_POST vars?

2005-12-10 Thread Stephen Johnson
e.Rock" <[EMAIL PROTECTED]> wrote: > Here is an example of one of the fields: > > > I'm looping thru this form several times, so each time the name gets > incremented. Do you have an example of what your talking about? -- Stephen Johnson The Lone Coder http://ww

Re: [PHP] asianwhiteskin beauty product

2005-12-20 Thread Stephen Leaf
On Tuesday 13 December 2005 04:09, Raz wrote: > Can I have some breast enlarger please? Larger is not always better ;) Is there any other men who prefer smaller/normal sized breasts? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] The Big Date and Time Debacle

2006-02-07 Thread Stephen Martindale
I am having great difficulty understanding dates and times with PHP and MySql. As far as I understand them, the PHP date and time construct is timezone and DST aware, but MySql's DATETIME and TIMESTAMP fields are not. I believe that this is where my confusion originates from. After searching

Re: [PHP] The Big Date and Time Debacle

2006-02-08 Thread Stephen Martindale
Christopher Taylor wrote: Stephen Martindale wrote: I am having great difficulty understanding dates and times with PHP and MySql. As far as I understand them, the PHP date and time construct is timezone and DST aware, but MySql's DATETIME and TIMESTAMP fields are not. I believe that

[PHP] Advanced PHP Chat

2006-02-08 Thread Stephen Martindale
always want to know whether the way I have done something is the right way to do it. I realized that this is, quite often, a subjective debate and subject to many opinions. Sometimes, a good academic argument about how to do a particular thing properly leads to much more efficient or elite cod

Re: [PHP] function list

2001-02-01 Thread Stephen Edberg
On Thu, 1 Feb 2001, Josh G wrote: > http://www.php.net/quickref.php is probably the best you'll get. no > descriptions, but it _is_ a list of all the functions. > > Gfunk - http://www.gfunk007.com/ > See: http://zugeschaut-und-mitgebaut.de/php/ -steve > - Origi

<    2   3   4   5   6   7   8   >