...
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk
-Original Message-
From: Joseph Koenig [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2001 23:23
To: [EMAIL PROTECTED]
Subject: [PHP] Store PHP Code in MySQL?
I've been playing a little bit trying to store some PHP code in MySQL
and get
What on earth are you trying to do? :)
I'm not sure what your getting at, do you mean defining a variable based
on another variables name? Perhaps try using an array, and specifying
$rm($cat)
Sorry, im not too sure what you mean
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk
-Original
well, if its a server side script, the only clock available to it is the
one on the server...
Ray
-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: 20 May 2001 15:51
To: [EMAIL PROTECTED]
Subject: [PHP] time
quickly can some one tell me if time() return server
I dont think thats XHTML complient... Correct me if im wrong?
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: 20 June 2001 23:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] General Coding Question
im here to start a flamewar.
dont use then. why not use ' ?
echo
How do I go arround getting php to output the time() function in a
different language? I have tried the setlocale() function to no avail,
perhaps my system doesn't have the appropriate locale to do this? If
so, then how do install them on Red Hat 7?
Cheers,
Ray Hilton
-
[EMAIL PROTECTED]
http
Hi,
Is there any easy way to copy a template mysql table to enable data to
processed in batches?
I would prefer to just copy a table rather than hard-code a table create
query, if possible.
Regards
Ray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48
Etc etc... Can anyone point me in the right direction? Am I right in
thinking that you can either use gd's native ttf support or compile
freetype into php seperatley?
./configure --with-xml
I think it's the same as perl, using the backtick operator, ie:
$result = `uptime`;
That's ` NOT '
-Original Message-
From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:41
To: [EMAIL PROTECTED]
Subject: [PHP] Shell scripting and PHP.
Hi all!
If i want to
PROTECTED]]
Sent: 03 July 2001 09:40
To: Ray Hilton; 'PHP Mailing List'
Subject: RE: [PHP] configuring with gd for TTF
Ok. Well, given mine works, I thought I would tell you what I have!
My phpinfo says exactly the same:
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
:
Warning: libgd was not built with TrueType font support in
/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48
Every single time...
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk
-Original Message-
From: Brian White [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:08
To: Ray Hilton
Have you sompiled in sybase support? By defauly php doesn't compile
with sybase functions, you must specifcally tell it too...
-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined
(according to mastering
linux
book, install and configuring php to access data from sybase)
can some else pls help me :(
From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue
Everything removed by strip_tags(), including a href=somelinkclick me/a
(you original example)
See the problem?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 July 1979 3:46 PM
To: Ray Dow; [EMAIL PROTECTED]
Subject: Re: html in my form
what the possibilities are.
Strip all tags and use a custom system is my advice
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 July 1979 3:59 PM
To: Ray Dow; [EMAIL PROTECTED]
Subject: Re: [PHP] RE: html in my form? bad things! help help help
Hey All,
For a virtual hosting stand point, which is better to run, the module or
the cgi version of php? Can you also explain why one is better than the
other..?
Thanks
Ray Parish, RHCE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
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 religious site that was very biased.
How's that for off topic?
--
Ray Hauge
www.primateapplications.com
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
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 maintain. Unnecessary
complexity can start a snowball effect.
--
Ray Hauge
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
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 databases or anything.
Thanks,
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net
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
/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
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
, 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
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
.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
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
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 (http
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
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://www.php.net
.
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 Mailing List (http://www.php.net
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
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 anything yet. I just like to see
, 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 parse error. The curly braces are
necessary.
--
Ray Hauge
www.primateapplications.com
--
PHP
.
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
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 General Mailing List
or are the
words
in sentences where they belong ?
thanks,
-nathan
Your emails come through to my gmail account as you first described,
Nathan, ie, sometimes with just one word on a line, and just like the
marc archives.
thanks, ill just have to be careful editing from gmail then..
Ray, if I start
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 HR.gettype ($result);
Of course that's not all the code, but the results contain
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 error.
--
Ray Hauge
www.primateapplications.com
! :)
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
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 experience. I'd be interested to hear other people's experiences.
--
Ray Hauge
www.primateapplications.com
--
PHP
about it anymore.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= 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
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
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 NFS, more seconding not
transferring files over HTTP.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List
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+authenticationie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
--
Ray Hauge
www.primateapplications.com
--
PHP
' || $extension || 'png' || $extension == 'jpg') {
// do something
}
That might help, but I would think that the way you had it would also
work. Let us know what happens when you use the variable like I showed
above.
Thanks,
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http
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's okay... PHP script runs well.
What is the problem
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
already been sent to the client (I ran
into an included file having a space after ?) you can use
http://us3.php.net/manual/en/function.headers-sent.php before you call
setcookie();
If nothing else it'll help with diagnosing this error when you run into
it again.
--
Ray Hauge
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
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 use tools that get
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 else of their being
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://www.php.net/)
To unsubscribe, visit: http
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
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);
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
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* times,
.
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() to take one of them out
Jim Lucas wrote:
Here is a nice little hack that I use.
Little hack it is, nice it isn't.
Ideally just turn off magic_quotes_gpc - you can do so in php.ini, or
perhaps your web server configuration files (httpd.conf, .htaccess etc.).
If you don't have access to any of the above then
Apologies if you already received this message, I tried to send it
earlier from my webmail but it doesn't seem to have worked.
Al wrote:
Just use stripslashes() on your submitted data and forget about
testing for magic_quotes. It's good practice anyhow. \ is not legit
text regardless.
serve no
purpose at all. echo $previous; would be better.
--
Like Music?
http://l-i-e.com/artists.htm
A bit off topic, but I hadn't heard about short tags being a bad idea. What
reasons make short tags worse than the regular tags. Just curious.
Ray
--
Ray Hauge
Programmer/Systems
. 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
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 know why that would make PHPMyAdmin not work though.
HTH
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
=1.0 encoding=utf-8?
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
. 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.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP
. I did basic questions to show they
understood OOP, recursion, pass-by-reference, etc.
I also had to be in the interview. There were a lot of odd moments of silence
when people were looking at me to ask some questions. I just wanted him to
do the quiz and that was pretty much it ;)
--
Ray
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
the PHPSESSID via a form. That leads to people
being able to hijack sessions
from file='php.ini'
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
/from
HTH
--
Ray Hauge
Programmer/Systems
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
;)
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
.
--
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
/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.americanstudentloan.com
1.800.575.1099
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?
Yes, the file's owner is me and it's my
...
specifically mb_convert_encoding:
http://us2.php.net/manual/en/function.mb-convert-encoding.php
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
you want.
This allows you to keep your install as minimal as possible for your needs,
which increases the performance of PHP.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net
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 (http://www.php.net
?
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 loading the PDFLib extension (pdflib_php.so). It works fine
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 xmlrpc-epi libraries, and then
I compile
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
, 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 Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net
.
-Brad
Best example I found was:
$shell_return = shell_exec($shell_command. 21);
that should redirect stderr to stdout and thus you'd get both.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List
to this. Mostly it's about how to force a
download with a correct filename, but the last part of the article should get
you pointed in the right direction if you don't want to use mod_rewrite with
apache.
http://richardlynch.blogspot.com/
--
Ray Hauge
Programmer/Systems Administrator
American
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
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 not expecting to use that text after the
submit).
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
?php
foreach ($strings as $key = $string) {
$strings[$key] = 'em' . $string[0] . '/em' . 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 em/em tag around the first
letter of a string?
I
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
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
Ford, Mike wrote:
How about something like:
a href=?php echo $_SERVER['PHP_SELF'] ??session_switch=?php $_GET['session_switch']?0:1
?switch/a
Beware that PHP_SELF is injectable like several other $_SERVER
variables, so you must at least encode it to prevent XSS attacks.
Eg.
doing :
if(something1){
// true 1
}
if(something2){
// true2
}
hope that helps.
--
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
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:)
--
Ray Hauge
Programmer/Systems Administrator
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){
// true
} else {
// false
}
Actually, it's
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.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
of templating system instead of
adding the complexity of smarty or other templating systems (which are fine).
Is it possible, or will it be possible, to use ?php=blah ?
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP
Micky Hulse wrote:
?=$_SERVER['PHP_SELF']?
Can I replace the above with some sort of XMLHTTP request?
As noted, that's a javascript question. However your PHP code is
vulnerable to XSS attacks; you should at least encode the output with
htmlspecialchars() so that URLs like
(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.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
own permissions for files. I'm not sure if they stuck with the
BSD type file permissions or implemented their own. I'd check that first.
If that doesn't work, what is the error that you get? Access Denied?
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
201 - 300 of 874 matches
Mail list logo