[PHP] Remote MySQL Connecton Problems

2009-05-06 Thread Ray Hauge
Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's no information in mysql_error. In fact, mysql_select_db(

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Ray Hauge
Nathan Rixham wrote: Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's

Re: [PHP] Jabber conection manager

2007-02-04 Thread Ray Hauge
a base if you wanted. It's GPL. -- Ray Hauge Primate Applications -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Amortization calculator

2007-02-05 Thread Ray Hauge
download on it. -- Ray Hauge Primate Applications -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LOL, preg_match still not working.

2007-02-17 Thread Ray Hauge
's the error you are getting? Ray Hauge Primate Applications Beauford wrote: Hi, I previously had some issues with preg_match and many of you tried to help, but the same problem still exists. Here it is again, if anyone can explain to me how to get this to work it would be great - otherwise I&#x

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge
viously that's no longer in effect though. It has also been allowed after certain wars to beef up the population again. http://en.wikipedia.org/wiki/Polygamy#Christianity I typically don't use wikipedia for sole sources, but everything else I could find was some

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge
ed so long because of this. I'm just glad there's a lot of sinners out there, or at least people who aren't that crazy :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
e of the design patterns in my program!" Just a few months later the speaker ended up being in charge of maintaining that program, and it was a nightmare. To make a long story short. I generally do what's easiest. It's typically faster to develop and easier to mai

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
rs, Rob. You're right. I just started reading this list again after a 1.5 year break, and I still remember some of the great discussions with Richard and others about OOP. Great times :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
e->columnName I'm pretty happy with how it's working now, but I'm concerned I might have misses some sort of security issue. I only had a work week to finish the entire project. We only have MySQL databases, so I didn't need to abstract different types of databas

Re: [PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
Daniel Brown wrote: Should catch(e) really be catch(Exception $e) ? Something like that. I was paraphrasing, which seems weird, since I was looking at the code for the class description anyway :) Thanks for the info. -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Ray Hauge
ith him. http://terrychay.com/blog/article/mephisto-ruby.shtml http://terrychay.com/blog/article/is-ruby-the-dog-and-php-the-dogfood.shtml -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Ray Hauge
Also, don't forget CSS. It comes in really handy. I still use w3cschools to look up the property names I can't remember, but it's got a lot of great resources to point you in the right direction. http://www.w3schools.com/ -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance Problem

2008-02-27 Thread Ray Hauge
if you're just messing back, but it was at least interesting for me to read the progression of events and learn a little bit myself :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Ray Hauge
x27;re assigning the $row1['tableName'] to $table rather than $_SESSION['table']. Is that intended? $table isn't defined in the top function, so it would most likely return null. Also, since you're only expecting one result, you could do away with the while loop and just run $row1 = mysql_fetch_array($loginResult). It would accomplish the same goal (nitpicking... sorry). Also, why are there two return statements? The second will never run. Maybe I missed something though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Ray Hauge
37 www.raoset.com [EMAIL PROTECTED] You could return an array with string keys. $array['table'] = 'asdf'; $array['authenticated'] = false; return $array; That's just one option, but it would work. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test

