Re: [PHP] PHP vs JAVA

2013-08-20 Thread David OBrien
On Tue, Aug 20, 2013 at 10:56 AM, David OBrien wrote: > > > > On Tue, Aug 20, 2013 at 10:43 AM, Tedd Sperling wrote: > >> On Aug 20, 2013, at 10:36 AM, "Liam" wrote: >> > You do realise you are on a PHP based user subscription, so the vast >> >

Re: [PHP] PHP vs JAVA

2013-08-20 Thread David OBrien
On Tue, Aug 20, 2013 at 10:43 AM, Tedd Sperling wrote: > On Aug 20, 2013, at 10:36 AM, "Liam" wrote: > > You do realise you are on a PHP based user subscription, so the vast > > majority will go with PHP, so you will get a one sided argument. > > > > Regards, > > Liam > > > I realize that many,

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread David OBrien
On May 20, 2013 8:45 PM, "Matijn Woudt" wrote: > > > On Mon, May 20, 2013 at 10:46 PM, David OBrien wrote: >> >> On Mon, May 20, 2013 at 4:14 PM, Tim Schofield wrote: >> >> > Matijn >> > >> > There are well over half a million

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread David OBrien
On Mon, May 20, 2013 at 4:14 PM, Tim Schofield wrote: > Matijn > > There are well over half a million lines of source code in PHP. It seems a > little unhelpful to tell someone to go and read half a million lines of C > when you could just tell them the answer? > > Thanks > Tim > > Course View To

Re: [PHP]

2013-05-08 Thread David OBrien
On Wed, May 8, 2013 at 1:22 PM, Daniel Brown wrote: > On Wed, May 8, 2013 at 1:14 PM, Tedd Sperling > wrote: > > > > PS: PHP + > "Produced by Horses & Ponies." ? You got too much time on > your hands Daniel. > > And yes, I just made up the word acronymize. > That would be reverse acronymization

Re: [PHP] ODBC

2013-05-06 Thread David OBrien
On Mon, May 6, 2013 at 3:32 PM, georg wrote: > Hi, > > Id like to get ODBC connection to SQL from PHP going. Ive done that on XP, > but now Im switching > to Linux (Fedora). > > My impression in that the connecting part is per the DB designers > responsibility. Im using Mimer-SQL, > but cant find

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread David OBrien
On Wed, Apr 24, 2013 at 5:14 PM, David OBrien wrote: > On Wed, Apr 24, 2013 at 5:09 PM, Ken Kixmoeller wrote: > >> Hey - -- >> >> I have a huge screen -- to make it simple for the user, it does 100s of >> calls to MySQL and has 1,000s (literally) of POST variables

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread David OBrien
On Wed, Apr 24, 2013 at 5:09 PM, Ken Kixmoeller wrote: > Hey - -- > > I have a huge screen -- to make it simple for the user, it does 100s of > calls to MySQL and has 1,000s (literally) of POST variables. > > We have done extensive research and see that upgrading from php 5.1.6-27 to > 5.1.6-39 i

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
In fact using the @gmail.com part added on gives me the same error as the OP I think their welcome email needs tweaking.. try it without the domain added on On Sun, Apr 21, 2013 at 6:56 PM, David OBrien wrote: > > I should note my user name in this case *is* an email address, however

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
> I should note my user name in this case *is* an email address, however the dots in that address are *not* being converted to underscores as mentioned (at least not visibly). I just created a free account there and the email says my username is dgobr...@gmail.com but I connected to it from sqlyo

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
On Sun, Apr 21, 2013 at 6:01 PM, Glob Design Info wrote: > One other thing I noted in the FAQ was this: > > "Dots in incoming variable names > Typically, PHP does not alter the names of variables when they are passed > into a script. However, it should be noted that the dot (period, full stop) > i

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
Not meaning to beat the proverbial dead horse I am developing a web portal that has to display the tables in the DB via a > form/script. The web page has a login with user and password. Right now I > am just trying to connect. > This for a commercial app - the client wants both an API connect via

Re: [PHP] mysql_connect noob question

