[PHP] Reading log files.

2002-02-04 Thread Jared
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] 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

[PHP] Retrieve HTML page

2001-02-01 Thread Jared Howard
I've been looking through the manual but I keep on missing the function or it doesn't exist. I need to know if there is a way to get a specified HTML page (as if you were to go to the page by typing in the url in your browser) and either turn it into a string or array or something that I would be

[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:

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 that'll

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 little

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
. 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 in an array I am a newbie so be kind I

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 isp has set up

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

2002-05-28 Thread Jared Boelens
their 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
; // 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 PROTECTED] Subject: [PHP] Dates i have two dates for example 2002-10-9

[PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
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
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- From: Tobyn Baugher

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 PROTECTED]] Sent: Monday

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: Tobyn

[PHP] Overriding Class functions and variables

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

[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

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

2002-09-17 Thread Jared Williams
... -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. -Original Message- From: Jared Williams [mailto:[EMAIL PROTECTED]] Sent: 11

[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

[PHP] Unknow Date Format

2001-09-05 Thread Jared Mashburn
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
? Example. Data Data Data Data Data Data1Data1 Data1 Data2Data2 Data2 Data2 Data2 Thanks for any advice. 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

[PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
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.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
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 Javascript

Re: [PHP] converting a date to a string format

2001-02-13 Thread Jared Howard
date("Ymd", mktime(0,0,0,date("d"),date("m")-14,date("Y"))); At 03:57 PM 2/13/01 -0500, Don wrote: Does someone have a snippet of code that retrieves today's date, subtracts 14 days and converts the result to a string in the form "MMDD"? If possible, please reply to my email. Thanks, Don

RE: [PHP] Shorten this MySQL code?

2001-02-19 Thread Jared Eikenberg
The following should work okay for you: ?php if ((!$username) || (!$password)) { header("Location: blah"); exit; } $userc = @mysql_connect("blah", "bleck", "bleep") or die("No DB Connection"); @mysql_select_db("notgonnadoit", $userc) or die("No DB Select"); if (($userq =

Re: [PHP] object/array with repeating values (WORKS)

2001-02-20 Thread Jared Howard
doff, I knew there had to be a simple answer. Works great, thanks. At 02:26 PM 2/21/01 +1300, Simon Garner wrote: From: "Jared Howard" [EMAIL PROTECTED] I'm make an object or an array from the results of a query to my MySQL database. The value returned is entered in options and an

[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

[PHP] FORM input type=image ... 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. form name="bidfile" method=post action="?=$ME?" input type=submit name="mode" value="Edit Contacts" input type=submit name="mode" value="Add Products" input type=text name="something"

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

2007-05-24 Thread Jared Farrish
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
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?). -- Jared Farrish Intermediate Web Developer Denton, Tx

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

2007-05-24 Thread Jared Farrish
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 ??? Just making sure I have this characterization correct. -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
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-injection.php -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
, maybe 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 evaluates to an empty

[PHP] Re: php hosting-mediatemple/dreamhost

2007-05-24 Thread Jared Farrish
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
://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
/ 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 Abraham Maslow

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

2007-05-24 Thread Jared Farrish
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
.: 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
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
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
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
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
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
. 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 Maslow: If the only tool you have is a hammer, you tend

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

2007-05-25 Thread Jared Farrish
a href=download.php?id=?=$id;??=$name;?/a br 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

[PHP] Re: PHP debugger

2007-05-26 Thread Jared Farrish
/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
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 Developer Denton, Tx

[PHP] Re: $_GET strings seperation

2007-05-26 Thread Jared Farrish
to do what is done above (such as replacing the last foreach loop with an implode() call). There are some strictly unnecessary things done above, in other words, but I left them in to show what really is happening (and needs to be done). -- Jared Farrish Intermediate Web Developer Denton, Tx

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

2007-05-26 Thread Jared Farrish
this ? This 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-27 Thread Jared Farrish
, eg, 'item','item2' -- 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: PHP5 oop question...

2007-05-28 Thread Jared Farrish
to an instantiated object should work), and/or make it work entirely on it's own without $this. -- 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] Tracking exit links with php?

2007-05-28 Thread Jared Farrish
). What you want is access to their redirect page log. You also might look into Urchin and the ISP's that support it. -- 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: Upload a ppt file

2007-05-28 Thread Jared Farrish
Does any have any references or an example to show me? Well, I think we need a description of the error or the invalid response you're having. It could be a file-size issue (your php.ini configuration won't allow file sizes 8mb's, for instance). Have you googled it? -- Jared Farrish

[PHP] Re: Unknown number of check boxes?

2007-05-28 Thread Jared Farrish
(consumeFormChecks($_POST['form']['checks'])); }else { echo('h4Please select some random checkboxes above' . ' and submit the form/h4'); } ? /pre /code -- 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: Unknown number of check boxes?

2007-05-28 Thread Jared Farrish
On 5/28/07, Jared Farrish [EMAIL PROTECTED] wrote: $tr = $i % 5 === 0 ? Array('','') : Array('tr','/tr'); Ignore this line, it was from an earlier iteration of that function. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have

[PHP] Re: Web Application Design Literature

2007-05-28 Thread Jared Farrish
, keep in mind PHP is quite a bit different from other languages (such as C#) in the way it implements some details of objects, and that PHP4 and PHP5 are quite significantly different versions, vis-a-vis objects and classes. Good luck! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham

[PHP] Re: a question on session ID and security

2007-05-28 Thread Jared Farrish
is destroyed and the temp file where it is stored is deleted from the harddrive. Do not store sensitive information or use a SESSION id to authenticate a user. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem

[PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
hash key that can be used to validate the actual key against a footprint for a visitor (from $_SERVER). Salt in a date/timestamp and SHA1 or other, and I feel like that's a pretty good way to check against a visitor. I just think it feels flimsy to validate a user on a SESSION key only. -- Jared

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
out there would have done it, including PHP? I certainly don't think you're implying I thought I had given some new, better way of doing sessions that nobody had given before? Curious statement. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have

Fwd: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
with security, there's some known benefit to discussing it! -- 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. $$ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
That's not what I'm saying. My basic question is why send the secondary hash key to the client when it doesn't need it? Use the authentication key to identify the users data, then get the secondary hash key from that data. The browser never needs to see the hash, and from a purist security point

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
On 5/29/07, Jared Farrish [EMAIL PROTECTED] wrote: I do think the stated best practice of SESSIONS, at this point, probably does need to be described to be further useful as a topic of discussion. I've been a little unclear in some things, so I get the feeling we've got the same point of view

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
when that history occurred... -- 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: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
== '' == ??). This makes a whole lot more sense in C++ or something other strong-typed language. Thus, code to what you need, but have high standards (by knowing what you need)! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see

[PHP] Re: scheduling a script to check a directory for files

2007-05-30 Thread Jared Farrish
the call, though. http://en.wikipedia.org/wiki/Lynx_(web_browser) -- 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: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
Hi Jared, Hi Rich! If you do put a return; at the end of all of your functions, I'm curious as to why? If a function doesn't actually return a value (which is highly possible) then it isn't /required/, but that doesn't stop me from doing it. I *do* put 'return;' at the end of all functions

[PHP] Re: RE: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
. Depends on coding style, preference, and the situational need. -- 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] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
-php). 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. $$

Re: [PHP] Re: a question on session ID and security

2007-05-30 Thread Jared Farrish
On 5/30/07, Richard Lynch [EMAIL PROTECTED] wrote: If they can get the first cookie, they can get the second just as easily. I thought this said just as weasily at first, and I thought, Ain't that the truth... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
On 5/30/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, May 30, 2007 12:33 pm, Jared Farrish wrote: preg_match(^ldap(s)?://[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$,$this-server) You are missing the start/end delimiters is your first problem... Which ones? I've got the starter ^ and the closer

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
not printing a zero, shouldn't that mean it's returning false? preg_match(/^ldap(s)?:\/\/([a-zA-Z0-9-])+\.[a-zA-Z.]{2,5}$/,$this-server) Now when I add the slashes, I get zero, even though I give it a real value that should return 1. *sigh* -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
on a way to LIMIT the matches effectively. If that doesn't work, hey, this is a PHP list... -- 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: find (matching) person in other table

2007-05-30 Thread Jared Farrish
On 5/30/07, Jared Farrish [EMAIL PROTECTED] wrote: $lastname = strpos('Rogers',0,2); $firstname = strpos('Timothy',0,2); $select = SELECT `uid`,`LastName`,`FirstName` FROM `users` WHERE LastName='$lastname%' AND FirstName='$firstname%'; Strike

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
interesting. I'll have to check it out. 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. $$

Re: [PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
the email address existed (although it doesn't mean it isn't someone in the database that isn't already in there). -- 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: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
allow them? I hadn't gotten far enough to strtolower(), but that's a good point, I hadn't actually considered it yet. Just my thoughts Hey, I appreciate it! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem

Re: [PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
On 5/30/07, Afan Pasalic [EMAIL PROTECTED] wrote: email has to match in total. [EMAIL PROTECTED] and [EMAIL PROTECTED] are NOT the same in my case. thanks jared, If you can match a person by their email, why not just SELECT by email only (and return the persons information)? Consider

[PHP] Re: Re: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
if my regex is going to be that great in practice. This would be in addition to the program Richard alluded to in the code checker. 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: Re: Re: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
, ie, practical usage. Does it mean match anything that, say, *starts* with a pattern but ends with whatever (.)??? 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: local v remote

2007-05-31 Thread Jared Farrish
it: - http://us2.php.net/manual/en/features.persistent-connections.php - http://us2.php.net/manual/en/function.mysql-connect.php - http://us2.php.net/manual/en/function.mysql-query.php - http://us2.php.net/manual/en/function.is-resource.php -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Re: Re: Re: preg_match() returns false but no documentation why

2007-05-31 Thread Jared Farrish
to a Brit or someone who understands Commonwealth English would know (I was aware of what it meant in CE, I just woudn't have imagined to apply it here, since it looks to be descriptive). Kind've like an elephant trainer calling her elephant's trunk a boot. -- Jared Farrish Intermediate Web Developer

[PHP] Re: More include issues

2007-06-06 Thread Jared Farrish
things. -- 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: More include issues

2007-06-06 Thread Jared Farrish
On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: I feel ya brotha! I think Stut might be having a bad day... Bad day?? Did you read the same posts I read? Cheers, Rob. Sure I did. Let's not take this too seriously, ok? -- Jared

Re: [PHP] Re: More include issues

2007-06-06 Thread Jared Farrish
On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 20:26 -0500, Jared Farrish wrote: On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: I feel ya brotha! I think Stut might be having a bad day... Bad day

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

2005-05-09 Thread Jared Williams
and the PUT method. There is a PHP implementation of a WebDAV server in PEAR. Its not form based, but would make it somewhat more easier to upload than using FTP atleast. I believe WinXP can attach directly to them, or use Novells' NetDrive to map a drive letter to the WebDAV server. Jared -- 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 trtd? echo $product_type ?/td/tr as simply echo trtd$product_type/td/tr I prefer echo 'trtd', $product_type, '/td/tr'; No string concatenation, or variable replacement required. Jared -- PHP General Mailing List

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 '?xml version=1.0?' is there a switch or something that turns this off? xsl:output omit-xml-declaration=yes / in the xsl stylesheet? Jared -- PHP General Mailing List

RE: [PHP] DOMDocument and html doctype

2005-05-14 Thread Jared Williams
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 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Do someone know how I can access this string? By reading the doctype

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. I was

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

2005-05-18 Thread Jared Williams
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 check out site x :-), i'll reply to the list and you. Er www.planet-php.net even :) Jared -- PHP General Mailing List

RE: [PHP] libxml_set_streams_context

2005-05-18 Thread Jared Williams
); 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

  1   2   >