[PHP] Reading log files.

2002-02-04 Thread Jared
ve an idea on how to do this? Thanks in Advanced Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP-CGI: custom 404 error?

2004-10-15 Thread Jared
I'm running PHP as CGI instead of as an apache module because my hosting 1) suggests it and 2) this way I can compile my own PHP with whatever options I want, including a custom php.ini. Works great except when I load a page that doesn't exist, such as foo.php, I get "No input file specified."

[PHP] Illegal characters in HTML form element names.

2002-09-11 Thread Jared Williams
Hi, The HTML standard defines the set of characters that are valid in form element names. It does not include [ or ] and yet this seems to be the only way to get a set of form elements grouped into an array for server side processing. Why doesnt PHP do (Perl/ASP) automatically create an array

RE: [PHP] Illegal characters in HTML form element names.

2002-09-17 Thread Jared Williams
ems to me, the rules for valid IDs & NAMEs are the same... -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 12:43 To: 'Jared Williams'; [EMAIL PROTECTED] Subject: RE: [PHP] Illegal characters in HTML form element names. > -Or

RE: [PHP] PHP code in a database

2002-06-07 Thread Jared Boelens
This might be what you need. http://www.php.net/manual/en/function.eval.php -Jared -Original Message- From: Jean-Rene Cormier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP code in a database I'm trying to make a script th

RE: [PHP] SMS with PHP

2002-06-10 Thread Jared Boelens
I had this exact need but I was solved partially by my cell phone provider. I have verizon and verizon actaully assigns each phone an email address if you have text messenging. So all i had to do was send an email to that address and it would go to my phone in about 30 seconds or so. -Jared

RE: [PHP] storing html in a db

2002-06-10 Thread Jared Boelens
You might consider using output buffering in order to accomplish that goal. http://www.php.net/manual/en/ref.outcontrol.php You could buffer the entire page and store the buffer into the DB at the end of the page load. -Jared -Original Message- From: W. Enserink [mailto:[EMAIL

RE: [PHP] forcing file downloads

2002-06-12 Thread Jared Boelens
20% represents a space. -Jared -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 9:01 AM To: php Subject: [PHP] forcing file downloads I know this has been discussed many times, but I've been hunting through the archives with very l

[PHP] Accepting data from URL Parameters

2003-09-24 Thread Jared Steckel
s in the script? Should I construct the link differently? Is there a completely different method I'm missing altogether? Thanks so much in advance for any help you could provide! Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF error with pdf_open_png

2001-01-11 Thread Jared Howard
I'm trying to include images in my PDF file using pdf_open_png. (I've also tried using pdf_open_gif and pdf_open_image_file.) But when I add the line: $logo = pdf_open_png($pdf, "$CFG->imagedir/logo.png"); I get the error: Cannot find server or DNS Error (The page cannot be displayed), and

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Jared Howard
>Its also very handy when you get an error like that to check you log files, >usually when you get no error and no page like that, php has segfaulted >apache, might want to check :) there might be other errors in the log files >to help you too. > >Chris Lee >Mediawaveonline.

[PHP] MYSQL start an auto_increment at a certain number

2001-01-11 Thread Jared Howard
In MySQL, I need to know how to create a row in a table that is an auto_increment and starts at a certain number. I've tried using: CREATE TABLE something ( id_numberint default '5000'auto_increment, UNIQUE id_number (id_number) ); but it sets the default to NULL. How do I do that?

[PHP] rewriting the browser's url

2001-01-13 Thread Jared Howard
I need to know how to be able to eliminate the querysting portion of the URL that is displayed on the users browser. I don't want it possible to click refresh and reenter in the same querystring that was used previously (eg. php runs a mysql query of INSERT based on the querystring which only sho

[PHP] firewalls & MySQL sessions

2001-02-26 Thread Jared Howard
I'm having trouble establishing MySQL sessions when the client is running from behind a remote firewall. (I.e., the MySQL server has a static internet IP, but the remote client which is accessing, or better said, attempting to access the MySQL database via PHP in their browser can't seem to estab

[PHP] Shorten String or encode/decode a string

2001-05-03 Thread Jared Howard
I want to shorten a string that I'll be throwing through the url. It's not so much that it's too long, but it's ugly. What it is, is my query string that I need to pass through to different pages, i.e. viewing multiple pages. Anyway, I was looking at encode and decode features but not really s

