'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
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
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
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
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
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
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'
#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
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
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
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
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
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
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:/
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
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
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
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
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
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,
.
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
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
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
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
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
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
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
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?
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]
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
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.
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
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
> 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
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
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
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
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
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
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
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.
--
--
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
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
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
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
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
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
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
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
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
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
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
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
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? :-(
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
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
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
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.
-
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
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
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
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
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
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
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
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
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
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
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
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*
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(
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
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
. 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
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
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
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.
--
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
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
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.
;
> 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
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
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
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.
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
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 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
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
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
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
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
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
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
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.
> 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
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
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
$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
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(
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
501 - 600 of 879 matches
Mail list logo