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

[PHP] getting iostat -x %b with php

2008-05-06 Thread Iv Ray
What is the best way to extract just the drive load information (%b column) from "iostat -x" (on FreeBSD)? I imagine to exec() the "iostat -x" and then process the result with regex, but I am not sure if this is the best way - for instance, is %b is aways the Nth column in the returned value?

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] validating textarea using php

2008-05-13 Thread Iv Ray
Sudhakar wrote: > i do not want > this to happen, if a user simply hits the spacebar and does not type > anything i should be able to display an alert message. From usability point of view such check will, in many cases, generate annoyance, and bring nothing. If I do not want to enter anything

Re: [PHP] validating using php

2008-05-14 Thread Iv Ray
Sudhakar wrote: > if( strlen(trim($name) == 0 ) || !preg_match('/^[a-zA-Z ]+$/x', $name) ) > { > $error.="Name is blank or has special characters "; > } You have messed up the brackets. This - strlen(trim($name) == 0 ) should be - strlen(trim($name)) == 0 Then the script does what you want.

[PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Is there a notion of the class as a namespace? My understanding is that the namespaces are intended to help organize the classes in large projects (and are not perfect). Is it considered good style to use a class simply to box related functions? For instance, a class called "files", contains

Re: [PHP] Can I install a newer version of php over an older version

2008-05-15 Thread Iv Ray
Tony M wrote: > Can I install a newer version of php over an older version? Perhaps what you need is this - "Upgrading PHP with the Install To upgrade, run the installer either graphically or from the command line as normal. The installer will read your current install options, remove your ol

Re: [PHP] Using SVN w/ Zend Studio for Eclipse

2008-05-15 Thread Iv Ray
> I do not want to copy the project into a new > directory as the existing directory is where Apache's DocumentRoot is > set. And although that's simple to change, I really don't think any > IDE should mandate where I set my project's directory on the > filesystem. I use PDT, and there is no prob

Re: [PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Richard Heyes wrote: > That's a common use of static classes. Eg: > > HTTP::Redirect($url); > > In fact this (from the article I've read) is exactly how namespaces will > look like. So in the above example, HTTP could be either a namespace or > a class. Right. Namespaces do look similar. And PEAR

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > What technique can I use to take an 8-byte double precision value, as > stored internally, and assign its value to a PHP float variable without > having the bytes misinterpreted as a character string. Does it get misinterpreted, or do you just want to be sure? The documenta

Re: [PHP] Working with internal data formats

2008-05-15 Thread Iv Ray
John Gunther wrote: > Example: I extract the 8 bytes 40 58 FF 5C 28 F5 C2 8F from > an external file You mean you "extract" "40 58 FF 5C 28 F5 C2 8F", so to speak, as a string, right? Sorry, for asking, but somehow I do not the case. -- -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] changing order of items

2008-05-15 Thread Iv Ray
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form fo

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

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
Eric Butera wrote: I use this: http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html Looks good. I still can't decide for one of these "big" libraries, prefer to use "small" things which I can fix/change, if the author does not have time or desire. -- -- PHP General Mailing Li

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
afan pasalic wrote: > But, actually, I need something more simple. Nothing "fancy" :D. I thought so from the beginning, just thought - it does not hurt to show different possibilities. May be you will not implement it now, but when you know about it, it might give you ideas in future. -- --

Re: [PHP] changing order of items

2008-05-16 Thread Iv Ray
Jason Murray wrote: I am assuming that each time you click the up or down arrow you are re-loading the page (via a GET request). A simple solution to this, would be to adjust the URLs assigned to the up and down arrows to carry an extra variable, the item either directly above or directly below

Re: [PHP] question about validation and sql injection

2008-05-16 Thread Iv Ray
Hej Sudhakar, what a long e-mail ;) ! I would suggest you use e-mail address as user name. There are many good reasons why to do so, I will give you some, if you wish. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Iv Ray
I had similar problem some time ago, and there was some solution, which I can't remember now. Do you still have the problem? I'll can have a look, if still needed. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does DOM lock the file when it calls sa

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
bruce wrote: Couldn't you also create a rather simple test to determine if the locking of the file takes place? I personally do not trust file system level locks. Even if a software is not intended to be portable across operating systems, it is possible to use different file systems under th

[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

[PHP] use of static methods after namespaces arrive

2008-05-28 Thread Iv Ray
In which situation would somebody use a static method, instead of a function in a namespace, after the namespaces arrive with 5.3? Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT Smarty problem

2008-05-28 Thread Iv Ray
Hi George, I tried your code and it works. If you have some way of remote assistance I can have a look "on-site", if you like. But it could be that you just need a good sleep, and then look again ;) Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] OT Smarty problem

2008-05-28 Thread Iv Ray
Gabriel Sosa wrote: > try doing this.. > > {if $clearance eq 0} > > instead use == > > i saw that some version of smarty has a bug related to this issue > > BTW .. you could use the options helper [1] > > saludos > gabriel Right... I forgot to ask which Smarty version you have. I tried it with t

Re: [PHP] use of static methods after namespaces arrive

2008-05-28 Thread Iv Ray
Adam Richardson wrote: If the functionality doesn't conceptually promote the inclusion of the variables it works on (i.e., no class variables), doesn't conceptually fit a scheme where instances can exist, and likely won't benefit from refactoring into component methods, then I could see using a

Re: [PHP] Bulk Email Problems

2008-06-10 Thread Iv Ray
Hi Andre, I am not sure I understand what is the problem. What does it mean - that worked fine for the last few years resulting in many requests for forgotten passwords and renewed site activity. And what does it mean - Last year, we sent it again, after a few minor code changes, and had no

Re: [PHP] class? package?