RE: [PHP] shell command

2002-05-15 Thread Jared Boelens
Here are the functions you need: http://www.php.net/manual/en/ref.exec.php -Jared -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:30 AM To: PHP-General Subject: [PHP] shell command How to execute dos\winnt command in php script, i

RE: [PHP] SQL Server test tool

2002-05-15 Thread Jared Boelens
I would imagine that you could use fsockopen to open a socket connection on that port in order to test it. -Jared -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] SQL Server test tool Has

[PHP] Problems with mail() w/Win2k

2002-05-16 Thread Jared Boelens
= localhost; the server has its own smtp service running on it I also tried: SMTP = mail.mydomain.com; This genereated the same problem. I have been using PHP with Apache forever but I rarely use it on Windows so any insight into this problem would be great. Thanks in advance, -Jared -- PHP

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jared Boelens
/null I have never had a problem with this method, although I am sure it has a higher overhead than compiling as a binary and directly calling php. -Jared -Original Message- From: Henry Grech-Cini [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 6:12 AM To: [EMAIL PROTECTED] Subject

RE: [PHP] Looking for web based email

2002-05-17 Thread Jared Boelens
This is the one my company uses: http://nocc.sourceforge.net/ I found it very easy to modify, and it fully supports attachments as well as the related RFCs. -Jared -Original Message- From: Craig [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:46 AM To: [EMAIL PROTECTED

RE: [PHP] Listing the contents of a directory in an array

2002-05-17 Thread Jared Boelens
e the always present "." and ".." directories just uncomment those two lines. -Jared -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 8:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Listing the contents of a directory

RE: [PHP] apache redirect and request

2002-05-17 Thread Jared Boelens
getenv("HTTP_HOST"); Then parse the data as you need to to get to the root of the domain. -Jared -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] apache redirect and request Hi, my i

RE: [PHP] Server error when executing mail() function

2002-05-28 Thread Jared Boelens
are like 10 headers but none of them are ended properly with CRLF. Hope this helps -Jared -Original Message- From: Paul Cuthbertson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 11:49 AM To: Tyler Longren; [EMAIL PROTECTED] Subject: Re: [PHP] Server error when executing mail

RE: [PHP] Dates

2002-05-28 Thread Jared Boelens
ime(0,0,0,$arEnd[1], $arEnd[2], $arEnd[0])); $dif = $endTime - $startTime; // in seconds That will do it but you could simplfy it with some more advanced techniques. -Jared -Original Message- From: Jeroen Timmers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:17 PM To: [EMAIL PRO

[PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
very parent var that I want to access. Thanks -Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding :: syntax)

2002-06-03 Thread Jared Boelens
The CHM version of the help file can be downloaded here: http://www.php.net/download-docs.php -Jared -Original Message- From: Jason Teagle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 12:16 PM To: php list Subject: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
ometimes it is useful to refer to functions and variables..". This lead me to believe that you could directly access VARIABLES as well as functions. I guess i was wrong. Oh well, it just means more typing for me, which means more hours, which means more $. -Jared -Original Message-

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
This may be a dumb question but, how can you be sure that the $this-> is referring to the parent classes' property and not the current class. On that note, does it really matter of which one it refers? -Jared -Original Message- From: Tobyn Baugher [mailto:[EMAIL PROTECTE

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
That is exactly what I thought, I was just looking for some reassurance. I have been working with C# lately and the syntax for classes is a lot more explicit. I wanted to make sure I wasn't making a mistake on what PHP implcitly does. Thanks -Jared -Original Message- From:

[PHP] Overriding Class functions and variables

2002-06-03 Thread Jared Boelens
etween parent->Username and child->Username. Thanks -Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL function in a Table's Column

2001-11-24 Thread Jared Howard
I'm not really sure what I should be looking for in the MySQL manual. I basically want to make a column that will do math to other columns, like in a spreadsheet program. Is it possible? And if so, what do I look for? And if you can give me an example that would be great. -- PHP General Mail

[PHP] MySQL "DISTINCT" query

