ERLLIB/etc,
> python with PYTHONHOME/PYTHONPATH/etc, ruby with
> RUBYOPT/RUBYLIB/RUBYPATH/etc).
>
> PS: I am aware of -c. It would be nice to have something like
> PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...
print_r($_ENV);
--
Greg Donald
Zend Certified Engineer
http://gdc
t's the querystring. Not sure on that though.
$_SERVER['QUERY_STRING'] to be exact.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 15 Nov 2004 11:21:45 -0700, Ben Miller <[EMAIL PROTECTED]> wrote:
> That did it perfectly. Why don't any of the stupid books tell you that you
> need the AS statement?
Because they assumed you would access it just like you asked for it.
$bar['SUM(Revenue)
ote on most all the $_POST variables.
> mysql_query($add_table) or die(mysql_error());
How about:
or die(mysql_error() . ' query was: ' . $add_table)
so you can see your query as it goes to the database.
>
> }
> ?>
>
>
> Add an Entry
>
>
>
>
>
Also, your code is subject to SQL injection. You might want to
investigate PHP's addslashes() function. And maybe read this too:
http://shiflett.org/php-security.pdf
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in MySQL, you can use
date_format() to reformat it in the query and skip the PHP.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
proper filename. I'd use fopen(),
fwrite(), and fclose, or file_put_contents() if your PHP is new
enough. You won't need to output any headers, they only matter when
you render the file in an application such as a web client.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com
er software has anything to do with
protecting the end user from a virus or from spyware. The execution
of a PHP script begins and ends on the web server. The output is sent
to the requester for rendering, not further execution.
Can you please explain a bit more?
--
Greg Donald
Zend Certifie
date and i get
> the following error
> [nativecode=Unable to complete network request to host "127.0.0.1".
> Error writing data to the connection. Broken pipe]
You might try pcntl_fork() instead.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.c
nity
> to improve your skills and get ahead of the competition.
>
> Hope to see you there.
So do you plan to send us all plane fare to London and allow us to
attend your 'great opportunity' for free?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http
should I construct
> the function?
That's Javascript, not PHP.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o, is there actially better way to do this then adding \n between
> strings?
You can use whatever works. I use the pipe | character, it's pretty
standard and I've never seen it used as anything except a delimiter.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
htt
On Tue, 16 Nov 2004 15:11:39 -0800, Dustin Krysak
<[EMAIL PROTECTED]> wrote:
> how can you check if something is not set?
!isset()
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
On Wed, 17 Nov 2004 10:28:30 +1100, adwinwijaya
<[EMAIL PROTECTED]> wrote:
> Hello php-general,
>
> I have question for you :)
>
> Is there suggestion about how to remove html tag, javascript and quote
> (' & ") from user's input at the same time ?
s
Bruno b b magalhães wrote:
So, the question, how resort the numeric values to 1,2,3,4?
http://www.php.net/array_values
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not just constructors. Is this a
bug, or is this behavior correct for some reason? (Tested in php 5.0.0,
5.0.1, and 5.0.2)
This looks like a bug to me, open a report.
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= $rm->invoke(null, $args);
} catch (ReflectionException $e) {}
}
}
static_my_class::format_string('a');
$a = new my_class;
$a->format_string('a');
?>
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
trace() is reporting that
__CLASS__ is foo inside bar::b().
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sily plug in new base functionality.
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 18 Nov 2004 09:41:53 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote:
> What editor do you use when working with websites (php) connected directly
> to the FTP?
Editplus has this ability.
http://editplus.com/
--
Greg Donald
Zend Certified Engineer
http://gdconsultan
server:
php.net/fsockopen
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he following string is 6
> words long:
>
> "
>
> This string is six words long.
>
> "
Use strip_tags() to remove the html, then explode() the string by a
space, then count() the exploded array.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
h
d PHP sessions, passing
the session id in the url. As long as you connect to the same
database, your PHP session will follow you wherever your scripts live.
Someone probably has something better, but here's mine:
http://destiney.com/pub/php_db_sessions.tar.gz
--
Greg Donald
Zend Certified E
st to this subject, which surprises me.
> Does anyone know of any tool that can handle this type of thing?
You may find this reference page useful:
http://www.cs.wcupa.edu/~rkline/perl2php/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PH
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson <[EMAIL PROTECTED]> wrote:
> What is the difference between these two examples?
> diff 1.txt 2.txt
1c1
< 1. if ($_POST['submit'] == 'Login') {
---
> 2. if (isset($_POST['submit'])
onClick=\"document.client_picker.submit()\">
>Select Client
>Bank of America
>Verizon
>Verizon Wireless
>AARP
>
>
> \\ The inner form ends here
>
>
>
> ";
You might check out PHP's heredoc syntax of you plan to
ss,location". It´s important that the comas must be
> inserted after the first word, and before the last one.
implode()
php.net/implode
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Merlin wrote:
Hi there,
I am trying to get a class running which requires pear:DB.
I downloaded the package and executed:
# pear install DB-1.6.8.tgz
DB already installed
pear upgrade DB-1.6.8.tgz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
after
all that, you still have a question, then this is definitely the place
to ask.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
se do you plan to learn the language
without RTFM? The knowledge isn't going to just jump into your head.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
"RTFM almost daily since 1998.."
--
PHP General Mailing List (http://www.php.n
On Thu, 25 Nov 2004 11:43:56 +0600, Raditha Dissanayake
<[EMAIL PROTECTED]> wrote:
> hey greg, don't jump on me, i was trying to say the same thing you are
> saying perhaps i should have worded it better :-))
Sorry if I offended you.
--
Greg Donald
Zend Certif
On Thu, 25 Nov 2004 04:25:10 -0500, John Nichel <[EMAIL PROTECTED]> wrote:
> Happy Turkey Day ladies and gents.
Same to you.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
tain any heredoc quoted strings, nor does it
> contain anywhere the strings "<<" or ">>". So what could be the cause of
> the T_SL error?
I dunno if that's just a typo in your post, but heredoc requires 3 <<<
or >>>, not two as you wrote.
Are you using any sort of PHP cache by chance?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that is being included before
pear's DB.php
the get_included_files() function can help you lots on this one
http://us2.php.net/manual/en/function.get-included-files.php
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;;
}
$a = new ReflectionClass('TestClass');
echo $a->getProperty('Data')->getValue(null);
?>
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
their language.
> >
> > Is that possible? Has anybody ever doen anything like that using php?
You can use geoip:
http://sourceforge.net/projects/geoip/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www
#x27;ve
never heard of a 'cgi module'. :)
> I hit a problem. At line
> 53, $ref_page is an array containing the values I expect. After line 54,
> $ref_page is now a scalar containing the value of THIS_PAGE. It's almost as
> though line 54 has been executed before line 53... Help!
Is the function returning what you think it is? print_r() before the return.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ded to the user? *turning off
> the buffer basicly*
You can control PHP's output buffering.
http://us2.php.net/manual/en/ref.outcontrol.php#ini.output-buffering
You cannot control the web client's display buffering with PHP.
--
Greg Donald
Zend Certified Engineer
http://gdconsulta
class
Perhaps we need a similar function to provide access to our static
variables! :)
How about:
echo Myclass::$myvar;
?>
The only problem is if you want to be able to generically access a
static variable from any class that has it, like $Myclass::$myvar.
Greg
--
PHP General Mailing L
blic), then yes, you can
override them.
Override is misleading. Since they can only be access by
Classname::$var, unless you use Reflection, code designed to work with
the parent class can't access the child class's static variables.
Greg
--
PHP General Mailing List (http://www.php
ple's code, I would wait a year or two to
upgrade. Otherwise, what are you waiting for?
:)
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;SELECT product_id FROM products WHERE product_id <> '$ex_array' " ;
$sql = "
SELECT
product_id
FROM
products
WHERE
product_id NOT IN ( "
. implode( ', ', $ex_array )
. " ) ";
This question would be more appropriate fo
4.3.9 with no issues.
> My code works fine with PHP 5 (fortunately) under Windows, but it doesn't
> work with PHP 4.3.4 under Linux.
>
> I think I need to upgrade php under Linux also...
I would defiantly upgrade. Hundreds of bugs have been fixed from
4.3.4 -> 4.3.9.
http:
On Mon, 29 Nov 2004 10:28:57 -0600, Greg Donald <[EMAIL PROTECTED]> wrote:
> I would defiantly upgrade.
Definitely too. :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
On Mon, 29 Nov 2004 17:11:47 -, Ross Hulford <[EMAIL PROTECTED]> wrote:
> I have a porblem with undefined variables on loacalhost. Any ideas why? I
> have turned registed variables on.
Where's the code?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
ht
hs inside tags. Is
> there a way to do this easily? Any advice would be greatly appreciated.
explode() the text by the "\n" character, this will give you an array.
Iterate over the array and add your tags there.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
h
On Mon, 29 Nov 2004 11:20:21 -0800, Brian Dunning
<[EMAIL PROTECTED]> wrote:
> It's all about backlinks generated from this free ad network:
In other news, scientists discovered wheels are indeed round.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http:
On Mon, 29 Nov 2004 12:57:43 -0800, Brian Dunning
<[EMAIL PROTECTED]> wrote:
> Well, you're entitled to your opinion, of course; but (a) I clearly put
> [Off] in the subject
Next time try the standard [OT] label instead.
--
Greg Donald
Zend Certified Engineer
http://gdcons
e or syslog, but a
> such setup doesn't fit to virtual host scenario...
>
> Thanks for your advice and excuse me, If i missed something trivial.
You can override much of the php.ini with ini_set().
http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log
--
Greg Don
that Apache doesn't have already? Just curious is all.
:)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to use NPTL but peeps were having lots of glibc
issues at the time. :(
I'm using 2.6 in a couple places, desktops and dev servers, but have
not tried NPTL yet.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http:/
as $v )
{
$array[] = " zip LIKE '" . $v . "%' ";
}
$OR = implode( ' OR ', $array );
$sql = "
SELECT
*
FROM
people
WHERE 1
AND (
$OR
)
";
All untested of course.
> Alright I await the wisdom of PHP-General
:)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 30 Nov 2004 14:43:51 -0500, Robert Sossomon <[EMAIL PROTECTED]> wrote:
> Fatal error: Call to undefined function: imagesx() in c:\fourh\spotlight3.php
> on
> line 31
Do print_r( gd_info() ); to see if your PHP has support for working with images.
--
Greg Donald
Zend Cer
tion
support for database driven PHP sessions. You may want to see how
they do it in PHP.
adodb.sf.net
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 30 Nov 2004 16:50:27 -0500, John Nichel <[EMAIL PROTECTED]> wrote:
> PHP (the webserver) would have to have permission to edit the ifcfg-eth0
> (eth1, eth2, etc) file, and have permission to restart the network.
sudo would probably help with the permissions requirements.
--
ng_ client side. PHP's execution begins and
ends server side.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
egi_replace("($term)", "\\1", $source);
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be like below
> $su root
> Password:'password'
>
> but when I tried running exec() command on PHP, I couldn't do that
> exec("su root");
>
> I can't sent a password thru the exec() command, any way to do that?
You might want to look at sudo, you
On Wed, 1 Dec 2004 17:14:56 -, Robinson, Matthew
<[EMAIL PROTECTED]> wrote:
> I've kind of solved this question already using recursion but I
> recon (in the grand tradition) that someone has a better solution!
Recursion and is_array() is the way I'd parse
looked in
> my book I have searched on the php site and have had no luck.
> WHAT IN THE HECK IS A "T_" error. I get "T_Else", T_Variable, T_what ever.
> What does it mean
> Very frustrated old man.
Where's the code?
--
Greg Donald
Zend Certified En
On Wed, 1 Dec 2004 11:51:33 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]>
wrote:
> That's Geek for "you typed something so wrong, I don't even know what
> you're trying to do"
Man.. they let just about anyone post to php-general lately. :)
How you
$uploadError = 'The uploaded file was only partially
uploaded';
case 4:
$submitError = true;
$uploadError = 'No file was uploaded';
}
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 1 Dec 2004 22:16:25 +0100, Sven Schwyn <[EMAIL PROTECTED]> wrote:
> Does anybody know whether there's a way to tell PHP to accept an
> alternative open tag like for instance normal http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
You could always patch zend_language_scanner.c and add your own custom tags.
Isn't open source great? :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
a finite
> life span and I would like to be able to control it.
ini_set( 'session.gc_maxlifetime', 3600 );
http://us2.php.net/manual/en/ref.session.php#ini.session.gc-maxlifetime
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PH
to previous page and
> correct it,
> I have used the javascript : OnClick='history.go(-1)' and
> OnClick='history.back()' in php , but it can not workspls help me.
The only way I've ever found was to change the form method to GET
instead of POST,
On Wed, 1 Dec 2004 17:57:28 -0700, news.php.net <[EMAIL PROTECTED]> wrote:
> Anyone else doing or done something like this?
I use sudo when my web server needs temporary elevated permissions.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PH
On Wed, 01 Dec 2004 21:59:25 -0500, Robert Cummings
<[EMAIL PROTECTED]> wrote:
> PHP is plenty well developed, but PHP != Java and nor would most want it
> to be. Java *ACK PTHEEWY*.
I see alot of Java influence in PHP5 myself.
--
Greg Donald
Zend Certified Engineer
http://gdcon
s of classes.
And if you really miss Java, check out Mojavi.org.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 01 Dec 2004 22:41:14 -0500, Robert Cummings
<[EMAIL PROTECTED]> wrote:
> I thought it was Smalltalk. But then I prefer PHP for it's similarities
> to C even if I do write 99% of my code into classes.
Could be.. I never wrote any Smalltalk so I wouldn't know.
a cookie, then check for it later. If it exists, bypass the login
and grant a session or whatever you're doing now for logged-in users.
You might also want to set a session variable that the cookie has been
'looked for' so it doesn't relog them in on each page request.
php.net/se
sent
Why reinvent the wheel? Use MRTG.
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l me is it usefull or not?
I've never tried that particular framework, but I have used Mojavi for
several months now and can say it's very useful: mojavi.org
I tried Binarycloud for a couple weeks but didn't like it much, I
didn't really need a 'build system
On Fri, 3 Dec 2004 19:47:27 +0200, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> wrote:
> when there is no records in the dataabse i get mysql error.
So wrap your while( mysql_fetch_array() ) with if( mysql_num_rows() ).
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.
and Cookies?
You can use encrypted and compressed PHP sessions, and store them in
the database instead of on the filesystem. I use ADOdb which provides
all of that.
adodb.sf.net
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailin
nfigure ends with no errors, but when I compile it it dies with:
sapi/cgi/cgi_main.o(.text+0x1499): In function `main':
/home/greg/php-5.0.2/sapi/cgi/cgi_main.c:1580: undefined reference to
`open_file_for_scanning'
sapi/cgi/cgi_main.o(.text+0x150b):/home/greg/php-5.0.2/sapi/cgi/cgi_main.
On Fri, 3 Dec 2004 15:56:26 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote:
> How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2).
http://www.php.net/manual/en/install.unix.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
ossible using PHP. Or how should I approach to
> achieve this one.
I'd use HTML.
http://w3c.org/MarkUp/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d to support more
connections, you should restart mysqld with a larger value for this
variable.
You can increase this value in the MySQL server config file (mine is
in /etc/mysql/my.cnf) using this syntax:
[mysqld]
set-variable = max_connections=200
--
Greg Donald
Zend Certified E
the second &");
}
?>
Here's your PHP5 version
prop = $this;
}
}
$ob = new Ob;
$test = new Test;
$test->setMe($ob);
if ($ob->prop) {
error_log("PHP5 is *way* more than OK");
} else {
error_log("This can't happen");
}
?>
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben wrote:
Thanks a lot for your responses guys. Unfortunately it still isn't
working for me. I've tried both :
$ob->prop = &$this
and$ob->prop &= $this (just in case)
Neither produce a "PHP is OK".
I'm using version 4.2.2 btw. (If ONLY I was on
Ben wrote:
class Ob {
var $prop;
}
class Test {
function setMe(&$ob) {
$ob->prop = $this;
}
}
$ob = new Ob();
$test = new Test();
$test->setMe($ob);
if ($ob->prop) error_log("PHP is OK");
You should use "if (is_a($ob->prop, 'test')
basic pagination. I'd use PEAR.
http://pear.php.net/package-search.php?pkg_name=page
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n classes from PEAR:
http://pear.php.net/package-search.php?pkg_name=page
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> $0405distoffice= $_POST['04_05_dist_office']; //line29
Variables can contain numbers, but the first character after the $
must not be one.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://adodb.sf.net/
The db driven, encrypted and bzip'd sessions are pretty nice too.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot; a jpeg for exploit
code? Seems the only winning move is to not play.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 8 Dec 2004 08:42:50 -0500, Joshua Beall <[EMAIL PROTECTED]> wrote:
> Can you also provide a link to the relevant message in the mailing list
> archive? I would like to read this myself.
http://seclists.org/lists/security-basics/2004/Dec/0080.html
--
Greg Donald
Zend Certif
guration to use. Is there a
> command similar to the phpinfo() command that can tell me how an already
> installed Apache in configured?
For apache 1.x, I'd use:
./configure --with-layout=RedHat --enable-module=so
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http:/
the mysql query.
>
> Does anyone know how I can remove such chracters?
You can use one of the string replacement functions, eregi_replace()
for example. If you're sure it's a return character then \r is what
you want to replace, or it might possibly be \r\n.
--
Greg Dona
ect control on which I have installed the
> application.
I would detect and send over the correct file type header(), then pass
the file with readfile().
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net
l execution lifetime is less than a second or two. The overhead
just isn't worth it.
http://www.geocities.com/tablizer/oopbad.htm
[1] ma·lar·key also ma·lar·ky Audio pronunciation of "malarkey" ( P
) Pronunciation Key (m-lärk)
n. Slang
Exaggerated or foolish talk, usually inte
's at this time.", as your promotion
> for completing the project goes down the drain.
If your boss switches databases at the end of the project then he's an
idiot and it should be his problem, not yours.
There are a number of database abstration layers out there btw :)
but we don't have to since they already made it. No OO
in the kernel was the verdict many times over:
http://marc.theaimsgroup.com/?l=linux-kernel
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rry to hear that, I'd recommend you stop using
phpMyFantasticGuestbook immediately. And anything else you don't feel
paranoid about to audit.
I'm no web app cracker but I'm paranoid as they get when it comes to
security. Find yourself some security conscious friends. Hang out.
Adwin Wijaya wrote:
Hi,
Is there any mature DAO class for PHP (free) ?
http://pear.php.net/DB_DataObject
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 13 Dec 2004 23:17:22 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> imagesx() and imagesy()
I knew there had to be a way. Thanks so much.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php
large number of users doing this.
Apache 2 is pretty good with multiple threads from what I hear. I use
it but not in a production environment.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
contents of $_SESSION[]). When subsequent HTTP requests have this
> cookie attached, the correct set of $_SESSION[] variables is loaded...
> Everything right?
Yup.
There are ways to encrypt you PHP sessions if you need such functionality.
--
Greg Donald
Zend Certified Engineer
http:/
s) first?
> It compiled the CGI
> version, which seems to run, but Apache (2.0) doesn't recognize it.
> phpinfo() still reports 4.3.2.
Did you restart Apache?
> Any ideas accepted on making 4.3.9 the default version!
What was your ./configure command?
--
Greg Don
On Tue, 14 Dec 2004 22:17:57 +0100, Daniel Schierbeck <[EMAIL PROTECTED]> wrote:
> And hey, Eclipse is free!
So is vim.
PHP explodes right on the screen for me, an IDE is so not required.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PH
1101 - 1200 of 1454 matches
Mail list logo