Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Ben Ramsey
activity within 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

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. &

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 >> dire

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 >> dire

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 >> dire

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

2007-08-02 Thread Ben Ramsey
27;/path/to/dir', 02775); 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 Ra

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Ben Ramsey
olor in my 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

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

2007-03-08 Thread Ben Ramsey
/www.php.net/simplexml_load_file to load 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

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

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ben Ramsey
and line. Why else 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] Re: Really strange / TYPO

2006-10-04 Thread Ben Ramsey
to include 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 tha

[PHP] Re: Really strange

2006-10-04 Thread Ben Ramsey
#x27;); If config.inc.php is the correct file you want to include 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

[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
ars in the file the string \n How can i make the line break ? 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

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
good thing is that you 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

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
COOKIE because 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
) always filter (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
2) always check that the input received is input expected (filter the input). -- 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
background 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->setFetchMode(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
7;s suggestion of using an output array that is named according to where the data 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 arr

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Ben Ramsey
he purpose of the clean array altogether. The point 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

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

2005-11-09 Thread Ben Ramsey
. 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://benramsey.com/ -- PHP General Mailing

[PHP] Re: Select and $_POST

2005-11-09 Thread Ben Ramsey
ur needs. Then, it ensures that data sent to the database in the SQL statement is always escaped so that it doesn't try to do 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: Unable to send variables to MySQL table

2005-11-09 Thread Ben Ramsey
On 11/9/05 2:15 PM, Stewart Priest wrote: Comment out the mysql_query() line and just echo $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

Re: [PHP] java .vs php

2005-11-09 Thread Ben Ramsey
Try here for your "proof": http://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

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

2005-11-09 Thread Ben Ramsey
t means, 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 you

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

2005-11-09 Thread Ben Ramsey
g the order and pass the order number through the query string (since it's 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] 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] Using the echo tag...

2005-11-09 Thread Ben Ramsey
have also done it this way: $_SERVER[PHP_SELF] 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 9:45 AM, Paul Williams wrote: $_SERVER['PHP_SELF'] EOF; ?> Try it with curly braces: {$_SERVER['PHP_SELF']} EOF; ?> -- 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
), it won't allow others to use it to log 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] 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 wo

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
en you need to consider why you're even getting 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['SERVE

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

2005-11-08 Thread Ben Ramsey
I imagine. So, I say all that to say this: I just don't think it's a good practice 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 t

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
. You can also use curly braces: "From: {$_POST["from"]}\r\n" -- 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
ET that floats all over the 'net. :-) Indeed, neither are secure, but GET 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

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

2005-11-08 Thread Ben Ramsey
ase. Thus, users can log into each 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: ht

[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

[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

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/

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
not htmlentities(). as previously 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

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

2005-08-18 Thread Ben Ramsey
will point you to George 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

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

2005-08-18 Thread Ben Ramsey
then executed at a later 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 tha

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
o a database, you should never have 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: Catching all errors and redirecting

2005-08-18 Thread Ben Ramsey
ler() http://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: date field

2005-08-10 Thread Ben Ramsey
w can I tell if the date is older 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 (

Re: [PHP] reading PDF's

2005-07-01 Thread Ben Ramsey
ourceforge.net/ 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

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
t. We 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: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
$order = "ASC" break; } mysql_query(" SELECT * FROM data ORDER 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] 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: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
should be: chmod("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

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

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

2005-04-11 Thread Ben Ramsey
"full" or "modify" 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: shared library in php

2005-04-11 Thread Ben Ramsey
lready has 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] 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
et/package/Mail> can do all this for you. Take a look at the documentation here: <http://pear.php.net/manual/en/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

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

2005-01-26 Thread Ben Ramsey
sthru>. Take a look at that manual page and read 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: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
;re using 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 (

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

2005-01-12 Thread Ben Ramsey
_backtrace(): 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 unsubscr

[PHP] Re: Checking if

2005-01-11 Thread Ben Ramsey
rcmp(substr($url, -1), '/') == 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.or

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

[PHP] Re: Return value in Combo Box

2004-11-30 Thread Ben Ramsey
which can do the validation for you: <http://pear.php.net/package/HTML_QuickForm> -- Ben Ramsey Zend Certified Engineer http://benramsey.com --- Atlanta PHP - http://www.atlphp.org/ The Southeast's prem

[PHP] Re: apache2 & php stability

2004-11-29 Thread Ben Ramsey
ve been running PHP using --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 Southeas

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

2004-11-23 Thread Ben Ramsey
answer your question, just use the str_pad() 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 -

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

2004-11-12 Thread Ben Ramsey
p.net/mysql> I would suggest you read up on how variables get processed, as well. <http://www.php.net/variables> $message .= "The entry $i was entered "; $i++; } else { $i++; } } But I get THIS error in the log: [12-Nov-2004 14:59:19] PHP Parse error: parse error, unexpec

[PHP] Re: session.use_trans_sid

2004-11-12 Thread Ben Ramsey
will not become visible 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&#x

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 '$curd

[PHP] Re: Variable for search results

2004-11-08 Thread Ben Ramsey
he 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;"; -- Ben Ramsey Zend Certified Engineer http://benramsey.com

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

2004-11-08 Thread Ben Ramsey
This/ http://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 Certifie

Re: [PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
mehow turn these strings into coordinates so I can draw 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] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
drs array, you're missing a comma separating Cc from Subject. That's probably causing the problem. It should be: $hdrs = array( "From" => "[EMAIL PROTECTED]", "Cc" => "[EMAIL PROTECTED]", "Subject" => &q

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

2004-11-05 Thread Ben Ramsey
be wrong, since I've never used 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] 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 Rams

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

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
ing 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 c

[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 $Ord

[PHP] Re: php array question

2004-11-01 Thread Ben Ramsey
to $value, so you should 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

Re: [PHP] PHP Working With Excel File ?

2004-11-01 Thread Ben Ramsey
itknr/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

[PHP] Re: Question about function dns_check_record

2004-11-01 Thread Ben Ramsey
d be the problem. and also class Dog { 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 --

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
javascript, etc. 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 G

Re: [PHP] calling javascript

2004-11-01 Thread Ben Ramsey
tp://www.php.net/introduction> 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 ---

[PHP] Re: SOAP w/PHP 4

2004-10-31 Thread Ben Ramsey
. It's 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,1

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

2004-10-31 Thread Ben Ramsey
ically 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.

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

2004-10-29 Thread Ben Ramsey
ll. (The dependencies 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

[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

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

2004-10-29 Thread Ben Ramsey
d to do both. I don't 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 Ra

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

2004-10-29 Thread Ben Ramsey
cking. That way, it gives your 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.atlp

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

2004-10-29 Thread Ben Ramsey
y sure of the logic behind your code, so I can't really comment on what you're trying to do, but, assuming you're trying to only count the unique values picked on the form, you'll want to do something like this: $l_industry = array_unique($_REQUEST['LurkerIndustry']

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

2004-10-27 Thread Ben Ramsey
d off 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 R

Re: [PHP] creating a folder in php

2004-10-12 Thread Ben Ramsey
e worms 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: [PHP-DB] folder creation in php

2004-10-12 Thread Ben Ramsey
uations and force the browser 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
to work on Mac and PC. thx in advance Adil.. What's wrong with: This isn't even PHP. Because the OP is asking for how to have it prompt the user where to save a (assumingly downloaded) file--not how to choose a file to upload. -- Regards, Ben Ramsey http://benramsey.com -- PHP Gener

[PHP] Re: creating a folder in php

2004-10-12 Thread Ben Ramsey
r Specifically, read 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

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
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: validate a tag

2004-10-05 Thread Ben Ramsey
se fill out question field."; display_form(); }//end of if }//end of func function insert_to_question() { display_form(); while(empty($HTTP_POST_VARS['question'])) test_var(); }//end of insert_to_question func insert_to_question(); ?> -- Regards, Ben Ramse

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

2004-09-03 Thread Ben Ramsey
] 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... [/snip] exec("locate foo"); -- Regards, Ben Ramsey http://benramsey.com

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

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
again with the -mssql switch but it still doesn't seem to be therethe -mssql isn't on the info page...I don't have a clue... http://mwvre.ht-tech.net/info.php On Wed, 01 Sep 2004 15:08:41 -0400, Ben Ramsey <[EMAIL PROTECTED]> wrote: Like I and others have said, you

[PHP] Re: xml tags interfere with php tags

2004-09-01 Thread Ben Ramsey
Just do it like this: '; ?> Josh Close wrote: How do I get an xml tag to work with a php script? php is trying to parse that. -Josh -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community V

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
x27;Submit' and $POST['SubmitForm'] is empty. Why's that? Check to make sure you're using $_POST['SubmitForm'] and not $POST['SubmitForm']. -- Regards, Ben Ramsey http://benramsey.com --- http://www.ph

  1   2   3   >