2001-03-21 Thread Jared Howard
I need to retrive all column information from a DISTINCT query. But so far, I only can get one column to show by using this: SELECT DISTINCT my_column FROM my_table; which then gives me a list of my_column information and is correct, but I need all information from all columns. Querying this:

[PHP] FORM with a posting value

2001-04-06 Thread Jared Howard
I have a page with multiple form submit buttons that carry different values to do different functions and such. ... Which works great!! However, I grow tiresome of the typical button "look", and in my attempt to use an image instead: failed. Is there a way to do this? I have changed

[PHP] Unknow "Date" Format

2001-09-05 Thread Jared Mashburn
his is, or how to format it into a readable date using either PHP or MySql? Thanks Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] MySql Help

2001-09-11 Thread Jared Mashburn
m a database and only select one of each name from the column? Example. Data >Data Data Data Data Data1>Data1 Data1 Data2---->Data2 Data2 Data2 Data2 Thanks for any advice. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
ccording to the "value" of what has been selected in the first drop-down list. I have fill that I'm going in the right direction, but have run into a wall. Can anyone give me some advice in doing this miraculous feat? Thanks, Jared -- PHP General Mailing List (http://www.

RE: [PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
12, 2001 4:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected in the first drop down. You can either reload the page with the new value once the user has selected the value for the first drop down list, and go from there, or use

[PHP] Re: Weird WMV/Media Player behaviour (Loading media file twice)

2005-03-07 Thread Jared Williams
> Does anyone have any idea why this is happening and how I can avoid > this double request? Try checking the UserAgent for each request. http://support.microsoft.com/default.aspx?scid=kb;en-us;293792 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] String format best practice

2005-03-29 Thread Jared Williams
maybe slow, bit it'll be quicker than creating arrays, and rejoining. Not that either method will make a huge difference unless your doing thousands of such operations. echo sprintf('%02x %02x %02x %02x', ($dec >> 24) & 0xff, ($dec >> 16) & 0xff, ($dec >> 8) & 0xff, $dec & 0xff); Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] asking comment

2005-03-30 Thread Jared Williams
fwrite($f, 'test '.$n); fclose($f); } $n = $basename; $f = createFileWithUniqueName($n); if ($f !== FALSE) { fwrite($f, 'test '.$n); fclose($f); } Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] asking comment

2005-03-30 Thread Jared Williams
kipedia.org/wiki/Race_condition and http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/avoid-race.html. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[2]: [PHP] asking comment

2005-03-30 Thread Jared Williams
cing a warning to occur > (or having to suppress one), that avoids any sort of "race > condition". It's just the way the OP is doing it is IMHO > messy to begin with, but was obviously a solution born out of > frustration. If you think you have another met

RE: Re[4]: [PHP] asking comment

2005-03-30 Thread Jared Williams
> relatively bullet-proof uniqueness and no warning generation > / suppression. I'll take absolutely bullet-proof and handled/supressed warnings, over relatively bullet-proof. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Jared Williams
ur fingers and hoping you've got a unique filename is better? Or assume that files don't already exist in the directory? You are going against convential wisdom about ensuring unique filenames. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Jared Williams
> There has to be a better way. Something more elegant? key() http://php.net/key Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Including class of Exception in exception message

2005-04-09 Thread Jared Williams
message) { parent::__construct(get_class($this).$message); } } class AnotherException extends myException { } Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php and javascript

2005-04-11 Thread Jared Williams
or try to > sneak up on it. > > It ain't gonna work. > > 'Cuz I tried every godamn reasonable (and quite a few > UN-resaonable) ways to do that. * > Hmm, document.forms['Selection'].elements['distID[]'][0].value is perfectly valid, and should wo

RE: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Jared Williams
remember that was specifically done was alter mysql_pconnect() to call mysql_connect(). Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] XSL problem

2005-04-18 Thread Jared Williams
= > > http://www.filemaker.com/fmpxmlresult";> > 1 This is a namespaces related I think, you need to define a the namespace in the stylesheet, common place is on the element together, then use the prefix http://www.filemaker.com/fmpxmlresult"; ... Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Single SQL-statement in PHP to order...

