Sancar Saran schreef:
Hello
Hell frezezer over.
odd verb. but I get the message. indeed it's seem it hath freezeth nicely.
Me thinks regsiter_globals are evil too.
And what about this
session_start();
$_SESSION['refString'] = $_GET['refNo'];
what about it?
1. you mean the fact that the G
Hello
> >
> > Hell frezezer over.
>
> odd verb. but I get the message. indeed it's seem it hath freezeth nicely.
>
> > Me thinks regsiter_globals are evil too.
> >
> > And what about this
> >
> > session_start();
> >
> > $_SESSION['refString'] = $_GET['refNo'];
>
> what about it?
>
> 1. you mean t
Stijn Leenknegt wrote:
> This is nice, but when I want one element of the returned array, I
> have to store the returned array into a variable and then call the
> variable. The next code example is my idea.
>
> echo getUserInformation($id)['naam'];
> ?>
>
> Let's look further then this small ex
Per Jessen wrote:
>> You can check at http://xlr.php.net but I suspect that it's too "new"
>> to be in your version of PHP.
>
> According to the manual, it's supported since php 4.3.3.
I've just checked one of my systems that is still running 4.3.9 - the
snmp extension is available.
/Per Jess
Javed Khan wrote:
Hello All,
I have php script which performs various sql operations, like insert row in table A, delete row from Table B and Update rows in table C. Now I would like to display all those tables that are affected by my script. Can anyone send me a function or script if it is alr
Hello All,
I have php script which performs various sql operations, like insert row in
table A, delete row from Table B and Update rows in table C. Now I would like
to display all those tables that are affected by my script. Can anyone send me
a function or script if it is already available?
Hi All
I would like to know how many entries does PHP associative array can handle.
Cheers
Prabath
memory limitation in the php ini?
bastien
> Date: Wed, 16 Jan 2008 16:29:53 +0900> From: [EMAIL PROTECTED]> To: [EMAIL
> PROTECTED]> CC: php-general@lists.php.net> Subject: Re: [PHP] Scripts are
> fast locally, but slow on remote server> > Per Jessen,> > Thank you for
> responding.> > > Might
On 16/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote:
> You can check at http://xlr.php.net but I suspect that it's too "new"
> to be in your version of PHP.
>
> You are on 5.2.1 and php.net is offering 5.2.5, so you're just enough
> behind for this to be very plausible.
>
> Maybe get Ubuntu to c
On Jan 16, 2008 7:56 PM, Apple <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to run mencoder command line utility to encode videos.
>
> When I use these two command in terminal (through SSH), everything works fine.
> But when I run them from PHP script with system command, it doesn't work.
Hello,
I'm trying to run mencoder command line utility to encode videos.
When I use these two command in terminal (through SSH), everything works fine.
But when I run them from PHP script with system command, it doesn't work.
The commands are:
First pass:
system("/usr/local
I'm sure I'm a pea-brain, but this caught my attention.
So you execute the fetchObjects() method which could return a large
number of objects, then you reference a method of the 0th one.
I didn't test, but why not use: $object->fetchObjects(0)->method();
Where fetchObjects($id) returns the objec
I think this would be an easier/quicker fix for you then requesting that
the PHP developers re-write a large portion of the way PHP currently works.
fetchObjects(), 0)->method();
?>
Stijn Leenknegt wrote:
Hello
I've an idea for PHP6. Let's kickoff with an example.
This is nice, but when
On Tue, January 15, 2008 5:32 pm, Jochem Maas wrote:
> Janet N schreef:
> with a bit of luck you'll then have a .so file that is your new
> extension,
> now it a matter moving the .so to a suitable place (if you have root
> access, you
> can run 'make install') and of editing php.ini to load the ex
On Wed, January 16, 2008 5:32 pm, Stijn Leenknegt wrote:
> I've an idea for PHP6. Let's kickoff with an example.
This belongs on php-internals...
> echo getUserInformation($id)['naam'];
> ?>
where it has already been discussed at length, and, as I recall,
rejected as too obfuscated for the inte
Sancar Saran schreef:
On Wednesday 16 January 2008 15:33:04 Jochem Maas wrote:
tbt schreef:
Hi,
I'm a newbie to php and i would like to set register_globals to 'on' from
my php script itself(eg:- index.php). Is there any way of doing this.
you think you would like that. but you are wrong. reg
Hello
I've an idea for PHP6. Let's kickoff with an example.
This is nice, but when I want one element of the returned array, I have to
store the returned array into a variable and then call the variable.
The next code example is my idea.
Let's look further then this small example.
fetchObje
$stringtoedit = preg_replace("/width=(\"?[0-9%]\"?[^0-9%\"])/msi",
"width=\"\\1\"", $stringtoedit);
$stringtoedit = preg_replace("/height=(\"?[0-9%]\"?[^0-9%\"])/msi",
"height=\"\\1\"", $stringtoedit);
This "adds" quotes around quote-less values, which were once
acceptable HTML, but aren't really
On Wed, January 16, 2008 9:57 am, Daniel Brown wrote:
> echo($h."\n".$i."\n"); // echo is a construct, but as expected, can
> use parentheses()
Just to be picuyane:
echo isn't using the parens.
The parens are forcing PHP to evaluate the concatenation of the
strings FIRST, and then echo them.
An
Is it possible that 4% of the time, you have spaces on the start/end
of the string, which get trimmed before encryption?
And if rijndael is one of the algorithms which requires a fixed-size
input, that also would be "bad" to trim it. If you need multiple of
16 bytes input, leave the input alone.
On Tue, January 15, 2008 10:48 pm, Casey wrote:
> On Jan 15, 2008 8:40 PM, Ken Kixmoeller -- reply to [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>>
>> On Jan 15, 2008, at 11:08 PM, Andrés Robinet wrote:
>>
>>
>> > I second that, you should base64 encode values before encrypting
>> > and base6
On Jan 16, 2008 5:49 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
[snip!]
Okay, Eric, I'm not getting involved in any kind of flame war.
> I am sorry that I struck a nerve with my response as that wasn't my
> goal. I just hoped that it would be in the archives in case somebody
> did stumble up
On Jan 16, 2008 5:21 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 4:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> >
> > On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> > > On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> > > > You did forget to
On Jan 16, 2008 4:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
>
> On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> > On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> > > You did forget to escape the user input value in case I was trying to
> > > hacks myself. :)
In news: [EMAIL PROTECTED] -
"Daniel Brown" wrote :
>> On Jan 16, 2008 2:29 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
>>> It obviously isn't related to PHP. I figured that most of us are in
>>> the business of making web applications for clients that are
>>> accessed through a domain at some poi
On Jan 16, 2008 5:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 5:09 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
>
> > Here is an implementation:
> > http://framework.zend.com/manual/en/zend.registry.html
> >
> > Here is another:
> >
> http://www.stubbles.net/browser/trunk/src/mai
Eric Butera schreef:
On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
Eric Butera schreef:
On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
given that dbaccess doesn't extend mysqli instantiation
On Jan 16, 2008 5:09 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> Here is an implementation:
> http://framework.zend.com/manual/en/zend.registry.html
>
> Here is another:
>
> http://www.stubbles.net/browser/trunk/src/main/php/net/stubbles/util/stubRegistry.php
>
cool; ill have a look when i get
On Jan 16, 2008 5:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> > Eric Butera schreef:
> >
> >
> >
> >
> > > I still don't understand the obsession of a singleton in regards to a
> > > db connection. Using a registry is a much
On Jan 16, 2008 5:06 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> Also with the registry you can use lazy loading.
singleton is typically implemented with a lazy loading approach, and most
of the code samples ive seen on this thread today use a lazy loading
approach.
could you give us a more co
Richard schreef:
Hi,
After installing PHP on a Windows machine I see a very small
PHP-executable and several extension dll's that can be loaded.
When I build PHP on a QNX machine I get one huge executable of 8.6 MB.
Is it possible to build something similar to the Windows version?
yes, by
On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Eric Butera schreef:
> > I still don't understand the obsession of a singleton in regards to a
> > db connection. Using a registry is a much better practice I think.
> >
>
> I think I alluded to the registry pattern in my reply abo
On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Eric Butera schreef:
>
> > On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> >> On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> >>
> >>> given that dbaccess doesn't extend mysqli instantiation of db
Richard Lynch schreef:
Are you relying on autoload or anything of that nature to load in
class files, perhaps?
garanteed that it's not an autoload related problem.
and Im willing to bet it's a dns related issue - I remember similar
problems reported on the list and it always came down to dns.
Eric Butera schreef:
On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
given that dbaccess doesn't extend mysqli instantiation of dbaccess is
completely
pointless no?
i dont know; i think using an instance of dbac
On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> > You did forget to escape the user input value in case I was trying to
> > hacks myself. :)
> >
>
> No I didn't.
>
> QUOTE:
> I just whipped it up now, so it
On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> You did forget to escape the user input value in case I was trying to
> hacks myself. :)
>
No I didn't.
QUOTE:
I just whipped it up now, so it's not going to be perfect, but it
will give accurate results, without risking an
On Jan 16, 2008 4:35 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 4:30 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> > His program was for CLI.
>
> Correct. Sorry, forgot to mention it lunch was calling my
> name, and I had to answer.
>
> --
>
>
>
> Daniel P. Brown
> Senio
On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> > given that dbaccess doesn't extend mysqli instantiation of dbaccess is
> > completely
> > pointless no?
>
>
> i dont know; i think using an instance of dbaccess t
On Jan 16, 2008 4:30 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> His program was for CLI.
Correct. Sorry, forgot to mention it lunch was calling my
name, and I had to answer.
--
Daniel P. Brown
Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since
Nineteen-Seventy-[mumble]
On Jan 16, 2008 4:27 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote:
>
> > -Original Message-
> > From: Daniel Brown [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 16, 2008 5:06 PM
> > To: Eric Butera
> > Cc: Andrés Robinet; php php
> > Subject: Re: [PHP] Don't search for domains on N
On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> given that dbaccess doesn't extend mysqli instantiation of dbaccess is
> completely
> pointless no?
i dont know; i think using an instance of dbaccess to control a single
instance of the
mysqli class is appropriate. personally, i
julian schreef:
you are forcing the no instantiation via abstract, instead of hiding via
private method constructor.
you want to garantee a single instance of the mysqli object - who cares
exactly how this is done. besides which the whole exercise is bogus. you
want a DB connection abstractio
Richard Lynch wrote:
> On Wed, January 16, 2008 7:34 am, Dotan Cohen wrote:
>> I am experimenting with the snmp_set_valueretrieval function, which
>> does not appear to be documented:
>> http://il.php.net/snmp_set_valueretrieval
>>
>> What does this function depend upon? Simply using it throws thi
> -Original Message-
> From: Daniel Brown [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 5:06 PM
> To: Eric Butera
> Cc: Andrés Robinet; php php
> Subject: Re: [PHP] Don't search for domains on Network Solutions...
>
> On Jan 16, 2008 2:29 PM, Eric Butera <[EMAIL PROTECTED]>
On Jan 16, 2008 2:29 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> It obviously isn't related to PHP. I figured that most of us are in
> the business of making web applications for clients that are accessed
> through a domain at some point, so I sent it as a general warning to
> people.
>
> My comp
That very much make sense. I am indeed doing two assignments. I was just
wondering how to call the constructor. The new statement was the only
way I saw and it only worked in an assignment . I could not call
dbaccess(); nor dbaccess::dbaccess();...
Probably the easiest way is a mix
you are forcing the no instantiation via abstract, instead of hiding via
private method constructor.
You change the constructor for an init function.
still the $dummy = new dbaccess (). looks like a simpler solution
Thanks for your comments
Jochem Maas wrote:
julian schreef:
H
On Jan 16, 2008 2:32 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote:
> A couple of days ago I've come across this:
> http://www.seomoz.org/blog/network-solutions-exploits-icanns-fiveday-refund-
> rule-to-hoard-domains
>
> So... I don't even think that network solutions is the only one doing it. I
> k
Tom Chubb schreef:
On 16/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
Tom Chubb schreef:
...
Jochem,
Thanks for that. So presumably it's not possible to do it in PHP?
there probably is but I can't tell what the problem is exactly without
seeing the output source and rendering, that
> -Original Message-
> From: Julian [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 3:39 PM
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] green bean question on singleton php5
>
>
> nope... only works if I change
>
> $dummy= new dbaccess();
>
> and keep the rest ...
On Jan 16, 2008 1:36 PM, Julian <[EMAIL PROTECTED]> wrote:
> I would like to understand what am I missing fom the concept
here are the issues i see;
you should have a private static for the instance of dbaccess
you should have a private instance variable for the instance of the mysqli
class
julian schreef:
Hi,
I am implementing this
try comparing this rewrite with your version:
abstract class dbaccess {
static $db = null;
private static function init() {
if (dbaccess::$db))
return;
dbaccess::$db = new mysqli("localhost",USER,PASSWD,DB);
if(mysqli_con
Julian wrote:
>
> but that forces me to implement a large interface of functions that I
> prefer to avoid...
>
> the $dummy thing works... but I guess it is not "by the book".
>
> I would like to understand what am I missing fom the concept
You made a critial error in the original implem.
> -Original Message-
> From: Julian [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 3:37 PM
> To: Daniel Brown
> Cc: julian; php-general@lists.php.net
> Subject: Re: [PHP] green bean question on singleton php5
>
>
> but that forces me to implement a large interface of functi
You can easily make a mail queue in php yourself with a daemon that
checks the queue and sends waiting mail in batches of say 200 per
minute. (provided you have access to the cli on the server)
Black
http://rssphp.net
a85020316bb687648d6f73c4eb3bec93 :msg::id
Chris wrote:
Manuel Lemos wrote:
to all who have posted classes w/ the singleton instance as a
public static; this is not good.
the singleton instance should be stored in a private static variable.
why? because, otherwise client code can just access the value
directly, and even unset the instance; which sort of defeats the
purpos
nope... only works if I change
$dummy= new dbaccess();
and keep the rest .
Thanks.
... hope it does not repeat... got undelivered...
Eric Butera wrote:
On Jan 16, 2008 12:57 PM, julian <[EMAIL PROTECTED]> wrote:
Hi,
I am implementing this
class dbaccess{
static $db=null;
st
but that forces me to implement a large interface of functions that I
prefer to avoid...
the $dummy thing works... but I guess it is not "by the book".
I would like to understand what am I missing fom the concept
Thanks.
JCG
Daniel Brown wrote:
On Jan 16, 2008 12:57 PM, julian <[EMAIL
> -Original Message-
> From: Richard [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 12:48 PM
> To: php-general@lists.php.net
> Subject: [PHP] QNX build
>
> Hi,
>
> After installing PHP on a Windows machine I see a very small
> PHP-executable and several extension dll's that
> -Original Message-
> From: Eric Butera [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 2:57 PM
> To: php php
> Subject: [PHP] Don't search for domains on Network Solutions...
>
> ... otherwise this will happen:
>
> erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php
On Jan 16, 2008 12:57 PM, julian <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am implementing this
[snip!]
I'm heading out to lunch, so double-check this for errors, but I
rewrote your class. You'll have to add your fetch handlers and such.
query(..); // Your query here.
?>
julian wrote:
>
>
> Hi,
>
> I am implementing this
>
> class dbaccess{
> static $db=null;
> static $othervar=33;
>
> private function dbaccess(){
> dbaccess::$db= new mysqli("localhost",USER,PASSWD,DB);
> if(mysqli_connect_errno()){
> echo "no way";
> }
> }
>
On Tue, January 15, 2008 11:03 pm, Manuel Lemos wrote:
> Hello,
>
> on 01/16/2008 02:11 AM mike said the following:
>> Why not look at phpmailer? Probably more robust than some random
>> classes.
>
> I did not suggest any random classes. I developed those classes since
> 1999 and I know they work
All,
The problem turned out to be selinux.
With the newest version of RH, a new security model has been
implemented. Instead of doing Discretionary Access Control (DAC,
conventional rwx permissions) RH implements selinux which uses Mandatory
Access Control (MAC, enhanced permissions using
On Jan 16, 2008 12:57 PM, julian <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am implementing this
>
> class dbaccess{
>static $db=null;
>static $othervar=33;
>
>private function dbaccess(){
> dbaccess::$db= new mysqli("localhost",USER,PASSWD,DB);
> if(mysqli_connect_errno()){
Stop using session_register, and start using:
$_SESSION['refString'] = $_GET['refNo'];
And, actually, you should do something more like this:
$refNo = (int) $_GET['refNo']; //sanitize input
$_SESSION['refString'] = $refNo;
The MORE specific you can be about what is a VALID $refNo, in place of
t
On Wed, January 16, 2008 12:21 am, tbt wrote:
> I'm a newbie to php and i would like to set register_globals to 'on'
> from my
> php script itself(eg:- index.php). Is there any way of doing this.
You can't turn it "on" really, because by the time your PHP script is
running and trying to turn it "o
On 16/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Tom Chubb schreef:
> > Can anyone tell me how to wrap the results of highlight_file so it
> > doesn't mess up the size of my table div?
>
> use CSS to control the visual display in the browser.
> not to mention that 'table div' doesn't make mu
Hi,
I am implementing this
class dbaccess{
static $db=null;
static $othervar=33;
private function dbaccess(){
dbaccess::$db= new mysqli("localhost",USER,PASSWD,DB);
if(mysqli_connect_errno()){
echo "no way";
}
}
public static function GetDb(){
if(
... otherwise this will happen:
erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php
Starting at 01/16/2008 12:36pm.Result:
...snip...
Your Domain Name Search Results
Congratulations! The following domains are available
eric-butera-for-php-general
Then a few minutes later:
erics:~ eric$ w
On Wed, January 16, 2008 1:29 am, Dave M G wrote:
> Per Jessen,
>
> Thank you for responding.
>
>> Might this be a name-server issue?
>
> Maybe, but I don't think so. The reason I suspect that is not the case
> is because I can go first to a .html page on the server, and it loads
> up
> quickly.
Are you relying on autoload or anything of that nature to load in
class files, perhaps?
On Wed, January 16, 2008 1:02 am, Dave M G wrote:
> PHP list,
>
> I have a set of PHP scripts that seem to be efficient and quick enough
> both on my home testing environment, and a few different web-hosting
>
On Wed, January 16, 2008 7:34 am, Dotan Cohen wrote:
> I am experimenting with the snmp_set_valueretrieval function, which
> does not appear to be documented:
> http://il.php.net/snmp_set_valueretrieval
>
> What does this function depend upon? Simply using it throws this:
> Fatal error: Call to und
Personally, I would find it confusing to have settings in httpd.conf
with different file suffixes controlling whether or not any given
application file included the auth.inc file...
Even doing it in .htaccess with seems a bit hackish.
Turning auto_prepend on/off seems reasonable.
But I'd still
Thanks for your responses
I think I will start a project for PHP with the implementation of a
library for signatures
Of course, with XAdES, XMLDSig will be covered...
Now I have to learn XAdES specifications, a splendid activity ;-)
stay tuned... ;-)
--
Pierre PINTARIC
SICTIAM
Porte 15 Space
Jim Lucas <[EMAIL PROTECTED]> wrote:
> Jim Lucas wrote:
> > Wolf wrote:
> >> I'm using .htaccess to do
> >> php_value auto_prepend_file "auth.php"
> >>
> >> The problem is that there are very specific files that I want to be
> >> able to NOT run that in. I guess I could just move them to a
On Jan 16, 2008 12:02 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> Jim Lucas wrote:
> > Wolf wrote:
> >> I'm using .htaccess to do
> >> php_value auto_prepend_file "auth.php"
> >>
> >> The problem is that there are very specific files that I want to be
> >> able to NOT run that in. I guess I could
Many thanks, Mike --- yours works great... 0 errors.
On Jan 16, 2008, at 9:24 AM, mike wrote:
function data_encrypt($data) {
if(!$data) { return false; }
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256,
$GLOBALS['config']['salt'], $data, 'cbc', md5($GLOBALS['config']['
s
Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 11:33 AM, Wolf <[EMAIL PROTECTED]> wrote:
> > Daniel Brown <[EMAIL PROTECTED]> wrote:
> [snip]
> > > At that point, wouldn't it be just as easy to > > require('auth.php'); ?> as the first line of each file you want it in,
> >
Jim Lucas wrote:
Wolf wrote:
I'm using .htaccess to do
php_value auto_prepend_file "auth.php"
The problem is that there are very specific files that I want to be
able to NOT run that in. I guess I could just move them to a
directory and use .htaccess to perform a php_value auto_prepend_file
Wolf wrote:
I'm using .htaccess to do
php_value auto_prepend_file "auth.php"
The problem is that there are very specific files that I want to be able to NOT run that in. I guess I could just move them to a directory and use .htaccess to perform a
php_value auto_prepend_file ""
But I was hopi
Daniel Brown wrote:
On Jan 15, 2008 6:42 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
funny that, I usually use 'exit;' for a clean exit and 'die();' to signify
a shitty exit ... although they are actually indentical functionally - just
my idiosyncrasity ... that said I also so stuff like 'exit(1)
On Jan 16, 2008 11:33 AM, Wolf <[EMAIL PROTECTED]> wrote:
> Daniel Brown <[EMAIL PROTECTED]> wrote:
[snip]
> > At that point, wouldn't it be just as easy to > require('auth.php'); ?> as the first line of each file you want it in,
> > and omit the line in those you don't? Or are there a l
Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 11:10 AM, Wolf <[EMAIL PROTECTED]> wrote:
> > I'm using .htaccess to do
> > php_value auto_prepend_file "auth.php"
> >
> > The problem is that there are very specific files that I want to be able to
> > NOT run that in. I guess I cou
On Jan 16, 2008 11:10 AM, Wolf <[EMAIL PROTECTED]> wrote:
> I'm using .htaccess to do
> php_value auto_prepend_file "auth.php"
>
> The problem is that there are very specific files that I want to be able to
> NOT run that in. I guess I could just move them to a directory and use
> .htaccess to p
I'm using .htaccess to do
php_value auto_prepend_file "auth.php"
The problem is that there are very specific files that I want to be able to NOT
run that in. I guess I could just move them to a directory and use .htaccess
to perform a
php_value auto_prepend_file ""
But I was hoping to not hav
On Jan 15, 2008 6:37 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Daniel Brown schreef:
>
> ..
>
> >
> > $embed_code =
> > preg_replace('/height="([0-9]*)"/U','height="'.$height.'"',preg_replace('/width="([0-9]*)"/U','width="'.$width.'"',$embed_code));
>
> I wouldn't have given him the complete re
On Jan 15, 2008 6:42 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> funny that, I usually use 'exit;' for a clean exit and 'die();' to signify
> a shitty exit ... although they are actually indentical functionally - just
> my idiosyncrasity ... that said I also so stuff like 'exit(1);' when I really
On 1/16/08, Ken Kixmoeller -- reply to [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> On Jan 16, 2008, at 1:28 AM, Andrés Robinet wrote:
>
> His other post explains that php didn't seem to like spaces. No
> spaces in the test strings -- I'll check for those when/if I can get
> the core en/decrypt
you don't have to have your files in utf-8 for it to work, just the
browser header.
although any utf-8 characters in your files will look funky. it just
depends where the content comes from... you could always use ®
for the (r) registered symbol for example.
i'd be more apt to figuring out how to
On Wednesday 16 January 2008 15:33:04 Jochem Maas wrote:
> tbt schreef:
> > Hi,
> >
> > I'm a newbie to php and i would like to set register_globals to 'on' from
> > my php script itself(eg:- index.php). Is there any way of doing this.
>
> you think you would like that. but you are wrong. register_
On 16/01/2008, Per Jessen <[EMAIL PROTECTED]> wrote:
> Dotan Cohen wrote:
>
> > I am experimenting with the snmp_set_valueretrieval function, which
> > does not appear to be documented:
> > http://il.php.net/snmp_set_valueretrieval
> >
> > What does this function depend upon? Simply using it throws
On Jan 16, 2008, at 1:28 AM, Andrés Robinet wrote:
1 - Mike is right about first encrypting and then doing a
base64_encode (then saving results to DB, cookies, etc). I don't
know why replacing " " to "+" for decrypting, though.
His other post explains that php didn't seem to like spaces
the user agents in question are various mobile phones, which as you
might guess are premature technology and have their own ways with
things.
here is an example posting from a Samsung D600 which insists on
posting form data in UTF-8 even though i serve it ISO-8859-1 and it
claims to support all ch
On Jan 16, 2008 1:58 AM, Larry Garfield <[EMAIL PROTECTED]> wrote:
> On Tuesday 15 January 2008, Nathan Nobbe wrote:
>
> > when i said a function would have to be loaded into the interpreter to
> > avoid a runtime error
> > upon invocation, i didnt mention that its best to programatically verify
>
On Jan 15, 2008, at 10:48 PM, Casey wrote:
It returns the correct value. If you look at the last example, and run
base64_decode on "MDAwMzEwMDI0NDA0MTMyOQ==", you will get
"0003100244041329".
Oops. "Haste makes crappy programming."
Ken
--
PHP General Mailing List (http://www.php.net/)
To un
Dotan Cohen wrote:
> I am experimenting with the snmp_set_valueretrieval function, which
> does not appear to be documented:
> http://il.php.net/snmp_set_valueretrieval
>
> What does this function depend upon? Simply using it throws this:
> Fatal error: Call to undefined function snmp_set_valuere
I am experimenting with the snmp_set_valueretrieval function, which
does not appear to be documented:
http://il.php.net/snmp_set_valueretrieval
What does this function depend upon? Simply using it throws this:
Fatal error: Call to undefined function snmp_set_valueretrieval() in
I'm on a debi
tbt schreef:
Hi,
I'm a newbie to php and i would like to set register_globals to 'on' from my
php script itself(eg:- index.php). Is there any way of doing this.
you think you would like that. but you are wrong. register_globals is a security
risk in the hands of someone who doesn't know exactl
1 - 100 of 104 matches
Mail list logo