Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Ben Ramsey
the PHP developer community. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
); We've tested the PHP code on files, and it works, but it doesn't work on directories. Our current umask is 0002. We're using PHP 5.2.2 on Linux 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386 GNU/Linux. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 11:45 AM, Tijnema wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: So, what are we doing wrong with chmod() that is causing us to get the wrong results? Keep in mind that we are running the PHP script as the same user who owns the directory. Who is the owner of the directory

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Ben Ramsey
browser! What craziness! ;-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ben Ramsey
does PHP have a CLI? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ben Ramsey
was perfect for the job. I can offer a few MBs for everyone that wants to get learning PHP. megabytes? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Ben Ramsey
XML from a URL. Do I get the $35 anyway for the consultation? ;-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Really strange

2006-10-04 Thread Ben Ramsey
and you're trying to include config.inc, then it obviously can't find it because it doesn't exist. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Really strange / TYPO

2006-10-04 Thread Ben Ramsey
a file one directory above it. Ben Ramsey wrote: On 10/4/06 8:32 PM, Deckard wrote: Hi, I have this line of code: include_once('../config.inc.php'); I'm 100% sure that the file config.inc.php is a directory up. config.inc.php is in /var/www/html and the file that calls it is in /var/www

[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
? Use double quotation marks instead of single quotation marks: \n See here for why: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
the form with other values in POST than you intend. So, there are two things you must do here: 1) always check the origin of your data (don't use $_REQUEST, even if it seems convenient), and 2) always check that the input received is input expected (filter the input). -- Ben Ramsey http

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
(validate) the input. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
you can't tell the scope of the data. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
at least know it comes from an HTTP request, so you know not to trust anything from it. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: running php method in the background

2006-06-08 Thread Ben Ramsey
so that i can process user input while not interrupting the protocol. Have you looked at pcntl_fork()? http://www.php.net/pcntl-fork -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pear DB and memcached

2006-06-06 Thread Ben Ramsey
(DB_FETCHMODE_ASSOC); $data = $db-getAll($sSQL); memcache_set($MEMCACHE_STR, MD5($sSQL), $data, 0, 10); Now, your result set is stored properly on the memcache server. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Filtering and Escaping (Was: Select and $_POST)

2005-11-14 Thread Ben Ramsey
is going, so $url, $sql, $html, etc. But, with that in mind, it wouldn't be too hard to use $_OCLEAN['url'], $_OCLEAN['sql'], and $_OCLEAN['html'] as arrays within the $_OCLEAN array. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Ben Ramsey
is that the developer should be able to trust the data in $clean. If PHP had a taint mode and didn't have register_globals, then we'd be making some progress. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
in because it will have already expired. This alleviates the exposure issues I was discussing. Hope this helps. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 9:45 AM, Paul Williams wrote: ?php print EOF HTML $_SERVER['PHP_SELF'] /HTML EOF; ? Try it with curly braces: ?php print EOF HTML {$_SERVER['PHP_SELF']} /HTML EOF; ? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
it this way: ?php print EOF HTML $_SERVER[PHP_SELF] /HTML EOF; ? Personally, I put curly braces around all interpolated variables because it makes it easier for me to read and see the variables, but this is really up to user preference. -- Ben Ramsey http://benramsey.com/ -- PHP General

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 10:03 AM, Paul Williams wrote: So would it be acceptable if I used curly braces on all variables (whether superglobals or not) in a here document? Yes. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
probably not very sensitive). Does this answer your question? And, yeah, denying used order numbers would be a good idea. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
, and if this is a route you want to take, I would suggest looking at PEAR::HTTP_Request, since it provides an easy to use API for this. I, however, don't think you'll need to do this (at least it doesn't sound like something that's necessary given what I know about your form). -- Ben Ramsey http://benramsey.com

Re: [PHP] java .vs php

2005-11-09 Thread Ben Ramsey
://public.yahoo.com/~radwin/talks/php-at-yahoo-zend2005.pdf -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unable to send variables to MySQL table

2005-11-09 Thread Ben Ramsey
$add_to_db. Then take the echoed line and try to run it against the database. Does it still work, then? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Select and $_POST

2005-11-09 Thread Ben Ramsey
something it shouldn't. This, of course, assumes you're using MySQL, but there are other escaping functions for other databases. Just look in the PHP manual. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Richard Lynch's Email Address ...