2005-04-19 Thread Jared Williams
of the posts (doesn't matter > which order) > > SELECT *, 1 AS sequence FROM Table WHERE IDCategory = 4 UNION SELECT *, 2 AS sequence FROM Table WHERE IDCategory != 4 ORDER BY sequence ASC Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2005-04-19 Thread Jared Williams
ation makes no mention of this. > > Given this, why is the default value of arg_separator.output > '&' and not '&'? URLs don't have & in them. The & is specific escaping for _only_ XML. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Jared Williams
> Looks like mysqli is the new method of talking to mysql? > Should I be moving away from the legacy mysql_* functions? > I'm running php5 and mysql 4.1.11 on IIS5 and Apache 2. Why not use PDO :) Jared -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Jared Williams
> On 4/20/05, Jared Williams <[EMAIL PROTECTED]> wrote: > > Why not use PDO :) > > Pacific Decadal Oscillation? > > I'm stumped. PHP Data Objects http://www.php.net/pdo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Timetables

2005-04-26 Thread Jared Williams
> You just pretend that their shift happend on the date of the > start time, and that's the day you associate with that shift, > no matter when it ended. > > This simplifies everything else you're going to do with the > data/queries immensely. Just have to make sure DST doesn't cause any problems. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Round to the nearest X

2005-04-28 Thread Jared Williams
up/down to the nearest X. > I tried using > > y +/- (y mod x) > > but after I started putting in some test numbers, it didn't > always work. For example, > > 37678 + ( 37678 % 500 ) > > did not round up to the nearest 500. > 37678 + 500 - (37678 %

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jared Williams
e support for multiple character sets/encodings. [I haven't used Smarty, but I'm aware a IntSmarty had to be created to cater for things like this.] Mozilla & IE both can perform client side transforms, using processing instruction. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php newbie question with xml files

2005-05-02 Thread Jared Sherman
e and insert my lines part way through then finish the last tag. My problem is I'm looking for a and it comes up as endtag. Is there anyway to force PHP to read the .xml file as a text file so it wont strip off the xml tag information? I've used fopen with fgets and fwrite, and file wit

[PHP] PHP5 DOM & compressed xml

2005-05-04 Thread Jared Williams
Hi, Has anyone got the DOM extension to load compressed XML transparently? libxml2 apparently has this feature, but it appears not present in PHP. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 DOM & compressed xml

2005-05-04 Thread Jared Williams
Hi, Has anyone got the DOM extension to load compressed XML transparently? libxml2 apparently has this feature, but it appears not present in PHP build. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php newbie question with xml files

2005-05-04 Thread Jared Sherman
Thanks these pointers have helped alot. "Jared Sherman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Inse

RE: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-09 Thread Jared Williams
WinXP can attach directly to them, or use Novells' NetDrive to map a drive letter to the WebDAV server. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] While and echoing HTML

2005-05-10 Thread Jared Williams
> > I guess it is the missing semicolon. > > > And you can write: > > echo "" > > as simply > > echo "$product_type" > I prefer echo '', $product_type, ''; No string concatenation, or variable replace

RE: [PHP] libxslt and xml prolouge

2005-05-12 Thread Jared Williams
> Using libxslt and DOM to load up an xml file and display > within another file via 'include'.. Something is adding in > '' is there a switch or something that > turns this off? in the xsl stylesheet? Jared -- PHP General Mailing List (http://www.php.n

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
ut nothing more... > Use $document->doctype, its DOMDocumentType object.. http://php.net/dom#dom.class.domdocumenttype Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
> > On Sat, 2005-05-14 at 07:57, Jared Williams wrote: > > > Hi, > > > I've used loadHTML() to read a HTML file to DOM. This file starts > > > with a string like > > Transitional//EN"> > > > > > > Do someone know ho

RE: [PHP] RSS news feed (slightly 0T)

2005-05-18 Thread Jared Williams
> Hey, > > Can anyone suggest a few places where i can get some decent > tech/programming/php news feeds? > > I presently have the PHP.net feed (but its not too good > because the news does not change much in days) and I am using > yahoo's feeds for "software", "digital music" and "internet".

RE: [PHP] RSS news feed (slightly 0T)

2005-05-18 Thread Jared Williams
8 hours) sometimes i dont get it. > > To be fair, taking into consideration the above categories > please try to refrain from posting your own feed unless you > think it would really help me. > > Also cc the list your answer coz it would help if not > everyone told me to

RE: [PHP] libxml_set_streams_context