2008-02-27 Thread Ray Hauge
I recently figured out how to use two SMTP accounts in Thunderbird. Hopefully this will help the list to not count me as spam so much (I was using my own host to send as gmail... doesn't work so well). Thanks, -- Ray Hauge www.primateapplications.com -- PHP General Mailing List

Re: [PHP] Functions not available when run as Scheduled Task?

2008-02-27 Thread Ray Hauge
self a time or two. Check the output of phpinfo(); or C:\php5\php.exe -v (I think that'll work on Windows). -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ZCE guidance needed

2008-02-28 Thread Ray Hauge
ardest part for me was just setting a date and stop procrastinating. The test was easier than I was expecting, though there were a few things that I didn't know on there. The tests were my best training though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://

Re: [PHP] ZCE guidance needed

2008-02-28 Thread Ray Hauge
t that's just me. There were a lot of odd functions in there. I can't even remember the ones that I didn't even know existed. There were also questions about how to configure PHP, so look at the php.ini options as well. -- Ray Hauge www.primateapplications.com -- PHP General M

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Ray Hauge
s it Thunderbird/Gmail (I use IMAP forwarding). -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Ray Hauge
Daniel Brown wrote: On Thu, Feb 28, 2008 at 10:25 AM, Ray Hauge <[EMAIL PROTECTED]> wrote: Since we're talking about post issues I'll include this. I don't seem to receive my own emails. Does the list not send them back to you? I haven't been able to find anythin

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Ray Hauge
ol. I wasn't sure if it would work with numerically indexed arrays, so I tried: // sillyFunc returns array(0=>1, 1=>2); ArrayClass::create(sillyFunc())->{"0"} I just tested it, and that works. If you leave off the curly braces and quotes, then you obviously get a p

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Ray Hauge
ou can get gvim for Windows) or Kate. I've tried Quanta as well, but I use Linux for my desktop. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions

2008-02-28 Thread Ray Hauge
es date so that the information will be available tomorrow, next week, etc. You *could* increase the session cookie lifetime, but I wouldn't count on the data being available through a session, especially if they close their browser. -- Ray Hauge www.primateapplications.com -- PHP Gener

Re: [PHP] auto-wrap on posts

2008-02-29 Thread Ray Hauge
so if you were using the gmail client, you'd see your response. The FAQs say that it'll send your message through IMAP/POP if someone replies to your message, but gmail doesn't do nested threads, so I think it doesn't know all the time when you were replied to. -- Ray Haug

Re: [PHP] Weird Results from Curl

2008-02-29 Thread Ray Hauge
Wolf wrote: Ray Hauge <[EMAIL PROTECTED]> wrote: Wolf wrote: I'm curling a site to process some data, all well and good but the results are baffling... $result = curl_exec($ch); curl_close($ch); echo "".gettype ($result); Of course that's not all the cod

Re: [PHP] Weird Results from Curl

2008-02-29 Thread Ray Hauge
utputting the numbers, or is that part of the output from curl? gettype should be returning a string, so I wouldn't think that gettype would be returning the numbers. Are you using the CURLOPT_RETURNTRANSFER option? If so, then $result would have the text of the site on success, and false on

Re: [PHP] What design patterns do you usually use?

2008-02-29 Thread Ray Hauge
- http://sperling.com http://ancientstones.com http://earthstones.com Aww man, I was getting curious to see how nested this conversation would get. Think of the children! :) PS. Happy Friday!!! PPS. I'm hopped up on caffeine so ignore any stupid remarks. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone jump from Studio 5.5.x -> Zend Eclipse?

2008-03-02 Thread Ray Hauge
t expected and hasn't bothered me too much. I've been using the official Zend Eclipse now since the day it came out. Next week I'm going to switch back to regular Zend Studio. It was nicer on the RAM and for the most part "Just Worked"(TM). That's my experi

Re: [PHP] Preserving URL after redirect?

2008-03-05 Thread Ray Hauge
't specify absolute paths... I have a few scripts that use the include_path, and they look something like: That way I just have the initial call to set the include path, and I don't have to worry about it anymore. -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] CVS Scripts

2008-03-06 Thread Ray Hauge
output if you need $cmd = escapeshellcmd('/path/to/module/configure'); $output = shell_exec($cmd); echo "done!"; ?> Something like that anyway. That's overly simplified of course, but it should get you a start if you want to write it yourself. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CVS Scripts

2008-03-06 Thread Ray Hauge
d have been cool, but it would have been complicated. We didn't have the time to work on it. I think Trac is somewhat similar. PS. sorry for the thread hijack :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Transferring files between computers using php