2005-11-09 Thread Ben Ramsey
of work into it to help out with this. In the meantime, check out PEAR::Mail, which includes Mail_RFC822 that can be used to validate e-mail addresses. Also, if your PHP is compiled --with-imap, then you can use imap_rfc822_parse_adrlist() to validate e-mail addresses. -- Ben Ramsey http

[PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
individual host and access the same profile. So, you'll need to authenticate the user when they visit a new host. This may be a decrease in usability, but it's an increase in security. For more information about sessions, read the manual: http://www.php.net/session -- Ben Ramsey http

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
increases the risk of exposure. [Hi Ben!] -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
-- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
to share sessions across two different domains. If you must share profile information, then (in my opinion) require authentication and a separate session on the second domain. Otherwise, use a subdomain to share sessions. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
a NULL value? You should filter your variables before you use them--even variables coming from $_SERVER. Remember, $_SERVER variables can be overwritten: $_SERVER['SERVER_NAME'] = 'Howdy Doody'; echo $_SERVER['SERVER_NAME']; So, make sure they're what you expect them to be. -- Ben Ramsey http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:52 PM, Ben Ramsey wrote: I know this is off-topic for this thread, but just as I see isset() misused (as in this case), I often see empty() misused. For example, when using empty(), the following all return TRUE: On second thought, misused is the wrong word. I mean misunderstood

[PHP] Deadlock with session handling code?

2005-09-08 Thread Ben Ramsey
The following message is from a co-worker. I'm passing it along as a favor. Any help would be greatly appreciated since we're both somewhat stuck with no clue how to proceed with this. Thanks, Ben Ramsey I'm having a major problem with my PHP scripts getting stuck on one of our production

[PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Ben Ramsey
://wvware.sourceforge.net/ Word2x: http://word2x.sourceforge.net/ -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread Ben Ramsey
Please always reply to the list so that others can benefit from the exchange. As it happens, I'm not exactly very knowledgeable about character sets, so someone on the list may be able to offer more help with regard to the problem you're experiencing. -Ben areguera wrote: On 8/19/05, Ben

[PHP] Re: Catching all errors and redirecting

2005-08-18 Thread Ben Ramsey
://www.php.net/set_error_handler -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
to use the stripslashes() function. Using stripslashes() will remove slashes that were intended to be in the output. Hint: turn off magic_quotes_gpc. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php cli script with if-then's very slow

2005-08-18 Thread Ben Ramsey
time. When you execute it, you are executing the compiled code that the machine natively understands. PHP, on the otherhand, is not compiled and has to be interpreted by the PHP engine each time it is run. This is, naturally, going to make it slower than C. -- Ben Ramsey http

[PHP] Re: Custom session handling - bad or good idea?

2005-08-18 Thread Ben Ramsey
Schlossnagle's _Advanced PHP Programming_ book. Take a look at pages 564 through 568. He talks about writing a custom session handler in C. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
said in this thread, the problem is on quoting and maybe on converting the values to entities, to prevent some quote break the sql structure. You don't need to convert the values to HTML entities when saving to a database. That's not going to prevent this problem. -- Ben Ramsey http

[PHP] Re: date field

2005-08-10 Thread Ben Ramsey
than 1 year ago (or should I think of 365 days)? `updated` date NOT NULL default '1999-12-12' I've looked at: http://ca3.php.net/manual/en/function.getdate.php Thanks, John -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] reading PDF's

2005-07-01 Thread Ben Ramsey
/ As for reading the text from a PDF, maybe there's some sort of OCR library for PHP out there, but I don't know about it. It'd be a great thing to see, though. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
BY id $order ); The rest of it looks fine to me. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
don't want to promote illegal activities on this mailing list. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: shared library in php

2005-04-11 Thread Ben Ramsey
the extension you're looking for. If it's a library you created and you want to use it as a PHP extension, take a look at the PHP manual, particularly the section on creating extensions: http://www.php.net/manual/en/zend.creating.php -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
permissions to the Web directory. In general, permission settings under Windows suck. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey [EMAIL PROTECTED] wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
(files/.$this-File_Name, 0777); See here for more info: http://us2.php.net/chmod Like I said, I'm not sure whether this is the cause of the problem, but give it a shot and see what happens. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

[PHP] Re: php rich text editors

2005-04-07 Thread Ben Ramsey
DuSTiN KRySaK wrote: Can anyone refer me to anything that will work with PHP? Just need it for a blog type application. FCKEditor works well, has a PHP version, and is cross-browser: http://www.fckeditor.net/ -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List

[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
/package.mail.mail.intro.php. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the standard installation of PHP on FC3, then it won't have pcntl enabled with --enable-pcntl because it's not enabled by default. You will have to recompiled PHP with this feature. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the first note about leaving the program running in the background. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Fw: Identify which function called another

2005-01-12 Thread Ben Ramsey
(): http://www.php.net/debug-backtrace Harry Fuecks has an excellent post on how to use debug_backtrace() here: http://www.sitepoint.com/blog-post-view.php?id=157007 -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Checking if

2005-01-11 Thread Ben Ramsey
), '/') == 0) { // it ends with a '/'; strip it off $url = substr($url, 0, -1); } -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community

[PHP] Re: Finding the location of an included script

2004-12-09 Thread Ben Ramsey
Gadi Cohen wrote: So if I have: include(/path/to/backend.php); Is there a way from inside of backend.php to return /path/to ? Check out the filesystem functions in the PHP manual. You're probably particularly interested in pathinfo() http://www.php.net/pathinfo -- Ben Ramsey Zend Certified

[PHP] Re: Return value in Combo Box

2004-11-30 Thread Ben Ramsey
=selected'; } ?Foo/option option value=2?php if ($_POST['foo'] == '2') { echo ' selected=selected'; } ?Bar/option /select Another option is to use something like PEAR::HTML_QuickForm, which can do the validation for you: http://pear.php.net/package/HTML_QuickForm -- Ben Ramsey Zend Certified

[PHP] Re: apache2 php stability

2004-11-29 Thread Ben Ramsey
--with-apxs2 and Apache 2 in production environments without problems. -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community

[PHP] Re: Why $a +1 is not 02 ??

2004-11-23 Thread Ben Ramsey
() function: http://www.php.net/str_pad Looks like this: $a = 1; echo str_pad($a+1, 2, 0, STR_PAD_LEFT); This will output 02 as desired. -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's

[PHP] Re: session.use_trans_sid

2004-11-12 Thread Ben Ramsey
until the next loading of a page that the cookie should be visible for. -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community

[PHP] Re: probably stupid, but...

2004-11-12 Thread Ben Ramsey
- How can I go about iterating through the script? or do I just need to write 20 if/else statements and separate inserts? -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's

[PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
the problem. It should be: $hdrs = array( From = [EMAIL PROTECTED], Cc = [EMAIL PROTECTED], Subject = Tests ); -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's

Re: [PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
them using PHP's polygon function. -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-08 Thread Ben Ramsey
://www.htdig.org/ I've used the Zoom search engine by Wrensoft http://www.wrensoft.com/zoom/ with PHP on a Windows system, and it worked well. Also, I've never used it, but I've heard that mnoGoSearch works, well, too. -- Ben Ramsey Zend Certified Engineer http://benramsey.com

[PHP] Re: Variable for search results

2004-11-08 Thread Ben Ramsey
to do, but you could just do something like this: $curdate = date('Y-m-d H:i:s'); $sql = SELECT * FROM records WHERE '$curdate' = PostStart;; -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org

Re: [PHP] Re: Variable for search results

2004-11-08 Thread Ben Ramsey
Stuart Felenstein wrote: --- Ben Ramsey [EMAIL PROTECTED] wrote: I'm not exactly sure what the SQL statement you have above is supposed to do, but you could just do something like this: $curdate = date('Y-m-d H:i:s'); $sql = SELECT * FROM records WHERE '$curdate' = PostStart;; I'm having some

[PHP] Re: PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Ben Ramsey
Frantzcy Paisible wrote: I'm looking for some information, rearging mcrypt. Now, I've been through the normal channels, I've been going in in cercles. even a simple Look this way would help. Look this way: http://www.php.net/mcrypt :-) -- Ben Ramsey Zend Certified Engineer http://benramsey.com

Re: [PHP] Re: PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Ben Ramsey
it. http://mcrypt.sourceforge.net/ -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing List

Re: [PHP] Question: Validation on a text field

2004-11-04 Thread Ben Ramsey
/mysql_real_escape_string -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing List (http

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
and follow the subsequent pages to read more about PHP and what it can do. It'll also take you through a tutorial that's fairly helpful. -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
. There're plenty of resources on it. -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing List (http

[PHP] Re: Question about function dns_check_record

2004-11-01 Thread Ben Ramsey
{ function __construct() { } } the construct or descontruction are not working? Are you using PHP 5? If you're still on PHP 4, then that's the problem. -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org

Re: [PHP] PHP Working With Excel File ?

2004-11-01 Thread Ben Ramsey
/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm You could also just use the MySQL database and have a PHP script that outputs the contents of your report to a CSV (comma-separated value) file with an extension of .csv. Excel will automatically open these files without problem. -- Ben Ramsey Zend

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
just use: $OrderObject = $value; Try that and see if it works. -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
Ben Ramsey wrote: Victor C. wrote: $OrderObject =$this-orders[$OrderID=$value]; This line is confusing. $OrderID=$value is either a typo or is just plain wrong. It looks like what it's meant to say is: $OrderObject = $this-orders[$OrderID]; But this will just set $OrderObject equal

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
to make sense of it. View the source of the page and grab it from there, please. :-) -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community

[PHP] Re: php command to open a url?

2004-10-31 Thread Ben Ramsey
the Location header: http://www.php.net/header -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing List (http

[PHP] Re: SOAP w/PHP 4

2004-10-31 Thread Ben Ramsey
by Adam Trachtenberg and entitled Talking to eBay with PHP SOAP. Unfortunately, it's not available on-line, but you may be able to find a copy in a bookstore or order it from the PHP Magazine Web site. http://www.php-mag.net/itr/ausgaben/psecom,id,229,nodeid,112.html -- Regards, Ben Ramsey http

[PHP] Re: Code help on a multi select list

2004-10-29 Thread Ben Ramsey
} -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Ben Ramsey
legitimate users a more user-friendly approach, while still ensuring from the server-side that no one's going to spoof your form. -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Ben Ramsey
understand this response. ;-) How is Javascript the /only way/ to do a /server-side/ trap? Javascript is for the client side (unless you're coding in ASP and choose to use JScript instead of VBScript). -- Regards, Ben Ramsey http://benramsey.com

[PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
Dan Joseph wrote: Does PHP 4 support SOAP, or does something have to be added to it?? Check out these functions, which are listed as experimental: http://www.php.net/soap Or this PEAR package, which is still in beta stage: http://pear.php.net/package/SOAP -- Regards, Ben Ramsey http

Re: [PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
are listed on the package download page.) It's a bit of a pain to do all that, but if you can't use the PEAR installer, it's a way around it. :-) -- Regards, Ben Ramsey http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier

[PHP] Re: Newbie again: get no $QUERY_STRING

2004-10-27 Thread Ben Ramsey
so $QUERY_STRING won't work. DO NOT turn on register_globals. Instead, use $_SERVER['QUERY_STRING'] as a replacement for $QUERY_STRING. Read here for more info: http://www.php.net/variables.predefined -- Regards, Ben Ramsey http://benramsey.com

[PHP] Re: creating a folder in php

2004-10-12 Thread Ben Ramsey
the part about the Content-Disposition header. -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Ben Ramsey
to choose a file to upload. -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] folder creation in php

2004-10-12 Thread Ben Ramsey
to prompt the user to download the file with the correct filename you specify. -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Ben Ramsey
are everywhere. So, let's go fishing! -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
['question'])) test_var(); }//end of insert_to_question func insert_to_question(); ? -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
to mention that you may want to consider using PEAR::HTML_QuickForm as a way to rapidly develop forms that also provides form validation. http://pear.php.net/package/HTML_QuickForm -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org

[PHP] Re: PHP Linux locate to html script?

2004-09-03 Thread Ben Ramsey
Have you taken a look at the passthru() function? http://www.php.net/passthru Boot wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... -- Regards, Ben Ramsey http

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Ben Ramsey
a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... [/snip] exec(locate foo); -- Regards, Ben Ramsey http://benramsey.com --- http

[PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --- PGP Key ID: 0x3968B5EE -- PHP General

[PHP] Re: PHP with Access DB without ODBC

2004-09-01 Thread Ben Ramsey
Juan Torres wrote: how can i connect php with an access db. I need to do it without use ODBC. Try using COM: http://us4.php.net/com It works similar to the way it does in ASP. -- Regards, Ben Ramsey http://benramsey.com --- http

Re: [PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
in this function) /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c:416: `PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) make: *** [ext/pcre/php_pcre.lo] Error 1 Curt Zirzow wrote: * Thus wrote Ben Ramsey: I'm having a problem with PHP 4.3.8 failing to 'make' on a RedHat Enterprise

  1   2   3   >