2005-05-18 Thread Jared Williams
); libxml_set_streams_context($context); file_get_contents('http://localhost/headersave.php', FALSE, $content); headersave.php file_put_contents('headers.txt', var_export($_SERVER, TRUE)); if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) { header('HTTP/1.0 304 Not Modified'); exit; } Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] libxml_set_streams_context

2005-05-18 Thread Jared Williams
> -Original Message- > From: Bill Hoffman [mailto:[EMAIL PROTECTED] > Sent: 19 May 2005 00:46 > To: php-general@lists.php.net > Subject: Re: [PHP] libxml_set_streams_context > > > On May 18, 2005, at 4:10 PM, Jared Williams wrote: > > > Sure the ser

[PHP] PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
} return $obj; } } } echo(''); echo(TypeAssert::string('test')); echo(''); I don't think this is possible (see http://marc.info/?l=php-general&m=114558851102060&w=2 ). But I would LIKE for it to work (currently, the above code does

[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
self::$types); $i++) { $obj->{self::$types[$i]} = (bool) false; } return $obj; } } } echo(''); echo(TypeAssert::string('test')); echo(''); I don't think this is possible (see http://marc.info/?l=php-gener

[PHP] Re: [PEAR] PHP5 Static functions called through __call() that don't exist... yet

2007-05-22 Thread Jared Farrish
27;string'; $_test = 'string'; break; } foreach (TypeAssert::getTypesObject() as $type => $v) { echo("is_$type($_test) === ". (TypeAssert::$assert->$type($test)? 'true': 'false'

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
x27;=>true,'ut'=>true, 'vermont'=>true,'vt'=>true, 'virginia'=>true,'va'=>true, 'washington'=>true,'wa'=>true, 'west virginia'=>true,'wv'=>true, 'wisconsin'=>true,'wi'=>true, 'wyoming'=>true,'wy'=>true ); function States() { } function isValid($str,$suggest) { if ($this->states[strtolower($str)] === true) { $this->suggest = null; return true; } elseif ($suggest === true && strlen($str) > 3) { $this->doSuggest($str); return false; } else { $this->suggest = null; return false; } } function doSuggest($str) { foreach ($this->states as $state => $val) { similar_text(strtolower($state),strtolower($str),$result); if ($result > 85) { $this->suggest = $state; } } if (empty($this->suggest)) { $this->suggest = null; } } function isSuggested() { return $this->suggest; } } $states = new States(); $state = 'Hawii'; if ($states->isValid($state,true) === true) { echo("$state is a state."); } elseif ($suggest = $states->isSuggested()) { echo("May we suggest $suggest?"); } else { echo("State not found."); } ?> -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Also, Indiana and Connecticut were misspelled. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: problems in WHERE statment

2007-05-23 Thread Jared Farrish
st2'; var $c = '$a$b'; var $d = "$a$b"; var $e = $a.$b; $e is equivalent to $d, where c would print literally $a$b, since you told the parser using the single quotes to leave the string alone. Likewise, var $f = $a."-$b$c-".'$e'; would print test-test2

[PHP] RE: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
chines to be known. It's probably a permissions thing, though. FWIW -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
Oh yeah, and tijnema has a good point: \\compname-x\\offsite\\db\\test.dbf Btw, what does top post mean? On 5/23/07, Jared Farrish <[EMAIL PROTECTED]> wrote: Other than permissions, you might be referencing the folder by the local network mapping drive initial, instead of the actual pa

Re: [PHP] RE: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
ions related issue and I'm doubting it is a permissions issue. I have Full Control given to the system all this is on. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
Win machines, I would think, would be a MAJOR headache if you've never done it before. One essentially speaks Polish, while the other speaks Italian. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
ped addresses, since a mapping is just a localized version of a resource name alias. If, after determing that Apache is running with the right permissions for the owned processes to connect to and use a network shared resource, then it's probably an Apache UID conflict (is PHP in safe mode?)