2008-06-10 Thread Iv Ray
If you are designing with OO principles, could you give an explanation of what is the difference classes and packages? A class is a language construct, classes are processed/executed by php. A package is an architectural approach - this is how you combine your code/classes. When I was summa

Re: [PHP] class? package?

2008-06-12 Thread Iv Ray
Shelley wrote: Probably you have noticed this: The classes in a package are reused together. If you reuse one of the classes in a package, you reuse them all. If that's the case, then why not just use one class as one package? What's the point of splitting a package into several classes? :-(

Re: [PHP] PHP connection to external application

2008-06-13 Thread Iv Ray
hce wrote: Let me first describe the requirement more: The C program is a major business server I would not connect applications on low level. I would think of a "web services" type of interface - http request and xml response (Steven suggested, for example, SOAP - but it does not need to b

Re: [PHP] UK PHP Host/Developer Required

2008-06-13 Thread Iv Ray
2. It's useful if the host company and the client keep the same office hours. If you have a hosting company with 9 to 5 office hours, you are dead, even if it is next door. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class? package?

2008-06-13 Thread Iv Ray
Shelley wrote: I am working on a sns site, and now my practice is grouping classes of a function "classes of a function"... perhaps "classes related to certain functionality"? (i. e. subscription) together. When I need it, just load the "package": subscription. Right? ;) Hm... I do not k

[PHP] PDF to images or something similar

2008-06-13 Thread Ray Mckoy
Hi!. I need to create a pageflip magazine (you know, a flash magazine). My client ask me to do a little php program that convert a full pdf magazine into a pageflip magazine. My doubt is: It's possible with php to read a full pdf and make an image for each page? Thanks a lot. Ray. -

Re: [PHP] UK PHP Host/Developer Required

2008-06-13 Thread Iv Ray
Robin Vickery wrote: Out of hours technical support often gets billed at a punitive rate. Which is a bugger if their "out of hours" is your working day. It seems you haven't tried Rackspace (UK) yet. And while you might get tech support out of hours, accounts and billing usually keep normal o

Re: [PHP] PHPMailer not working but Squirell mail works

2008-06-13 Thread Iv Ray
Shiplu wrote: In my web server, I cant send mail by PHPMailer. What does this mean? Do you get an error message, etc.? Iv -- 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

Re: [PHP] Separating words based on capital letter

2007-04-24 Thread Arpad Ray
Roman Neuhauser wrote: implode(' ', preg_split('~(?=[[:upper:]])~', 'FooBarBaz', -1, PREG_SPLIT_NO_EMPTY)); Or just.. preg_replace('/\B[A-Z]/', ' $0', 'FooBarBaz') Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Arpad Ray
M.Sokolewicz wrote: Basically what you can remember here is: :: calls a property or method in a STATIC context (ie. without access to the object's (if any) actual properties) -> calls a propert or method in a DYNAMIC context (ie. WITH access to that specific object's collection of methods and p

Re: [PHP] php and Ajax problem

2007-05-29 Thread Arpad Ray
Richard Kurth wrote: if(response.indexOf('|' != -1)) { Spot the misplaced bracket. if($_GET['takeaction']=="delete"){ $uid=$_GET['uid']; echo $uid; This is wide open to XSS attacks, you need to be just as careful with scripts intended to be accessed via javascript as you do with us

Re: [PHP] Removing Spaces from Array Values

2007-07-03 Thread Arpad Ray
Jim Lucas wrote: foreach ( $someArray AS $k => $v ) { $someArray[$k] = preg_replace('!\s!', '', $v);// Removes white space ' ', \n, \r\n, etc... $someArray[$k] = str_replace(' ', '', $v);// Removes only spaces } str_replace() also operates on arrays so there's no need for

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: What do people on this list usually do with this kind of problem. To me, the .htaccess seems the easiest solution, since I don't have to change any scripts. I would certainly turn it off in php.ini or apache config files if possible (the .htaccess line should be "php_flag

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: thanks for all the help. My code was wrong in the first post, I just copied it straight from the web. This one works: if (get_magic_quotes_gpc()) { stripslashes_array($_GET); stripslashes_array($_POST); stripslashes_array($_REQUEST); stripslashes_array($_COO

Re: [PHP] regular expression and forbidden words

2007-07-17 Thread Arpad Ray
Nicolas Quirin wrote: Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently I h

Re: [PHP] repetition of tedious references

2007-07-18 Thread Arpad Ray
Olav Mørkrid wrote: consider the following statement: $language = isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && $_SERVER["HTTP_ACCEPT_LANGUAGE"] != "" ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : "*"; when using strings in arrays that may be non-existing or empty, you have to repeat the reference *three*

Re: [PHP] repetition of tedious references

2007-07-19 Thread Arpad Ray
aised. It remains to be seen in the final version whether that notice is raised or that this operator exists at all Arpad it would be great if php 6 could have a solution for this. php is sweet when it's compact! On 18/07/07, Arpad Ray <[EMAIL PROTECTED]> wrote: You can use empty(

[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
; > which sucks in so many ways it hurts but it does clear the APC cache You could create a script that basically just does apc_clear_cache() et all. and call it from lynx, curl, wget, etc. and throw that into a cron job. That would technically get you to call the script from the cli, but it should clear the webserver cache. Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] Emphasizing first letter of string?

2006-08-22 Thread Arpad Ray
$string) { $strings[$key] = '' . $string[0] . '' . substr($string, 1); } ?> Micky Hulse wrote: Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap tag around the first letter of a string? I know it has to be a combination of str_repla

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
You can't just define a new function with the same name. The only way I know to literally redefine the function is using the runkit extension - http://pecl.php.net/package/runkit That allows you to rename functions as well as moving them, so you could rename it to something like old_mysql_query(

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
Brad Bonkoski wrote: Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of

<    1   2   3   4   5   6   7   8   9   >