Re: [PHP] PHP 5.02 and Fedora Core 2 Installation question

2004-10-15 Thread Brad Pauly
On Fri, 15 Oct 2004 10:49:27 -0600, Brad Pauly <[EMAIL PROTECTED]> wrote: > > I am also trying to do this. Dovecot is the default IMAP server on > FC2. I haven't had time to try it yet, but here is a link I found > about compiling PHP with dovecot: > > http://www.

Re: [PHP] set multiple variables

2004-10-01 Thread Brad Pauly
> } > > But I want to specify multiple IPs. What's the best recommended way for > doing that? One way would be to create an array of ips and look for it in that array: $ips = array('127.0.0.1','192.168.1.50'); if (in_array($REMOTE_ADDR, $ips))

[PHP] strtr array replace issue...

2009-02-09 Thread Brad Freshour
Apache: 2.2.8 threaded PHP: 5.2.4-2 mySQL: 5.051.a Ubuntu 8.04 minimal with everything needed installed via apt-get. Using SMF forum, I'm having an issue with the strtr command... Here's the code... $ftp_file = strtr($filename, array ($_SESSION['pack_ftp']['root'] =>'')); The $_SESSION[

[PHP] Issues with mcrypt (Rijndael 128) and external C application.

2009-03-14 Thread Brad Broerman
Hi, I am trying to encode a string using Rijndael-128 using a C application that I wrote, based on the BSD crypt/rijndael libarary and decode it in PHP using mcrypt_decrypt. Each part of the program works separately (I can encrypt with the c app, and decrypt with it, and I can encrypt with mcrypt_e

[PHP] RE: AJAX with POST

2009-04-04 Thread Brad Broerman
Well, as the "A" in Ajax is asynchronous, there's no real way to make it wait. What you would normally do is use a callback: function createXHRObject( ) { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (typeof

[PHP] RE: Multiple return statements in a function.

2009-04-23 Thread Brad Broerman
Well, the latter method is generally easier to understand later. Most programming style books preach this method, and it's the one that most of my previous employers use. Cheers... -Original Message- From: Peter van der Does [mailto:pvanderd...@gmail.com] Sent: Thursday, April 23, 2009 8:

[PHP] RE: Paypal and Php

2009-05-03 Thread Brad Broerman
into more detail later if you're interested. As others have mentioned, there are some more complex Zend framework classes for this, but you may opt for the simpler and more direct route... Cheers, Brad Broerman -Original Message- From: Matthieu [mailto:spama...@gmail.com] Sent: S

RE: [PHP] storing date in datetime column

2007-01-09 Thread Brad Fuller
quotes (like a text string) when inserting into your database. Example: $date = "January 8 2007 11:23 pm"; $mysqldate = date("Y-m-d H:i:s", strtotime($date)); $query = "INSERT INTO `datefield` VALUES '$mysqldate'"; ... Hope that helps, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what mail program I'm using?

2007-01-12 Thread Brad Fuller
see if it detects any problems with your server configuration. You might also check out www.mxtoolbox.com Hope that helps, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] md5

2007-01-17 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: MD5 is a hasing algorithm.. one-way.. really only good for checking known values and keeping them 'private', like storing passwords in a database. That way, if someone breaks into your database, they don't get the passwords, only the non-reversible MD5 hashes of the

Re: [PHP] md5

2007-01-17 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: Still.. that has nothing to do with how well known MD5 is (so I stand by my point). Was not trying to refute your point. Just pointing something out with regards to the "security" of MD5 hashes, and what being "well known" or at least popular does for you. What you

RE: [PHP] dynamic lists

2007-01-17 Thread Brad Fuller
es and pop them in when the user chooses an option from the first list (using onChange=someFunction(...)). I like #2. If you need a starting point, google for "javascript dynamic select list" Hope that helps, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
ment: ' . $stmt .'('.$query.')'. ' ' . htmlentities($error['message'])); } return $result; } I use this wrapper class for many things, and the execute function for many things, without any problems. Now, this is

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Brad Bonkoski
Dan Shirah wrote: Hello all, I am trying to pull data and then loop through the multiple results display in seperate rows. My database contains several tables which are all tied together by the credit_card_id. After running the query, it ties the unique record together by matching the credi

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $stmt = $db->parse($sql); $rc = null;

Re: [PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
Brad Bonkoski wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-18 11:46:10 -0500: Hello All, I have this Oracle function, and within my code I call it like this: $sql = "BEGIN :result := my_funtion_name('$parm1', $parm2, null, null, null); END;"; $st

RE: [PHP] Conditional Select

2007-01-19 Thread Brad Fuller
support_payment_request.credit_card_id = > credit_card_payment_request.credit_card_id" ?> ($request_id !== '') { > "AND credit_card_payment_request.credit_card_id = $request_id" > } > ?> > "AND date_request_received = $dateTime"; >} > ?> >$result = mssql_query($sql) or die(mssql_error()); > echo " cellspacing='2' bordercolor='#00'>"; > > while ($row = mssql_fetch_array($result)) { >$id = $row['credit_card_id']; >$dateTime = $row['date_request_received']; echo ""; > echo " class='tblcell'>$id"; echo > " class='tblcell'>$dateTime"; > echo " class='tblcell'>Open"; echo > " class='tblcell'>Payment Type"; > echo " class='tblcell'>Last Processed > By"; echo ""; } echo ""; ?> > Your logic is correct but here is the correct syntax: The key here is the use of ".=" to *append* to the query string (don't forget the space before "AND" or the query will break) Hope that helps, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help wtih a query?

2007-01-30 Thread Brad Bonkoski
Skip Evans wrote: Hey all, I have the following query: $sql="SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_stories AS stories, users AS usr

RE: [PHP] base64-encoding in cookies?

2007-02-07 Thread Brad Fuller
hanks, > Fletcher > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Could it have something to do with url encoding? For example: http://example.com/page.php?foo=ABC+123 echo $_GET['foo']; // should produce: ABC 123 http://example.com/page.php?foo=ABC%2B123 echo $_GET['foo']; // should produce: ABC+123 HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript and $_POST

2007-02-07 Thread Brad Fuller
; > > > When I click on save, it does go thru all the checks correctly and prompts > to enter info if anything is left out. It then passes me to the > save.phppage as it should, but all of my $_POST('X') values come > in blank. >From the looks of it, you hav

RE: [PHP] what do i need to disable

2007-02-08 Thread Brad Fuller
gt; now. The response I got showed me how to disable everything, but I want to > allow basic html tags. http://us3.php.net/strip_tags You can use the optional second parameter to specify tags which should not be stripped. HTH, Brad -- PHP General Mailing List (http://www.php.net

RE: [PHP] Redisplay file name on failed upload

2007-02-13 Thread Brad Fuller
ript which does the validation is the same one which contains the > upload form. I suspect we're completely out of luck - apart from > validating > with JavaScript. Yup. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Banner rotation with links

2007-02-14 Thread Brad Fuller
> > greets > Zoltán Németh > Even better, download this free open source application which does it all for you... http://www.phpadsnew.com/ -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Brad Fuller
INTO TableName(...) VALUES(...) SELECT LAST_INSERT_ID=@@IDENTITY"); $r = mssql_fetch_assoc($q); HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Brad Fuller
> > How about scenario #3: I wish to output my data in (for example) > > three columns, as a phone book does. To make the example simple, > > assume 15 data points. I wish the output to look like > > > > 1 611 > > 2 712 > > 3 813 > > 4 914 > >

RE: [PHP]Password and FTP Folder

2007-02-15 Thread Brad Fuller
> -Original Message- > From: Helder Lopes [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 15, 2007 5:32 AM > To: php-general@lists.php.net > Subject: [PHP]Password and FTP Folder > > Hi people > > hi have a problem > > i need a script for make a ftp folder that have a password for e

RE: [PHP] Retrieve value of newly inserted row.

2007-02-15 Thread Brad Fuller
plays the echo of my query and > returns the echo of "Insert Complete" > > HOWEVER, when I go to look at the data base there is NO data inserted into > table2 even though my query returned that "Insert Complete" statement. > > Any ideas? > > > >

RE: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-15 Thread Brad Fuller
ing is to > > blame. > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I may be way off... but isn't it redundant to use both gmdate() and gmmktime()? I thought each of these functions were used to convert your local time into GMT... So for example if you're GMT+5, the gmmktime() would subtract 5 hours, and then gmdate() would subtract another 5 hours? Like I said - I could be way off, but just a thought. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Problem

2007-02-15 Thread Brad Bonkoski
LoneWolf wrote: I am having a problem where it appears that the session is not being saved properly. While on a page, I can start a session and set variables to it. however, when I go to the next page.. the session variables appear to have been cleared out. first page: session_start(); $_S

RE: [PHP] Session Problem

2007-02-15 Thread Brad Fuller
> -Original Message- > From: LoneWolf [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 15, 2007 4:35 PM > To: php-general@lists.php.net > Subject: [PHP] Session Problem > > I am having a problem where it appears that the session is not being saved > properly. > > While on a page, I ca

RE: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-15 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 15, 2007 3:48 PM > To: 'Terra Frost'; 'Peter Lauri' > Cc: php-general@lists.php.net > Subject: RE: [PHP] plugging gmmktime value into gmdate yields incorre

Re: [PHP] counting hyperlink clicks in php

2007-02-17 Thread Brad Bonkoski
Denis L. Menezes wrote: Dear friends. I have a site where I have news headers. I wish to count the clicks on the news headers so that I can see how many times each of the the news has been viewed. This way I can show the "most viewed" news. Can one of you please advise hwo this can be done?

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Greetings, I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED value is the corresponding numeric value 1-12 for the month. However, the selected value for January would be 1. I need the selected v

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 1:27 PM > To: php-general > Subject: [PHP] Month > > Greetings, > > I have the following code which populates a dropdown box so a user can > select a month. They see the month name and the

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 1:44 PM > To: Jay Blanchard > Cc: php-general > Subject: Re: [PHP] Month > > Okay, so sprintf("%02s", $m) means that the value of $m would be checked > for > the amount of digits returned.

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 2:08 PM > To: Brad Fuller > Cc: Jay Blanchard; php-general > Subject: Re: [PHP] Month > > Okay, when I try the sprintf I get the following error when I

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Brad Bonkoski wrote: Dan Shirah wrote: Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. $months"; try: echo "$months"; your trying to call a function inside of a string... oops..typo, forgot the add

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. $months"; try: echo "$months"; your trying to call a function inside of a string... -B } ?> On 2/19/07, Brad Full

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Just when I think I'm getting the hang of PHP, I get confused beyond belief :| Is this working for you guys? When I test my page only 1/2 of the months show up now. $months"; Still missing a double quote in there. echo "$months"; } ?&

RE: [PHP] WHERE problem

2007-02-19 Thread Brad Fuller
part of your code that generates the random 'index' and just use "ORDER BY RAND() LIMIT 1" in your query. HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Understanding session variables with input field and register_global

2007-02-20 Thread Brad Fuller
want to do it, you could do something like this: foreach($_POST as $key => $val) { $_SESSION[$key] = $val; } HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
Check out... http://www.php.net/gd -B [EMAIL PROTECTED] wrote: after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them to instal php5 with GDlib to be able play with images. they did. and then yesterday (2 months after we moved) I wasn't able to use I

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: Check out... http://www.php.net/gd -B Already did, but didn't find there any answer... :( In the Installation section... To enable support for jpeg-6b add --with-jpeg-dir=DIR. And read above on that page, for what may/may not be needed to install this library

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
I think something like this will work for you.. $start_time = time(); ...loop.. if( time() - $start_time > 5 ) exit; -B Aaron Gould wrote: I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary commands (e.g.: "KPRINT", as seen below

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
/stream_set_timeout Brad Bonkoski wrote: I think something like this will work for you.. $start_time = time(); ...loop.. if( time() - $start_time > 5 ) exit; -B Aaron Gould wrote: I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary comma

RE: [PHP] Getting Similar rows from db

2007-02-23 Thread Brad Fuller
hn Doe 2 John Doe 3 Jack Black 4 Adam Jones 5 Sally Smith The following query: SELECT COUNT(ID) AS NumRecords, FirstName, LastName FROM MyTable GROUP BY FirstName, LastName HAVING COUNT(ID) > 1; Would produce the followi

Re: [PHP] Populating array with function

2007-02-27 Thread Brad Bonkoski
Dotan Cohen wrote: I need to populate an array with the contents of a directory. The following code does not populate the $thumbnailFiles array like I expect that it would: read()) { if ( !is_dir($entry) ) { $files[] = $entry; perhaps look into the array_push() function htt

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Brad Bonkoski
For the record, I will *never* say one size fits all in the realm of computer programming... Consideration 2 If your project is to supply images across several web servers on different host, then you are caught in a sync problem. Images stored in a file system must be stored on a local host

Re: [PHP] Error in Script!!!

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: Erro no banco de dados!");//line 23 Where is $con defined??? -B $total = mysql_num_rows($result_id); // Caso o usuário tenha digitado um login válido o número de linhas será 1.. if($total) { // Obtém os dados do usuário, para poder verificar a senha e passar os demais

Re: [PHP] error in Script

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: In other file I asked because it might prove helpful to see how that is set because this appears to be what is causing your error. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Launch a seperate process

2007-03-06 Thread Brad Fuller
tyvm, I will check it out right away! B > -Original Message- > From: fedt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 5:17 PM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Launch a seperate process > > pcntl_ fork() and pcn

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
> -Original Message- > From: Ed Curtis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 11:47 AM > To: php-general@lists.php.net > Subject: Re: [PHP] php and javascript error > > > >>> > >>> > >>>This produces an "Error on Page" in IE 7, but works perfectly in > Firefox > >>>an

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 12:02 PM > To: 'Ed Curtis'; 'php-general@lists.php.net' > Subject: RE: [PHP] php and javascript error > > > -Original Message-

RE: [PHP] Extract url from string

2007-03-12 Thread Brad Fuller
> -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 1:10 PM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Extract url from string > > On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: >

RE: [PHP] Extract url from string [SOLVED]

2007-03-12 Thread Brad Fuller
On 3/12/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > I tried this: > > preg_match("/http(s)?:\/\/(*.?)\s/", $stringUrl, $matches) > > But my pattern syntax is messed up cuz I get this error: > > Warning: preg_match() [function.preg-match]: Compi

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Brad Bonkoski
I think up2date is *not* up2date ;-) Google for 'yum' and all its flags for usage... -B Jonathan Kahan wrote: Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link be

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
> -Original Message- > From: Jake McHenry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 11:22 AM > To: For users of Fedora; PHP-General > Subject: Re: [PHP] dst and strtotime > > A little more info: > > strtotime("last monday") or yesterday, is correct, but > strtotime("l

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
hurry to upgrade unless you're sure that none of your existing code will break... Search the archives or the web for details. I'm not sure how I would go about fixing this, perhaps replacing "last sunday" with "minus x days" (where x is derived from the day of the

RE: [PHP] mail

2007-03-13 Thread Brad Fuller
ntly discard messages sent from dynamic/residential IP blocks. You might consider configuring your mail server to relay messages through your ISP's SMTP server, though I wouldn't recommend this if you're planning on doing any bulk mailing and are fond of your account with your ISP

RE: [PHP] $_POST array order

2007-03-14 Thread Brad Fuller
> -Original Message- > From: Tim [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 12:58 PM > To: 'PHP' > Subject: [PHP] $_POST array order > > Hi, > > Quick question regarding $_POST array element order, first the situation: > > I am submitting a form with x first fields and t

RE: [PHP] Running PHP on a windows server-your views

2007-03-19 Thread Brad Fuller
> Im assuming it will be running IIS. (shudder) > The site is very important and any issues will hamper the functionality > and accessibility of the site. LOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Brad Fuller
errors like that will cause a startup error, which means your code can't be evaluated. So those 2 lines of code that turn the error reporting on never get executed. Make sure the ini file you're editing is the one PHP is actually using. You can see the path to the ini file in Also make

[PHP] Amazon AWS + SimpleXML

2007-03-19 Thread Brad Fuller
space, but that didn't seem to help... $xml->registerXPathNamespace( "aws", "http://alexa.amazonaws.com/doc/2005-10-05/"; ); var_dump($xml->xpath("//aws:Response")); // produces array(0){} (I tried it with the other url as well, same result) Any advice is

Re: [PHP] close session when browser is closed

2007-03-21 Thread Brad Bonkoski
Alain Roger wrote: Hi, I would like to know what is the best solution for my problem. When a user is connected to a https page and a session is open, if user close his browser, the session ID is still active in the browser "history". It means that next time when user will start his browser, th

Re: [PHP] php support

2007-03-23 Thread Brad Bonkoski
Richard Dunne wrote: Can anyone tell me where to get support for this? Here php5 undefined function pg_connect() postgresql was not built into your version of PHP. Perhaps post which platform your run on, and other information like using a pre-canned binary or are building for source. -B

RE: [PHP] Add New Records Only!

2007-03-23 Thread Brad Fuller
re only querying records where processed=0. Of course this will not work if you cannot modify the MySQL table. Best of luck, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Amazon AWS + SimpleXML

2007-03-23 Thread Brad Fuller
> -Original Message- > From: Myron Turner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 10:24 AM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Amazon AWS + SimpleXML > > Brad Fuller wrote: > > Hey guys, > > > &

Re: [PHP] php support

2007-03-23 Thread Brad Bonkoski
ows/3 Not finding your dll...not sure where those should be stored, might try the "find" function in windows. Otherwise, post back to the list (with reply-all) as others might have better experiences with this. -B I might have to use JSP instead of PHP. Richard - Original Mes

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Brad Fuller
> > -Original Message- > > From: tedd [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 26, 2007 8:49 AM > > To: php-general@lists.php.net > > Subject: RE: [PHP] My own "captcha" from 2 years ago.. > > > > At 10:02 PM -0400 3/25/07, Jake McHenry wrote: > > >Like I said... Even if they h

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) <= 0 ) { ... } don't think empty is the right function for th

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Brad Bonkoski wrote: Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) <= 0 ) { ... } don't think empty is

Re: [PHP] syntax question

2007-03-26 Thread Brad Bonkoski
ters otherwise... 2 options: $query = "INSERT INTO categories (category_name) VALUES ('".$_POST['cat_name']."')"; -or- $query = "INSERT INTO categories (category_name) VALUES ('{$_POST['cat_name']}')"; -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Brad Fuller
> From: tedd [mailto:[EMAIL PROTECTED] > At 10:59 AM -0400 3/26/07, Brad Fuller wrote: > > > >echo ''; > > > >This does not "run" or "call" image.php. > > > >This line of code sends this output to the browser. >

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id = $_POST[

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Davi wrote: Em Terça 27 Março 2007 17:02, Dave Goodchild escreveu: use: $_POST['max_id'] == or even better: if (empty($_POST['max_id'])) Why not: if (!(isset($_POST["max_id"))) ? I think the poster *needs* the value to be set to something... so if (isset(...)) {} would work or

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Should I use something besides mssql_fetch_row to get my result? No matter which method I use for determining if the value exists, I still get no data populated to my form. Why not echo out your query before executing it, so you can run it against the back end if you have it

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
. On 3/27/07, *Brad Bonkoski* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Dan Shirah wrote: > Should I use something besides mssql_fetch_row to get my result? No > matter > which method I use for determining if the value exists, I still

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Send us the output of print_r($row_info) feel free to mask out any data values you may wish. Dan Shirah wrote: echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it shows

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
; Mar 27 2007 5:26PM [25] => Dan Submit [26] => C [27] => TN ) Bold and in red is the first_name column result. use the numeric reference then... [..] is the index into the array, so if you want "John" use $row_info[7] and if you *want* to use the name or associative array rea

Re: [PHP] Date/time format?

2007-03-28 Thread Brad Bonkoski
Jason Pruim wrote: Hi Everyone, First off, I'm using PHP 5.2.0 and apache 1.3.33 I am trying to figure out what format a string is in in a database. It's a timecard system that I have found on-line and I am attempting to figure out how to write a script that would give me everyones timecard

RE: [PHP] Date/time format?

2007-03-28 Thread Brad Fuller
Jason wrote: > Hi Everyone, > > First off, I'm using PHP 5.2.0 and apache 1.3.33 > > I am trying to figure out what format a string is in in a database. > It's a timecard system that I have found on-line and I am attempting > to figure out how to write a script that would give me everyones > time

RE: [PHP] IP Geolocation Scripts

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 12:08 PM > To: php-general@lists.php.net > Subject: [PHP] IP Geolocation Scripts > > Does anyone have any recommendations for existing open source PHP > scripts that use IP Geolocation?

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM > To: php-general@lists.php.net > Subject: [PHP] link on user uploaded pic > > Hi > > which is the best way to change this code > > > > to > >src="images/user_upload/akarmi.jpg">

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:24 PM > To: 'Tana'; php-general@lists.php.net > Subject: RE: [PHP] link on user uploaded pic > > > -Original Message- > > From: Tana [mai

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record & filename is the phone number. But the filenames have dates & other symbols besides the phone number as well. They all do begin with a

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
nks. On 3/29/07 3:22 PM, "Brad Bonkoski" <[EMAIL PROTECTED]> wrote: I'm sure there are many options... I'm also assuming you are pulling from a file system and not a database... So, loop through the directory and do something like this: $phone_num = XXX $cur_file =

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Brad Bonkoski
CK wrote: Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Calculator OOP PHP From class.calculator.php: buildInt(); }

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread Brad Bonkoski
revDAVE wrote: I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not the

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Brad Bonkoski
marcelo Wolfgang wrote: Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's wro

[PHP] regex pattern for extracting URLs

2009-10-23 Thread Brad Fuller
arbitrary attributes in the HTML tag Test it with the following examples: Continue Continue http://example.com/path/to/url.html"; class="link">Continue http://example.com/path/to/url.html"; onlick="someFunction('foo','bar')">Continu

Re: [PHP] regex pattern for extracting URLs

2009-10-23 Thread Brad Fuller
On Fri, Oct 23, 2009 at 1:28 PM, Ashley Sheridan wrote: > On Fri, 2009-10-23 at 13:23 -0400, Brad Fuller wrote: > > I'm looking for a regular expression to accomplish a specific task. > > I'm hoping someone who's really good at regex patterns can lend a quick ha

Re: [PHP] regex pattern for extracting URLs

2009-10-23 Thread Brad Fuller
On Fri, Oct 23, 2009 at 1:48 PM, Ashley Sheridan wrote: > On Fri, 2009-10-23 at 13:45 -0400, Brad Fuller wrote: > > On Fri, Oct 23, 2009 at 1:28 PM, Ashley Sheridan > wrote: > > > On Fri, 2009-10-23 at 13:23 -0400, Brad Fuller wrote: > > > > I'm looking fo

Re: [PHP] regex pattern for extracting URLs

2009-10-23 Thread Brad Fuller
On Fri, Oct 23, 2009 at 1:54 PM, Israel Ekpo wrote: > > > On Fri, Oct 23, 2009 at 1:48 PM, Ashley Sheridan > wrote: >> >> On Fri, 2009-10-23 at 13:45 -0400, Brad Fuller wrote: >> >> > On Fri, Oct 23, 2009 at 1:28 PM, Ashley Sheridan >> > wrote

RE: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Brad Broerman
One thing I would do, and I have done this in many of my applications: a) Store the username / password in a database. b) Encrypt passwords (with a salt) with AES-256 using a key stored in a file OUTSIDE the document path. c) Add code to the beginning of the included file to ensure it is

[PHP] Detecting Multi-Scope Variables

2011-01-31 Thread Brad Lorge
o them by the calling code. I have thought of a method which simply makes a copy of all the parameters for each listener within call_action(), however what I would really love is a function which returns whether or not the supplied variable is available in multiple scopes or is in the original scope which it was initialized in. Does anyone know of a way to achieve this? Regards, Brad

Re: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Brad Lorge
Perhaps my question was not as succinct as it could have been. Basically, can you think of a means through which to detect whether or not a variable is currently present in multiple scopes. IE: On Tue, Feb 1, 2011 at 7:12 PM, Tommy Pham wrote: > > -Original Message- > >

Re: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Brad Lorge
Hmm, would this then be a question for internals? On Wed, Feb 2, 2011 at 9:59 AM, Ashley Sheridan wrote: > "Brad Lorge" wrote: > > >Perhaps my question was not as succinct as it could have been. > > > >Basically, can you think of a means through which to dete

RE: [PHP] Upload Progress Meter

2011-03-24 Thread Brad Broerman
Essentially, they all require Flash or Java... Most use Flash... If you want one that is in Java, and is scriptable in JavaScript, I have one on my website: http://www.bbroerman.net/code.html -Brad -Original Message- From: Floyd Resler [mailto:fres...@adex-intl.com] Sent

[PHP] How PHP handles memory on exit

2011-06-24 Thread Brad Lorge
seful! Regards, Brad

[PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Brad Huskins
currently structured. --Brad [ Yes, this is based on the layout of Linus' original post to comp.os.minix. ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   >