Re: [PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
they are not reliable for programming purposes, IMHO. For the advanced PHP gurus on the list, is it accurate to characterize PHP as relying on Apache for file manipulation? Is it accurately described as: Process Request->PHP->Apache->[File System Poof!]->Apache->PHP->Process

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
off wrapping your SQL commands into a class or at least a series of functions, so that you can implement your sanitization once and use it for all database interactions. Google: http://www.google.com/search?q=php+sanitize+sql+statement PHP.net: http://www.php.net/manual/en/security.database.sql-inj

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
ybe you manage that... On 5/24/07, Jared Farrish <[EMAIL PROTECTED]> wrote: I'm not sure exactly what kind of sanitization you think you're doing, but if all you do is check to see if it's empty (empty() implements isset(), empty() checks to see if it's set, then if it e

[PHP] Re: php hosting-mediatemple/dreamhost

2007-05-24 Thread Jared Farrish
get off the shared server. Shawn Inman is a modestly-famous web designer/developer who uses MediaTemple for his website: http://www.shauninman.com/ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Check if Record was Entered Today.

2007-05-24 Thread Jared Farrish
= Incidentally, does this mean you solved the file access problems from this thread: http://news.php.net/php.general/255542 -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Developer / Client Documents

2007-05-24 Thread Jared Farrish
webdbapps2/ This will give you most of what you're looking for. Think XAMPP for a localhost install to run tests, and MySQL for a database backend (part of XAMPP): http://www.apachefriends.org/en/xampp.html It will take time. Good luck! -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
file permissions extended through primary processes (such as Apache using an executable)... The whole apache GUID mess seems like cryptic middle ages eye gouging... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Include???

2007-05-24 Thread Jared Farrish
introspection. Useful for $_GET, $_COOKIE, $GLOBALS, $_SERVER, etc... p.s.: Could you use descriptive subjects; include doesn't really say much... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Scalable Site Architecture

2007-05-24 Thread Jared Farrish
ent animals, but knowing how each works at least superficially can help later. What I suspect you need is a book on LAMP (www.oreilly.com). -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Uploading Files into MySQL

2007-05-24 Thread Jared Farrish
e php script upload file mysql database You can thank me later. *snap* -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: help with multi dimensional arrays

2007-05-24 Thread Jared Farrish
omma. Well, I got a chuckle. :D -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Re: help with multi dimensional arrays

2007-05-25 Thread Jared Farrish
effort on this list in the past. Please start a new thread with a more appropriate title. Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jared Farrish
box to show up so I can delete multiple people at one time :) But I'm still learning about that. I sure hope you're testing on test data, and not live data... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

Re: [PHP] Re: Check if Record was Entered Today.

2007-05-25 Thread Jared Farrish
whatnot, and is then used as an include() file. This way, the data is rebuilt each go around, but the overhead is pushed to another machine, similar to a SOAP service (which is another...). Pass a variable id to the CLI script... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslo

[PHP] Re: Using PHP to retrieve and display file from MySQL database

2007-05-25 Thread Jared Farrish
Is there a valid $id being passed through a query ($_GET) variable, like so?: http://www.filecircus.com/somewhere/outthere/gimme.php?id=badphoto103 What happens when you click on that? -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have

[PHP] Re: PHP debugger

2007-05-26 Thread Jared Farrish
an/JS/lem.json.js -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: installing error

2007-05-26 Thread Jared Farrish
h would be the best for me WAMPP makes apache and php installation stupid easy (MySQL too, but you don't seem to need it). Maybe, you might install WAMPP, uninstall MySQL, and install PostgreSQL... Never done it, but with some fiddling, it should work. -- Jared Farrish Intermediate Web Devel

[PHP] Re: $_GET strings seperation

2007-05-26 Thread Jared Farrish
alues that are not replaced ($query=Array('cID'=>51,'doesnotexistyet'=>'completelynewvalue'), for instance). Also, the above is an example; there are certainly many other ways to do what is done above (such as replacing the last foreach loop with an implode(

[PHP] Re: Too many records to display in one web page

2007-05-26 Thread Jared Farrish
is is called pagination, and is well-discussed and documented on the web: http://www.google.com/search?q=php+pagination -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

[PHP] Re: $_GET strings seperation

2007-05-26 Thread Jared Farrish
'curly'; $array[] 'larry'; // Is equivalent to ~ $array = Array(); array_push($array, 'moe'); array_push($array, 'curly'); array_push($array, 'larry'); When you add a numerical array in php, it is added to the stack as a new item, or push. Essenti

  1   2   >