2013-04-20 Thread David OBrien
> > > $form_user = $_POST[ 'user' ]; > > $form_pass = $_POST[ 'password' ]; > > > > # Connect to remote DB > > > > $LINK = mysql_connect( $host, $form_user, $form_pass ); > > > > And yes, my $host param is correct. > Have you tried $LINK = mysql_connect( $host, "$form_user", "$form_pass" ); just

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread David OBrien
On Wed, Apr 17, 2013 at 5:52 PM, Daevid Vincent wrote: > We do a lot with caching and storing in memecached as well as local copies > so as to not hit the cache pool over the network and we have found some > great tools to minimize our javascript and our css, and now we'd like to > compress our H

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread David OBrien
On Mon, Apr 1, 2013 at 5:26 PM, Mark wrote: > Hi, > > I stumbled upon this payment library: http://ci-merchant.org/ which > abstracts the different payment backends away and exposes a new easy > to use interface for the app developer to use. Thus making it very > easy to use different payment pro

Re: [PHP] application level variable file

2013-03-22 Thread David OBrien
On Fri, Mar 22, 2013 at 10:26 AM, Stuart Dallas wrote: > On 22 Mar 2013, at 14:22, wrote: > > > I am very new to the PHP application and would like to create a new > project. > > I would like to have a file to save my application level variable and > > functions. > > > > I would like to know doe

Re: [PHP] actually HTML again; resizeing images

2013-03-17 Thread David OBrien
On Mar 17, 2013 12:28 PM, "Stuart Dallas" wrote: > > On 17 Mar 2013, at 13:22, "georg" wrote: > > > Anyone knows a good reading about how and when images displayd with HTML tags are > > re-sized ? > > Not entirely sure what you mean, but a downloaded image will be resized when it needs to be show

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-03 Thread David OBrien
On Thu, Jan 3, 2013 at 11:49 AM, Marc Guay wrote: > Hi John, > > I just ran this: > > if (($a = "foo") || ($b = "bar")){ > echo $a."".$b; > } > > and it only spat out "foo" so I'm guessing things have changed. :) > > Marc > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscri

Re: [PHP] Noobie starting to learn OOP for databases needs help

2012-12-16 Thread David OBrien
On Sun, Dec 16, 2012 at 2:08 PM, Matijn Woudt wrote: > On Sun, Dec 16, 2012 at 4:38 PM, dealTek wrote: > > > Hi all, > > > > Noobie starting to learn oop for databases from here: > > > > > > > https://github.com/JeffreyWay/PHP-MySQL-Database-Class/blob/master/MysqlDb.php > > > > I've got lots wo

Re: [PHP] Session ?

2012-12-08 Thread David OBrien
On Sat, Dec 8, 2012 at 12:10 PM, Jim Giner wrote: > On 12/8/2012 11:41 AM, Jim Giner wrote: > >> On 12/8/2012 11:04 AM, Daniel Brown wrote: >> >>> You can pass the session ID and reactivate the session that way, >>> sure. Not pretty, and it does lead to security considerations, but it >>> wo

Re: [PHP] cron job problem