2008-03-06 Thread Ray Hauge
l for you. Maybe even SCP, since you already have the keys on server A (as long as you don't have a password when connecting to B or C). rsync can work over SSH as well, and you could create a simple script to run rsync as often as you need. haha, I guess that's not exactly seconding N

Re: [PHP] SMTP

2008-03-09 Thread Ray Hauge
ue might be that your SMTP server is MS Exchange, and it requires authentication. If that is the case, then search for php SMTP authentication: http://www.google.com/search?q=php+smtp+authentication&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a -- R

Re: [PHP] Unexcepted $this

2008-03-10 Thread Ray Hauge
have the side-effect of being marginally faster too. $extension = $this->getFileExtension($file); if ($extension == 'gif' || $extension || 'png' || $extension == 'jpg') { // do something } That might help, but I would think that the way you had it would al

Re: [PHP] Unexcepted $this

2008-03-10 Thread Ray Hauge
Philip Thompson wrote: On Mar 10, 2008, at 8:32 AM, Ray Hauge wrote: Murat BEŞER wrote: I can't under stood but PHP gaves me an error: "UnExcepted $this" for " || $this->getFileExtension($file) == 'jpg' " When I removed jpg extension check it'

Re: [PHP] CSV speed

2008-03-11 Thread Ray Hauge
#x27;\n' (field1, filed2, field3); I've had to do imports of a million or more records from CSV files, and PHP is a lot slower than MySQL at importing them :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie

2008-03-12 Thread Ray Hauge
ll setcookie(); If nothing else it'll help with diagnosing this error when you run into it again. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Quick Reminder....

2008-03-12 Thread Ray Hauge
ou're good. As far as replies, I like bottom posting because it keeps the conversation flow more in tact. GMail does a good job regardless of bottom or top posting though. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Ray Hauge
pect? It's people like you that turn a lot of people off to Ruby. The community is insane! This was a great read. If nothing else he's funny. http://terrychay.com/blog/article/php-ruby-evil-good.shtml -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Ray Hauge
Ray Hauge wrote: Greg Donald wrote: On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: Just because someone got a flashy new toy doesn't mean I want it. I've got better things to do than play with flashy toys for the mere purpose of playing with flashy toys. I like to us

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Ray Hauge
Greg Donald wrote: On 3/12/08, Ray Hauge <[EMAIL PROTECTED]> wrote: You come to a PHP mailing list to proclaim that RoR is better? No dumbass, I have already been here for a long time: This is my last post on this thread. It's obvious nobody is going to convince anyone el

Re: [PHP] Unexcepted $this

2008-03-13 Thread Ray Hauge
assist in locating odd characters if that's the case, though I'd think that your editor would display them as well. Usually an "Unexpected " means that you missed a parenthesis or curly brace, etc. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http:/

Re: [PHP] Objects as array key names??

2008-03-15 Thread Ray Hauge
imensional array down to a single dimension. In order to use the data, you'd have to use array_keys() or something similar to use it though. It's an interesting idea, but I don't know how practical it would be. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Closures

2008-03-18 Thread Ray Hauge
ctions. The point about it causing confusion with people coming from other languages definitely applies though. This article also gives me a second idea for this post. How many people would want closures in PHP? In summary: Would you want closures in PHP, and why? -- Ray Hauge www.primateappli

Re: [PHP] Closures

2008-03-18 Thread Ray Hauge
s? All I could find was a bunch of bug reports and other stuff that wasn't what I was looking for. I would have thought there'd be a page for it in the manual, but I didn't find one there either. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Ray Hauge
eredoc. I would suggest not using "{$_POST["param1"]}", like you said. It's just going to make PHP figure out the string, then put the value in that string. If you really wanted to make sure it's a string type then you can do (string)$_POST['param1

Re: [PHP] spider

2008-03-21 Thread Ray Hauge
and Cheers, tedd Have a look at something like this: http://simplehtmldom.sourceforge.net/ I haven't used it, but if it works you should be able to pull up a list of all the tags quite easily through the DOM ala: foreach($dom->find('a') as $node) echo $no

Re: [PHP] google books

2008-03-24 Thread Ray Hauge
der("Content-type: application/pdf"); header("Content-disposition: inline; filename=FileName.pdf"); header("Content-length: " . strlen($data)); echo $data; I just realized that the version of FPDI I've been using is a little old. There's a new update out,

Re: [PHP] question about linux editor

2008-03-25 Thread Ray Hauge
. I also will typically use SSH + vi, but Zend Studio (not sure about Eclipse) can open an SSH connection and edit files that way. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dates Again

2008-03-31 Thread Ray Hauge
otime($inputTime); $time = strtotime('-1 day', $time); $outputTime = strftime('%Y-%m%d', $time); I'm not sure which is more efficient, but it helps when you're looking for "next thursday" or other things like that. -- Ray Hauge www.primateapplications.com -- PHP

[PHP] April Fools Easter Egg

2008-04-01 Thread Ray Hauge
Don't forget to check your phpinfo() page for the annual easter egg. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] April Fools Easter Egg

2008-04-01 Thread Ray Hauge
tedd wrote: At 9:23 AM -0500 4/1/08, Ray Hauge wrote: Don't forget to check your phpinfo() page for the annual easter egg. -- Ray Hauge www.primateapplications.com You got me. Cheers, tedd Here's the image that I see on PHP 5.1.0. My 5.2.5 site has a distorted image instead

Re: [PHP] Evaluating math without eval()

2008-04-12 Thread Ray Hauge
expecting with preg_replace or some similar function. http://hacktux.com/bashmath http://sysblogd.wordpress.com/2007/08/26/let-bash-do-the-math-doing-calculations-using-that-bash/ I'm not sure if that's any more secure than eval though. -- Ray Hauge www.primateapplications.c

Re: [PHP] Should This Newbie Learn From Dreamweaver?

2008-04-22 Thread Ray Hauge
nsupportable. I find the best way to do that is to come up with some little program that you code up for fun to help get you through the learning stages. You'll learn more figuring out how to get something to work than just copying and pasting code. That's my 2 cents. Hope that hel

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Ray Hauge
max-length of the field, and there are also configurations to determine what type of field it is (text, phone, date, textarea, etc.) and security settings based on the user logged in. This has helped keep my template files very clean, and I still have full control over the form by not includi

Re: [PHP] creating an xls file from mysql data

2008-05-12 Thread Ray Hauge
the file // print it out. Or you can do it straight from MySQL, which is a lot faster: SELECT [fields] INTO OUTFILE '/path/to/file.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM [tables] WHERE [conditions]

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Ray Hauge
and cannot be read without OCR. I got stumped on that one for a while when I was doing something similar :) -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Enterprise

2008-05-20 Thread Ray Hauge
cked at the state of their software. Typically healthcare systems are further behind in the technology adoption, but having to deal with workarounds all day long sure gets old. -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Canvas examples

2008-06-15 Thread Ray Hauge
Richard Heyes wrote: Does anyone have any more examples of the new canvas element they've written? FF only: http://www.phpguru.org/canvas.html This is a pretty interesting use of Canvas as well. Thanks for sharing! http://ejohn.org/blog/processingjs/ -- Ray

Re: [PHP] Canvas examples

2008-06-16 Thread Ray Hauge
eues. It was an internal app, or else I'd link it :( -- Ray Hauge www.primateapplications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XUL and PHP - what's your opinion?

2006-06-28 Thread Ray Hauge
sure if XUL would cause extra programming overhead than regular HTML/JS. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $previous variable ?

2006-07-12 Thread Ray Hauge
ot;ON" is probably a Bad Idea for various > reason. > > Using short tags ( > Finally, echo "$previous"; is silly, as the quote marks serve no > purpose at all. echo $previous; would be better. > > -- > Like Music? > http://l-i-e.com/artists.htm A bit

Re: [PHP] $previous variable ?

2006-07-12 Thread Ray Hauge
. Thanks. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Ray Hauge
nt > it to listen on? > > (Which, by the way, is /var/run/mysqld/mysqld.sock) > > Thank you for any advice. > > -- > Dave M G I ran into this problem myself. I had to not use --skip-networking. I use Slackware linux, so that was in the /etc/rc.d/rc.mysqld script. I don't k

Re: [PHP] Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8

2006-07-19 Thread Ray Hauge
the content-type header, and just have the text/xml. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
ed of trying to find one, so I made it myself. It's very specific to what we do here though. I'd definitely be interested in that info though, because we're still looking, and I'm not totally happy with mine, as I didn't have a whole lot of time to write it. --

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Ray Hauge
g at me to ask some questions. I just wanted him to do the quiz and that was pretty much it ;) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread Ray Hauge
because they have to know at least the fundamentals of PHP security. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session breaks when form data submitted

2006-07-20 Thread Ray Hauge
iles, or set the timeout to a day or so. I wouldn't suggest sending the PHPSESSID via a form. That leads to people being able to hijack sessions ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI & odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
On Saturday 29 July 2006 05:47, Jochem Maas wrote: > Jon Anderson wrote: > > Just replying to the list on this one 'cause I'm pretty sure you're on > > it. :-) > > > > AFAIK, with many caches the web server cache and CLI caches are > > exclusive to each process. The APC manual seems to suggest that

Re: [PHP] Retrieving response headers from an off-site page

2006-07-31 Thread Ray Hauge
http://us3.php.net/manual/en/ref.curl.php and the curl man page for more info. or, you can use your own HTTP implementation ;) HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] writing to fild on another server

2006-08-04 Thread Ray Hauge
er to keep security in mind though. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ray Hauge
ries up the directory tree are > readable/executable, as well. I think he's asking if the php program is executable to you, the user. It is possible that it would only have execute for owner and group, not other. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ray Hauge
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: > > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: > >> > Does the user running the cron have permission to execute the php > >> > binary

Re: [PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Ray Hauge
gin. > > How do I create a file that the user saves, and is not stored on the > server? > > -- > Dave M G For re-encoding to EUC-JP, I would check out the multibyte functions... specifically mb_convert_encoding: http://us2.php.net/manual/en/function.mb-convert-encoding.php HTH --

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Ray Hauge
re installation instructions from php.net: > > http://www.php.net/manual/en/install.unix.php > > Good luck! > > Jonathan Also, when compiling it yourself you can specify what extensions you want. This allows you to keep your install as minimal as possible for your needs, w

[PHP] Compiling and iconv

2006-08-11 Thread Ray Hauge
here, and it defines all the iconv_* and iconv compiler flags etc. I can also vouch that using iconv on the command line works just fine. Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List

[PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
t's not loading? Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
On Friday 11 August 2006 18:15, Michael B Allen wrote: > On Fri, 11 Aug 2006 17:50:12 -0500 > > Ray Hauge <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > > > I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a > > problem with loadi

Re: [PHP] Compiling and iconv

2006-08-14 Thread Ray Hauge
On Sunday 13 August 2006 22:00, Chris wrote: > Ray Hauge wrote: > > I use Slackware linux, and XMLRPC is not compiled in by default with my > > distro, so I'm compiling PHP myself. It's always been a simple enough > > task. First I get and install the required xmlrp

[PHP] OT? XUL XML-RPC Client

2006-08-14 Thread Ray Hauge
n about XML-RPC with XUL? Thanks, -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
l_exec. There'sa comment about capturing stderr. I'm not sure if shell_exec captures stderr, but it should at least point you in the right direction. Just do a search for stderr and you should find some good info. -- Ray Hauge Programmer/Systems Administrator American Student Loan

Re: [PHP] Capturing System output

2006-08-15 Thread Ray Hauge
t and avoid the potentially massive security hole you're > > building? > > > > -Stut > > Perhaps poor illustration of the question...the question being how to > issue system like commands in PHP which would allow you to trap not only > stdout, but also stderr.

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread Ray Hauge
> because I'm not sure where in the $_SERVER array my URL is being stored. > > Any advice on how to proceed here would be greatly appreciated. Thank you. > > -- > Dave M G Richard has a good article related to this. Mostly it's about how to force a download with a corr

Re: [PHP] active directory and PHP

2006-08-17 Thread Ray Hauge
php+active+directory+ldap+authentication&btnG=Search The question is how secure is it. You can set up LDAP to use SSL, so that would make it more secure. Kerberos is more secure than LDAP, and you _could_ set it up so that the browser forwards the ticket on to mod_kerb for authentication, thus not needing a sign-on other than to the domain. From my experiences that isn't exactly easy to set up though. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ray Hauge
I find that the Yahoo User Interface Library is pretty nice. http://developer.yahoo.com/yui/index.html I'm not sure that you really need a library to do what you want though. It could be as simple as using a div, and then the buttons change text with innerHTML (as long as you're

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
col_1'] == 'value_1' > is true 2nd case will never be executed? > Does it mean I CANNOT use switch() in this case? > > -afan Using a switch like this is more equivalent of if(something){ // true } else { // false } You're doing : if(something1){ // true 1 } if(s

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 13:44, Ray Hauge wrote: > Using a switch like this is more equivalent of > > if(something){ > // true > } else { > // false > } Actually, it's more like an if/elseif/else (if you use default:) or if/elseif (without default:) -- Ra

Re: [PHP] switch()

2006-08-29 Thread Ray Hauge
On Tuesday 29 August 2006 14:12, [EMAIL PROTECTED] wrote: > No. They are two if statements because they are indepedent. > > > On Tuesday 29 August 2006 13:44, Ray Hauge wrote: > >> Using a switch like this is more equivalent of > >> > >> if(something){ &

Re: [PHP] Re: Format of Encrypted Password

2006-09-06 Thread Ray Hauge
y offloaded creating passwords to htpasswd. I would suggest looking at the code where new accounts are created (if there is code to do that). That should tell you what's going on. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.80

Re: [PHP] Newbie question about

2006-09-09 Thread Ray Hauge
reasons for not using short tags are: 1) Not everyone has access to the ini file, and might not be able to use short tags. If you're releasing your code to the public, you want to work in as many places as possible, so then you should use -- Ray Hauge Programmer/Systems Administrator

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
ed-sources.com First I would check to make sure that permissions are set correctly. PHP doesn't (necessarily) run under your user account. Other than that I have no idea. HTH -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
00 Federal Street, Suite 201 > Troy NY 12180 > > Tel: (518) 687-6700 x154 > Fax: (518) 687-6799 > Email: [EMAIL PROTECTED] > http://www.informed-sources.com This may be due to my huge lack of experience with Mac OSX, but I would think it has its own permissions for files. I'

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
e been provided to the Mac OS X > user for that share. > > This is the error I get: > Warning: dbase_open() [function.dbase-open]: unable to open database > /Volumes/foresight/2qc0831.dbf in > /Library/WebServer/Documents/site.com/folder/file.php on line 29 > > On 9/12/06 5:4

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
Hmmm... That's odd. I would use your terminal program, then change directory to the location of the file, and do "pwd". That should give you your working directory. If you can get to it on OSX, and PHP is on OSX, then PHP should be able to see the file in the same path.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
You could try getting a directory listing with PHP to see if you can see what files are in there, or if you can access that directory through PHP. http://us2.php.net/manual/en/function.opendir.php -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
> 716.856.9675 > [EMAIL PROTECTED] nice catch. My suggestion would be to change the group to the group the webserver runs as (nobody, www, etc.) and allow read and write access to the group level as well. That should solve your problem. -- Ray Hauge Programmer/Systems Administrator Am

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
l S. Johari > Supervisor, Internet & Administration > Informed Marketing Services Inc. > 500 Federal Street, Suite 201 > Troy NY 12180 > > Tel: (518) 687-6700 x154 > Fax: (518) 687-6799 > Email: [EMAIL PROTECTED] > http://www.informed-sources.com You could just try usi

  1   2   3   >