2012-10-23 Thread David OBrien
On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > wrote: > > > > > > Crontab is the daemon which runs cron jobs, and some distros have set up > > special files called cron.daily (or daily.cron I don't recall), > > cron.hourly, etc to make i

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread David OBrien
On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford wrote: > The value of date.timezone in php.ini is set to "America/Los_Angeles". > > The local time is 11:02 a.m. Yet the output of date("h:i a e") is: > > 02:02 pm America/Los_Angeles > > which is three hours ahead of the real time. > > Why is t

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread David OBrien
On Mon, Sep 24, 2012 at 3:06 PM, Daevid Vincent wrote: > > And for the love of [insert deity of your choice here] not EVERYTHING has > to be OOP. Use the best tool for the job!! Nothing pisses me off more than > having to instantiate a new class just to do some simple method that a > standard fun

Re: [PHP] Highlight Search Results

2012-09-18 Thread David OBrien
On Tue, Sep 18, 2012 at 8:36 AM, Floyd Resler wrote: > > I want to highlight the word searched in search results. I know I can use str_ireplace to do a case insensitive search and replace. However, is there an easy way to maintain the case of the word found when I do the replace? > > Thanks! > F

Re: [PHP] array.sorting.php

2012-09-04 Thread David OBrien
On Tue, Sep 4, 2012 at 1:15 PM, John Taylor-Johnston < jt.johns...@usherbrooke.ca> wrote: > Hi, > Sorting question. > http://www.php.net/manual/en/**array.sorting.php > I'm using ksort, which sorts like this. > I don't want to use strolower. > Is th

Re: [PHP] templeting

2012-09-03 Thread David OBrien
On Sep 3, 2012 9:15 PM, "David McGlone" wrote: > > Does anyone use any templeting system for any projects? If so what would > anyone recommend? I looked at Code Ignitor, but it seems the templeting system > is optional and left out by default. > > -- > Regards > David M. I use smarty

Re: [PHP] load rtf file

2012-09-03 Thread David OBrien
On Mon, Sep 3, 2012 at 12:56 PM, Matijn Woudt wrote: > On Mon, Sep 3, 2012 at 5:24 PM, Tedd Sperling wrote: > > On Sep 3, 2012, at 1:23 AM, John Taylor-Johnston > wrote: > > > >> I have a big giant RTF file. I could convert it to plain text. BUT can > PHP do it for me? > > > > Hell, even M$ can

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread David OBrien
On Fri, Aug 24, 2012 at 11:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: > >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just to be able t

Re: [PHP] mysqlnd and mysqli as shared extensions?

2012-08-20 Thread David OBrien
On Mon, Aug 20, 2012 at 10:20 AM, Lester Caine wrote: > Can mysqlnd be built as a shared module? > > make test is telling me the resulting .so is not a valid > "Warning: PHP Startup: Invalid library (maybe not a PHP library) > 'mysqlnd.so' in Unknown on line 0" > > I'm still on PHP5.4.3 on that m

Re: [PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels

2012-08-16 Thread David OBrien
On Thu, Aug 16, 2012 at 12:40 PM, Tristan wrote: > I can't for the life of me figure out how to find the depth of the array > that I'm looping through to output tabs or indentations to the display for > each depth. The entries also have section postition if you can figure out > how to include tha

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-30 Thread David OBrien
On Mon, Jul 30, 2012 at 10:21 AM, JeffPGMT wrote: > Tamara, I said dll, but that was only my ignorant/windows reference to a > system lib/bin file. I followed a blog post (bitly'ed below); I got as far > as un-tar'ing and "make" was not available. > > I have other stacks Xampp (beta for Mac not f

Re: [PHP] Reverse DNS testing

2012-07-12 Thread David OBrien
On Jul 12, 2012, at 2:17 PM, Al wrote: > I want to do a rDNS check on a admin entered host name to insure in-coming > mail servers don't reject mail, sent by my app, because the rDNS doesn't > exist or doesn't match. > > Here is the fundamental code: > > $host = $_SERVER['SERVER_NAME']; //sit

Re: [PHP] Is there a way to customize the 'Username' and 'Password' strings in a 401 auth dialog box?

2012-06-28 Thread David OBrien
On Thu, Jun 28, 2012 at 7:23 PM, Daevid Vincent wrote: > Is there a way to customize the 'Username' and 'Password' strings in a 401 > auth dialog box? > > I want to change mine to say "Webmaster ID" and "Authentication Key". > > http://php.net/manual/en/features.http-auth.php > > This http://www

Re: [PHP] passing /n into query ERROR

2012-05-31 Thread David OBrien
On Thu, May 31, 2012 at 12:55 PM, David OBrien wrote: > On Thu, May 31, 2012 at 12:46 PM, Don Wieland wrote: > >> I have a query below. When I try to run it with PHP it errors: >> >> DATABASE_ERROR: You have an error in your SQL syntax; check the manual >> that co

Re: [PHP] passing /n into query ERROR

2012-05-31 Thread David OBrien
On Thu, May 31, 2012 at 12:46 PM, Don Wieland wrote: > I have a query below. When I try to run it with PHP it errors: > > DATABASE_ERROR: You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to use > near 'LINES TERMINATED BY

Re: [PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread David OBrien
 On Fri, May 4, 2012 at 10:48 AM, Andres Gonzalez wrote: > I am trying to code a CLI PHP script that will give me the keycodes for > these (and other) keyboard keys. I want to basically block until the user > presses a single key, then I want to process that event without the user > having to pr

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread David OBrien
Google is still your friend On Fri, May 4, 2012 at 9:36 AM, Terry Ally (Gmail) wrote: > Does anyone have a working/example PHP script that calculates driving > distances between UK postcodes that they can share? > > Thanks > > -- > *Terry Ally* > Twitter.com/terryally > Facebook.com/terryally > ~

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 8:53 PM, "Dan Joseph" wrote: > > Hi, > > I've spent hours researching this with no luck. I have a PDF with a form > field that I want to populate and output the PDF. Can someone point me in > the right direction? Can FPDF do this natively, or I need something else? > My host doe

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 9:08 PM, "David OBrien" wrote: > > > On May 3, 2012 8:53 PM, "Dan Joseph" wrote: > > > > Hi, > > > > I've spent hours researching this with no luck. I have a PDF with a form > > field that I want to populate and

Re: [PHP] case-insensitive $_REQUEST,$_GET,$_POST keys?

2012-04-13 Thread David OBrien
On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > Anyone have a quick-and-dirty way to check $_REQUEST keys that is > case-insensitive? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > this wh

Re: [PHP] mssql_bind question

2012-04-09 Thread David OBrien
On Mon, Apr 9, 2012 at 1:42 PM, David Stoltz wrote: > Folks, > > Having a difficult time using mssql_bind with characters greater than > 8000...the database field is set to ntext, and I've also tried > varchar(max), both seem to produce the same results: > > If I use: > mssql_bind($stmt, '@mgrnot

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Apr 6, 2012 9:51 AM, "Jim Giner" wrote: > > "David OBrien" wrote in message > news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... > >> > > I googled "php show images in folder" and lo and behold the first was was

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Fri, Apr 6, 2012 at 8:34 AM, Jim Giner wrote: > "Kirk Bailey" wrote in message > news:4f7e5d2f.3050...@howlermonkey.net... > > jim, I am a novice at this language as I said. > > > > Then you are taking on too big of a task. > > When I decided to pick up some web programming skills I bought a $

Re: [PHP] Command line has no network access

2012-04-01 Thread David OBrien
On Apr 1, 2012 12:11 PM, "Lester Caine" wrote: > > OK I probably know how to do this 10 years ago, but I'm not finding any prompts to remind me. > > Windows 2000, PHP5.2.10 cli ... > I'm trying to set up a simple dump to run from scheduler. The code runs perfectly via the browser so I'm manually h

Re: [PHP] securing a script that exec()s

2012-03-30 Thread David OBrien
Sender: dgobr...@gmail.com Subject: Re: [PHP] securing a script that exec()s Message-Id: Recipient: adam.nicho...@hl.co.uk __ This email has been scanned by the Symantec Email Security.cloud service. For more information please

Re: [PHP] securing a script that exec()s

2012-03-30 Thread David OBrien
Find a way to do it using PHP's imagemagick extensions http://php.net/manual/en/book.imagick.php On Fri, Mar 30, 2012 at 5:56 AM, rene7705 wrote: > Hi. > > I have a script that uses imagemagick's convert command on the commandline > to get it's work done. > These calls to exec('convert [params]

Re: [PHP] DateTime wierdness

2012-03-29 Thread David OBrien
actually this would work well ... compare what they send with the output of the formatdate function checkDateTime($data) { if (date('Y-m-d H:i:s', strtotime($data)) == $data) { return true; } else { return false; } } 2012/3/29 David OBrien > http:

Re: [PHP] DateTime wierdness

2012-03-29 Thread David OBrien
http://www.php.net/manual/en/function.checkdate.php 2012/3/29 Martín Marqués > OK. So what would be a good way to validate a date? > > El día 29 de marzo de 2012 14:04, David OBrien > escribió: > > > > echo date("m-d-y",mktime(0, 0, 0, 14, 14, 2012)); > >

Re: [PHP] DateTime wierdness

2012-03-29 Thread David OBrien
echo date("m-d-y",mktime(0, 0, 0, 14, 14, 2012)); this outputs "02-14-13" also so my guess is that it is being interpreted the same as "12/14/2012 +2 months" echo date("m-d-y",mktime(0, 0, 0, 1, 45, 2012)); outputs "02-14-12" which is 1/1/12 +45 days 2012/3/29 Martín Marqués > Can someone

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread David OBrien
Damn I'm an idiot... sorry :\ On Wed, Mar 21, 2012 at 9:34 AM, Jim Giner wrote: > Did you do a search of the php manual? I did one on "hex" and found > function bin2hex. Not sure how you mac address is actually built, but I > would try converting it char by char and see what the function return

[PHP] How can I convert these to hex or strings?

2012-03-21 Thread David OBrien
] => 4 [value] => ⌠╬F>╒' ) I just strip the weird ones off the model and serial entries but I've been pulling my hair out trying to convert the macaddress one to a hex string or just a string Can some one educate me or point me in the right direction? David OBrien

Re: [PHP] Graphing

2012-03-18 Thread David OBrien
Highcharts.com On Mar 18, 2012 9:34 AM, "Ross Hansen" wrote: > > Hey all, > > I have been working with php for a few years but mostly simple stuff. I'm now looking at doing some graphing but have no experience with dynamic images. > > I have never used imagecreate but have seen one example of it

[PHP] Any SNMP Guru's?

2012-03-15 Thread David OBrien
Using command line snmpget you can set an option to append leading 0's to hex values -o0 So instead of $macaddress = "0:1a:4b:c:8d:fb"; it would be $macaddress = "00:1a:4b:0c:8d:fb"; is there any option using the extremely well documented php snmp extension to do the same?

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread David OBrien
At 04:53 PM 3/14/2005, [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the

[PHP] Sessions and Objects using PHP4

2005-01-15 Thread David OBrien
I have RTFM and TTFE and still am having a heck of a time getting my objects to play well between pages The only real examples are in the notes for classes & objects http://us2.php.net/manual/en/language.oop.php Basic usage get_stats(); $songbook->populate_manu(); $songbook->populate_series(); if

Re: [PHP] Replacing whole words only

2004-12-22 Thread David OBrien
I'm also an idiot ... Something else, the "or" output is occurring because the exception "the" matches "other " first so "other" becomes "or" minus the "the"... So heres what I did ... $search = array( '/\bthe\b/', '/\bother\b/', '/\bthat\b/', '/\ba\b/' ); $string = 'The other lady that laughed'

Re: [PHP] Replacing whole words only

2004-12-22 Thread David OBrien
The case is what's stopping it from working a str_replace(strtolower($exceptionphrase) , '' , strtolower($stringtoparse)) would take the case out of the equation and for php5 theres always the case insensitive version str_ireplace() -David > > From: "Chris Boget" <[EMAIL PROTECTED]> > Date: 20

Re: [PHP] Methods for creating HTML with PHP

2004-03-24 Thread David OBrien
At 08:20 PM 3/24/2004, Jason Giangrande wrote: Raditha Dissanayake wrote: How about just escaping out of php :-) and embedding the html direct? Jason Giangrande wrote: I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but tha

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread David OBrien
At 03:16 AM 1/30/2004, Freedomware wrote: I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one lo

RE: [PHP] sending a hex string as it is?

2004-01-28 Thread David OBrien
) on the wire :-( Any ideas? Khoa -Original Message- From: David OBrien [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:08 PM To: Khoa Nguyen; [EMAIL PROTECTED] Subject: Re: [PHP] sending a hex string as it is? At 02:03 PM 1/28/2004, Khoa Nguyen wrote: >$var = 0x818

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
At 02:45 PM 1/28/2004, Radwan Aladdin wrote: Now I fixed the error message.. but the problem is in "Distance = 0" always.. because the LoginTime is a string.. I fetch it but the same thing!! This is the new script : phpinfo(); include("Config.php"); $link = mysql_connect("$user_hostname", "$user

Re: [PHP] sending a hex string as it is?

2004-01-28 Thread David OBrien
At 02:03 PM 1/28/2004, Khoa Nguyen wrote: $var = 0x8180; How do I send $var to the browser as it is? In other words, if sniffing on the wire, I should see 8180, not 38 31 38 30. I think http://www.php.net/manual/en/function.strval.php would work here -Dave Thanks for your help. Khoa -- PHP Gene

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
I believe I'd start here http://www.php.net/manual/en/function.mssql-fetch-row.php You get the db result from your script but you do nothing with it in your script A whole lot more reading and coding you need to accomplish. Good Luck -Dave At 01:54 PM 1/28/2004, Radwan Aladdin wrote: But I mea

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
orming math on a string? -Dave At 01:42 PM 1/28/2004, Radwan Aladdin wrote: I'm using the GET method.. And it is right.. it shows the correct GET method.. the problem in is in the Destance value.. it is not updating this value to the database.. or it is wrong.. every time = 0 So what is the e

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
alue + 1 (So for example : is > LessonNumber = 2 then it must be 3...Etc..) > > Hope you got my meaning.. > > The error that is displayed always is : "Query error: You have an error > in your SQL syntax near '0') WHERE UserName= AND Password=)' at line 1"

Re: [PHP] Still error messages!!

2004-01-28 Thread David OBrien
At 12:08 PM 1/28/2004, Radwan Aladdin wrote: Hello all.. This is the PHP code : include("Config.php"); $link = mysql_connect("$user_hostname", "$user_username", "$user_password"); mysql_select_db("$user_database", $link); $UserName = $_GET['UserName']; $Password = $_GET['Password']; $LogoutTim

Re: [PHP] unexpected include parse error

2004-01-26 Thread David OBrien
the \ has to be slashed ".\\"; -Dave At 11:27 PM 1/26/2004, Paul Furman wrote: I'm new so probably missing something easy or doing something terribly wrong but I have spent a lot of time experimenting... parse error, unexpected T_INCLUDE in [the above file] if I comment out the $dirstr= ".

Re: [PHP] How do you set up table columns for numerals?

2004-01-23 Thread David OBrien
normally auto_increment fields need to be of a number type not varchar -Dave At 11:30 PM 1/23/2004, Freedomware wrote: Giz wrote: I looked at your page. First off, you should add a primary key column that has no information in it. Just make this a number(4) called state_id. OK, I gave it anothe

Re: [PHP] Having a bit of regex troubles

2004-01-14 Thread David OBrien
I just ran this on this line... for ($x=0; $x to see the ascii values to make sure nothing funky was there and it still stopped after the @@ (169)(169) -Dave At 12:50 AM 1/15/2004, David OBrien wrote: Let's say i have a mysqldump type export script I wrote

[PHP] Having a bit of regex troubles

2004-01-14 Thread David OBrien
Let's say i have a mysqldump type export script I wrote that someone screwed up (me) and I quoted every field even the numeric ones. In this dump I have rows upon rows of this kind of data INSERT INTO chd VALUES ( '80607fe5-00eb-f5c9-4d38-00ac10050a00' , '014d7fcd-00eb-f5c9-4d38-00ac10050a00' ,

Re: [PHP] CRON throws error, but no command line problems

2003-12-19 Thread David OBrien
This is usually a DNS error. It's telling you it can't find an IP address for the given hostname -Dave At 08:57 AM 12/19/2003, Jay Blanchard wrote: Good morning group! I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online as an upgrade from another server. (previous PHP version

[PHP] strlen

2001-07-25 Thread David OBrien
I'm having a heck of a time getting something to work like it should I have a script which reads a list of words one per line I want it to display the length of the word a tab then the word. No matter how I code it it still only shows the word alone on strlen. Any ideas? $blen) ? -1 : 1; } ?>

Re: [PHP] Something weird

2001-07-06 Thread David OBrien
Half the message didn't get sent ... If I manually do a apachectl restart the page updates with the correct changes on it the other 3 apache / php servers I have all work correctly just this one on 7.1 the rest are 6.2 redhat installs. -Dave At 02:04 PM 7/6/2001 -0400, David OBrien

[PHP] Something weird

2001-07-06 Thread David OBrien
Sorry... I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php 4.0.6 if I make a change on a page it doesn't show -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Something weird

2001-07-06 Thread David OBrien
I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6 -- 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] Having a heck of a time installing

2001-02-16 Thread David OBrien
I just build a new redhat 6.2 server (intel) to install php4 and apache on I'm trying to compile php as an dso module. Apache compiled and installed just great. WHen I try to build php4 woth the following ./configure --with-apxs=/www/bin/apxs --with-imap --with-gd --with-jpeg=/usr/lib --with-