What I do to control it only by PHP without using the mod_rewrite for
apache is to use URL with this format:
http://sample.com/script.php/param1/param2/param3
Then, work in the script looking at the variable
$_SERVER['REQUEST_URI'] wich will contain, in this sample:
Hi,
I have an VPS server wich runs cPanel. My PHP version currently
installed is 5.0.3 and had no problems until now.
I've been trying to upgrade my PHP version from 5.0.3 to 5.0.4 with no
success. I've tried doing it with WHM and also tried to do it manually
with ./configure and make.
Always
On Apr 1, 2005 8:30 PM, Colin Ross [EMAIL PROTECTED] wrote:
Is PHP 5 ready for production environments? Is it concidered stable,
or is it just a matter of going a while with no new bugs discovered to
get to stable..
Yes, it is ready. I've been using on my production servers since
version
Please,
This is an English list. I'll thank if you can write plain english on it.
Thanks.
On Tue, 22 Mar 2005 21:18:06 +0100, Aurélien Cabezon
[EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mike Johnson wrote:
| Si je lis votre question correctement, vous desire
Many thanks to all for clarifiying this. Finally I could remember some
things and understand why things go that way.
Thanks again.
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm trying to understand how the intval() function works, but I'm
unable to understand how exactly it works.
Take a look at this piece of code (Tested on PHP 5.0.3):
?php
$a = (0.1 + 0.7) * 10;
$b = intval($a);
echo 'a - '. $a .' - '. gettype($a); // Prints: a - 8 - double
echo 'br';
On Tue, 25 Jan 2005 16:29:38 -, Chris Ramsay
[EMAIL PROTECTED] wrote:
snip
Hey!
I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!?
/snip
I have received this also with both my postings today...and probably will
again...
I've just sent ONE message to the list
Wish List: PHP 6 uses E_ALL by default install.
I wish E_ALL | E_STRICT
Regards,
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 21 Jan 2005 09:43:38 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
Thus my point remains:
On a shared server, I don't need to resort to calling this function to
hijack your Cookie/session. PHP can read the raw session files. I can
write a PHP script to read the raw session
On Thu, 20 Jan 2005 14:04:44 +0200, Rosen [EMAIL PROTECTED] wrote:
Hi,
Can someone recommend me a search engine script in PHP for inside one site?
http://www.phpdig.net/
Regards,
Jordi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 20 Jan 2005 00:13:35 -, Mikey [EMAIL PROTECTED] wrote:
Hi NG!
Does anyone here know of a way of getting at the user account information
from a windows domain controller from a Linux box, specifically in PHP?
The Windows domain controllers run LDAP. So, you can use the PHP LDAP
On Mon, 27 Dec 2004 08:27:25 -0800, Brian Dunning
[EMAIL PROTECTED] wrote:
Is there a command that will set the include path to the web server
root?
set_include_path($_SERVER['DOCUMENT_ROOT'];
I'm trying to set up a directory structure where include files will be
called from all different
On Tue, 21 Dec 2004 14:56:03 -0500, Jerry Swanson [EMAIL PROTECTED] wrote:
I know that register_globals = on is not secure. But one program
requires to use register_globals=on. So in php.ini register_globals is
set to on.
I have PHP 5.1, is it possible in the code set register_globals=off
Can use a directive on your .htaccess:
php_value include_path /your/include/path/here
This can also be set on your httd.conf in a virtual server basis. If
you have access to php.ini is better to set the include there.
Regards,
Jordi.
On Mon, 20 Dec 2004 12:41:06 -0800, Anthony Baker
[EMAIL
Hi, a couple of comments:
--snip--
htmlentities(htmlspecialchars($_POST['tentry_body'])) . ';
--snip--
Why are you using both htmlentities and htmlspecialchars? Think that
html only converts some entities while htmlentities converts all ...
so, for your purposes, apliying only one could do
On Fri, 03 Dec 2004 09:43:10 +0800, Ho!Tech Guy [EMAIL PROTECTED] wrote:
I have a classified ad section on my site which uses a privacy mail
function so users don't have to make their email address public. Recently
though, the site has been mined (I assume) and spam is being sent.
I was
On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard [EMAIL PROTECTED] wrote:
I'm taking a wild guess here, but doesn't that got anything to do with the
public declaration of the method?
If I declare the method without the public declaration it bahaves the same ...
static function
On Fri, 19 Nov 2004 12:01:16 +0100, Sebastian Mendel
[EMAIL PROTECTED] wrote:
Jordi Canals wrote:
I'm trying to understand static methods in a test class. Reading the
manual, it says: A member or method declared with static can not be
accessed with a variable that is an instance
Hi all,
I'm trying to understand static methods in a test class. Reading the
manual, it says: A member or method declared with static can not be
accessed with a variable that is an instance of the object and cannot
be re-defined in an extending class.
Test code:
?php
class B
{
On Wed, 17 Nov 2004 19:17:13 -0200, Bruno B B Magalhães
[EMAIL PROTECTED] wrote:
Continuing the classes questions...
I have a class loader called 'load_core_class($class=''), but if $class
equals to all I would like to load all classes in the core directory,
include then AND start then this
On Wed, 17 Nov 2004 16:17:44 -0600, Pedro Irán Méndez Pérez
[EMAIL PROTECTED] wrote:
Hello my friends, I need your help in convince to my boss in adopt php for
development of a tool for intranet in my office, he told me that php is open
source and we don´t know if will disappear in a year, or
Hi,
Comment inline
On Wed, 17 Nov 2004 20:19:01 -0600, Brent Clements
[EMAIL PROTECTED] wrote:
?php
class foo {
function foo () {
echo constructed!;
}
}
class childFoo extends foo {
function childFoo() {
// here you
On Tue, 16 Nov 2004 12:33:15 +, Richard Davey [EMAIL PROTECTED] wrote:
G Is there a function that can automatically escape special characters
G before putting them into mySQL?
See magic_quotes to have it done for you. Although this isn't a
recommend approach if you plan to distribute
On Tue, 16 Nov 2004 00:17:27 -0800 (PST), [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
(on windows) can someone tell me where to define which php.ini gets used?
On my dev box, I installed the zend editor. Now when i do a
localhost/phpinfo()
from a normal browser window (ie not from within
Hi all,
Something that has taken me some time to debug and wanted to share:
session_set_cookie_params() does not work when the domain param is
just a one level domain, like it was a TLD.
I have a site in an intranet and our internal domain is .local, so
trying to set the cookie session to the
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond
[EMAIL PROTECTED] wrote:
Greg Donald wrote:
print_r($_ENV);
What should I see in it?
RTFM
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment
--
PHP General Mailing List (http://www.php.net/)
To
On Fri, 12 Nov 2004 16:46:52 +, pete M [EMAIL PROTECTED] wrote:
Unsetting class objects does take time and is really of no benefit
unless there are memory problems
as for freeing resuslts - the same applies
pete
Many thanks for comments. I see that if not having memory problems
it's
On Sat, 13 Nov 2004 11:00:08 -0500, Andre Dubuc [EMAIL PROTECTED] wrote:
Hi,
I have a very annoying problem with pages that re-display using the form
action tag. On re-display the banner, which is set absolute position at 0px,
shifts down by about an inch. I've isolated the cause to the form
Hi all,
I was working now in a new site developed with PHP 5.0.2 and a wonder
came to me:
Is usefull and recommended to unset a class instance when not needed?
Specially when the class was instantiated inside a function and the
function ends. In this case, the system should automatically
On Sun, 7 Nov 2004 11:44:33 +0100, Reinhart Viane [EMAIL PROTECTED] wrote:
Hope some of you also work on sundays :)
I have a little javascript which displays a images (with previous / next
thing)
Now, i populate the javascript array with an php array:
SCRIPT LANGUAGE=JavaScript
!--
On Sun, 7 Nov 2004 03:52:28 -0800 (PST), Stuart Felenstein
[EMAIL PROTECTED] wrote:
I asked a question yesterday about this but I think my
question is now more fine tuned:
Right now I have about 50+ session variables that will
be inserted into my mysql database in a transaction.
I need to
On Wed, 3 Nov 2004 19:02:22 -0800 (PST), Chris Shiflett
[EMAIL PROTECTED] wrote:
There is a lot more. I highlight some of the things I think are of
principal concern for PHP developers in something I call the PHP Security
Workbook:
http://shiflett.org/php-security.pdf
That doesn't cover
Hi,
On Thu, 4 Nov 2004 01:12:40 +1000, Murray @ PlanetThoughtful
[EMAIL PROTECTED] wrote:
When I open the page, I receive the message: PHP Startup: Unable to load
dynamic library './ext/php/_mysql.dll' Can't find the specified module.
I
don't know if this is the exact message, because
On Wed, 03 Nov 2004 12:25:38 -0500, John Nichel [EMAIL PROTECTED] wrote:
Jay Blanchard wrote:
[snip]
Sending as HTML will ensure that _almost_ everyone sees it as a link,
but there are some who have their clients set to block HTML.
[/snip]
Text only on a list like this is just
On 3 Nov 2004 16:38:39 -, Matthew Weier O'Phinney
[EMAIL PROTECTED] wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
function foobar ($a, $b, $c = null)
{
if (isset($c)) {
echo 'The third argument was set';
}
}
That check should be for 'is_null($c)' as the
On Tue, 2 Nov 2004 16:25:56 +, Richard Davey [EMAIL PROTECTED] wrote:
Hello Jerry,
JS I'm sending text email. How I can make new line.
JS \n seems to be not working.
\n in a text (not HTML) email will do the trick most of the time,
sometimes I see \r\n, but \n works for me nicely. Are
On Tue, 2 Nov 2004 17:57:02 +0100, Enrico Weigelt [EMAIL PROTECTED] wrote:
BUT: i personally think its okay to talk about such offtopics when
they're so generally important.
Perhaps is so important to US citizens, but not to much people outside
the US ... and I think this is not a list about
On Tue, 2 Nov 2004 16:07:58 -0800, Brian Dunning [EMAIL PROTECTED] wrote:
I'm Canadian, please stop wasting my bandwidth.
And I'm European and don't mind about US elections. Please STOP this
politics offtopics here.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Richard,
On Wed, 3 Nov 2004 00:19:59 +, Richard Davey [EMAIL PROTECTED] wrote:
Hello Jordi,
Tuesday, November 2, 2004, 5:34:00 PM, you wrote:
JC I hope this will help in composing mail messages and my recommendation
JC is to *follow the standard* and send messages always by using
On Wed, 13 Oct 2004 08:32:17 +0100, Harlequin
[EMAIL PROTECTED] wrote:
Morning all.
this is such a basic question I'm embarrassed to ask but the query worked
fine a few minutes ago and now returns an error:
I get an error:
Parse error: parse error, unexpected '=' in sample.php on line 2
On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven [EMAIL PROTECTED] wrote:
Why use fpassthru? I just use readfile, is there a difference?
The main difference is with fpassthru you never show to the user the
exacr location of the file, so must use the script to download it.
In example, you can
Hi all,
I'd like to know the difference by using the $_SERVER['PHP_SELF'] and
$_SERVER['SCRIPT_NAME'] variables. After I read the manual, I have not
found the difference betwen the two when used in a Web Script. Also,
in all tests I've done, I get the same result in both variables.
Any comment
On Wed, 13 Oct 2004 00:22:40 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
Why use fpassthru? I just use readfile, is there a difference?
I bet Apex11 meant readfile() php function.
Oh, I see. Sorry for the mistake. In this case, I would like to know
also the diference ;)
Regards,
Jordi
On Sun, 10 Oct 2004 15:23:54 +0100, Andrew Cowles
[EMAIL PROTECTED] wrote:
We operate an SMS Gateway service (http://www.kapow.co.uk/) which would do
exactly what you need.
It's been reliably sending SMS since 1995 - and MANY of our clients use PHP.
Unfoturnately your price list is only in
I had this problem in the past, and asking the PHP people, found that
session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for
PHP
5. That is the response I received from a bug I submited some time
ago http://bugs.php.net/bug.php?id=28991
So, You're setting user_trans_sid with ini_set
Hi,
Check the port number: 80 for http and 443 for https (standard
defaults). You can check it with $_SERVER['SERVER_PORT']
i.e.:
if ($_SERVER['SERVER_PORT'] != 443) {
header('Location: https://some.location.here');
}
Also, there is not important if the login form is displayed in SSL
mode
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
Tha't's normal beacuse you have magic_quotes_gpc_on
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob
For all you're talking about, It looks like your hosting provider is
running PHPsuExec. So, PHP is now running as CGI and .htaccess does
not work anymore to setup PHP values or flags (Will fire a 500
internal server error). Instead, you have to use a custom php.ini fle.
(just write in this custom
You have to set the session_save_path(some_where) in all pages where
you call to session_start(). And you should do it *before* calling
session_start.
On the manual:
session_save_path() returns the path of the current directory used to
save session data. If path is specified, the path to which
I use Subversion for that ... similar to CVS, but with new and
interesting features and really easy to setup in any platform. But you
can use any System to control versions and provide access to it to all
developers.
You can get Subversion at http://subversion.tigris.org/
Regards,
Jordi.
On
On Thu, 23 Sep 2004 10:33:54 +0200, Bostjan Skufca @ domenca.com
We use php4 and php5 with apache2 on production servers without any problem
(prefork MPM).
I also have PHP 5 and Apache 2 running on some servers, as I need some
Apache Modules that are only available for Apache 2 ... Also, I
in links because I
want all my pages being validated by the W3C validator service.
Thanks again,
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I should take into consideration.
Thanks to all for reading,
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 19 Sep 2004 14:29:54 +0300, Magdy [EMAIL PROTECTED] wrote:
my problem is with date( ) function which is display a GMT time which is different
from my zone with 3 hours,,,how can i correct this.
The date() function, gets the system current date/time if you don't
pass the second
Harlequin wrote:
I have the following:
[SNIP]
...
$Emp_Status_Rqmt=$row[Emp_Status_Rqmt];
}
if( $Emp_Status_Rqmt == 'Permanent' )
{
$UserStatus = 'Permanent';
}
if( $Emp_Status_Rqmt == 'Contractor' )
{
$UserStatus = 'Contractor';
}
else
{
$UserStatus ==
CHAN YICK WAI wrote:
if a project is worked by a small team of developers, is there a tool for source and
version management for php source code? e.g. check which part of source is modified!
Thanks for information.
Regards, Yw
If you're on windows I recommend using WinCVS and CVSnt.
John Holmes wrote:
$uservar = htmlspecialchars(strip_tags($uservar));
You don't need to use strip_tags _and_ htmlspecialchars()... unless you
want strip_tags to get rid of such malicious and deadly content such as
grin and wow. Just use htmlspecialchars().
Well, my idea was to apply both: I do
#28038 http://bugs.php.net/bug.php?id=28038
... and make your vote to have it solved in some future version ;)
Regards.
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Holmes wrote:
A one hour timeout is better controlled with the session.gc_maxlifetime
setting. This is the number of seconds after which an inactive session
file will be deleted. No session file means no session for the user. Set
this at 3600 and if the user is not active for over an hour,
to pass
the $securevar to the database, or I should consider something more to
be checked before.
Any help or comment will be really usefull.
Regards,
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
will recommend you to get
WinCVS wich provides a nice and easy-to-use CVS interface. (And you can
get CVSnt for a Windows based CVS server).
Regards.
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Ciszewski wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o
Sorry, but you're wrong.
Andre wrote:
Hello
I need one script in PHP to validate only numbers inserted from a form.
For example like a telephone number.
Thanks.
Well ... you can write it or if don't want to code ... perhaps searching
the web could help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Andre wrote:
Does exits any function in PHP to see if one string is compose for
numbers.
YES
http://catb.org/~esr/faqs/smart-questions.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-PHP-Sessions
A nice class:
http://codewalkers.com/seecode/463.html
Best regards,
Jordi Canals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Matt M. wrote:
- Wich is the default timeout for a session? And, is some way to know
the expiration time for a session?
Take a look at the ini variables.
http://us2.php.net/session
session.gc_maxlifetime
Thanks Matt. for your quick and clear answer.
I've readed about it, and seen the default is 24
Porcupine PC wrote:
How can i use PHP-Nuke in this safe mode?
You must try to ask this in a PHP-Nuke especific list ... But the answer
is NO, cannot be used in safe mode.
Regards,
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Justin French wrote:
I've got some weirdness with files included via a symbolic link. Is
there any way I can find out what directory PHP is currently trying
include from?
get_include_path();
Regards,
Jordi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Curt Zirzow wrote:
* Thus wrote Jordi Canals:
Jordi Canals wrote:
Should I filter all CR and LF Just in headers or also I should do that
in the message body? (Which is sent in the SMTP DATA section).
One of the things to ensure you dont do is blindly allow user
entered data sending
Vinayakam Murugan wrote:
Hi
We are developing a PHP / MySql based website. The requirements include a
discussion forum and online chat application with open chat rooms, invited
chat one-to-one chat.
There are many packages which are available on sourceforge and the like. I
would like the
Jordi Canals wrote:
Dennis Gearon wrote:
remove carriage returns to prevent embedded email directives
In an other thread, I readed that sentence. I'm interested to find more
information about that. I have some mail forms and want to make them as
secure and possible, but do not know about what
Ed Lazor wrote:
phpNuke is also popular.
And plenty of bugs and security holes ...
Regards,
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Manuel Lemos wrote:
Hello,
On 07/15/2004 10:25 PM, Jordi Canals wrote:
remove carriage returns to prevent embedded email directives
Should I filter all CR and LF Just in headers or also I should do that
in the message body? (Which is sent in the SMTP DATA section).
Anyway, you may want to take
fixes
some security bugs.
Mine is upgrading today alto to 4.3.8 (From 4.3.7), and before where
many, many upgrade versions.
My only problem is that I cannot test pages on my preview server, during
this time. My only worry is my pub being opened to have a beer with
friend ;)
Regards,
Jordi
Scott Taylor wrote:
I would like to go from page to page, submitting the password through a
GET query string. Of course I wouldn't want to do this unencrypted. So
is mcrypt the best option?
I think to submit the password on the query string is a really bad idea.
What will happend if a user
Dennis Gearon wrote:
remove carriage returns to prevent embedded email directives
In an other thread, I readed that sentence. I'm interested to find more
information about that. I have some mail forms and want to make them as
secure and possible, but do not know about what and where should I
[EMAIL PROTECTED] wrote:
Indeed... who doesn't enjoy a brief break to see what's happening in their
world?
I ended up using 'hail' (http://www.hailware.com/)
As far as I can tell, it doesn't allow attatchments...
Spending lunch hour checking personal mails... who can honestly admit that
it
Ed Lazor wrote:
Am I the only one getting these every time I post to the list?
Everyone is getting it. But we cannot know wich address is giving back
this message, as it is not reported. Just we know the domain it comes from.
I've already added that domain to my spam list and forgot lazy people
Hi,
I usually stripslashes() when I read the info from the database (MySQL).
Because the information was inserted after adding slashes, or the
system has magic_quotes_gpc set to ON.
I'd like to know, if I can do stripslashes() directly, as it is suposed
that all data was inserted into DB
Ronald The Newbie Allen wrote:
aHere is my code...
?
setcookie(cookie[name],$_POST['name'], time()+86400)
setcookie (cookie[email],$_POST['email'], time()+86400)
setcookie (cookie[bgcolor],$_POST['bgcolor'], time()+86400)
setcookie (cookie[tcolor], $_POST['tcolor'], time()+86400)
?
I have to use
Philip Olson wrote:
I usually stripslashes() when I read the info from the database (MySQL).
Because the information was inserted after adding slashes, or the
system has magic_quotes_gpc set to ON.
To add further comment. If you're required to run stripslashes() on
data coming out of your
Curt Zirzow wrote:
$userid = (int) $_POST['TXT_UserID'];
$sql = ... WHERE UserID = $userid;
Seing that I have a question around. Most cases I validate the $userid
by using the function inval() in that way:
$userid = inval($_POST['TXT_UserID'];
$sql = ... WHERE UserID = $userid;
I
Hi all,
I have an extrange problem with the session cookie:
In all my pages there I have this two lines to start the session:
session_name('jcwse');
session_start();
When I access my website, at any page, everytyhink works OK, and the
session cookie is set with no problem except for links.
In
Jordi Canals wrote:
This problem only arises on my ISP hosting (Linux+Apache 1.3) and does
not show on my devel computer (Windows+Apache 2.0). I've been searching
the manual, but found no explanation about that.
Sorry forgot it: The two platforms run PHP 4.3.7
Thanks again,
Jordi.
--
PHP General
have different settings in
the PHP.ini file to that of your ISP, probably register_globals is set
to off. I would check it.
HTH
Angelo
Jordi Canals [EMAIL PROTECTED] 7/2/2004 11:14:28 AM
session_name('jcwse');
session_start();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Lars Torben Wilson wrote:
About the cookie params (In PHP.INI) I checked them on the two
platforms with phpinfo() and are exactly the same.
Was your binary compiled with --enable-trans-sid? If so, I imagine the
explanation would be something along the lines that because the session
manager
Andre Dubuc wrote:
I thought a simple re-direct page might do
the trick.
I've tried three methods:
the header approach
header(location: ../conn-up.php);
an absolute header:
header(location: /vhome/conn-up.php);
and an include approach:
include(../conn-up.php);
Te header methods will not
Vincent DUPONT wrote:
We need to install one windows 203 server with various versions of the same application.
The versions will be held in disticnt web sites on this server. In order to point to the different application versions, I need to point the include_path to the right php scripts (in
Red Wingate wrote:
the magic constant __FILE__ will give you the absolut filesystem
location of the file it is called. Eg:
/home/www/tests/foo.php -
?php
echo __FILE__ ;
?
will print: '/home/www/tests/foo.php';
to retrieve the path only you could do:
/home/www/tests/foo.php -
?php
echo
Some time ago, I was working for a governement departament, and I asked
about this kind of messages. The answer was clear and explicit:
This kind of message are a FRAUD (I don't now how they do the fraud) and
are investigated and are INVESTIGATED and PERSECUTED by the Spanish
Police in
Martin Geisler wrote:
My PHP manual (from a Debian package) has the following note on the
page for round():
Caution
When rounding on exact halves round() rounds down on evens and up on
odds. If you want to always force it in one direction on a .5 (or
.05 in your case) add or substract a tiny
Sherri wrote:
Woah!
Signed up litterally 1 minute ago and I'm already getting spam. From
Advance Credit Suisse Bank
Just wait. There are some more waiting for you ;) You should receive the
Information Desk and Ingram Computer Services mails yet.
--
PHP General Mailing List (http://www.php.net/)
Burhan Khalid wrote:
Jordi Canals wrote:
Hi all,
Cpanel is a control panel to manage accounts for ISP's (And espcially
ISP's resellers). I knnow there is some librarys to directly manage
the accounts from PHP-Scripts and I got some very small and
undocummented samples.
I'm working on some
Hi all,
Cpanel is a control panel to manage accounts for ISP's (And espcially
ISP's resellers). I knnow there is some librarys to directly manage the
accounts from PHP-Scripts and I got some very small and undocummented
samples.
I'm working on some scripts to manage the accounts directly from
Al wrote:
Can someone explain to me the value of using defined custom constants,
in the context of good coding practice.
I don't recall ever seeing define() used in the scripts I've seen and
only the characteristics are described in the my php book and the php
manual; but, not the use.
Manuel González Noriega wrote:
El vie, 21-05-2004 a las 19:12, Jordi Canals escribió:
Queria comentar sobre un pequeño proyecto que tengo en mente:
sería interesante que comentaras la motivación detrás del proyecto. ¿Ves
carencias que solucionar en proyectos ya equivalentes a tu idea como
PEAR o
Travis Low wrote:
Jordi Canals wrote:
I'm working on some scripts to manage the [cpanel] accounts directly
from PHP (Scripts will be GNU/GPL licensed).
After STFW, I've not found any good documentation on it, just the
short samples on http://www.cpanel.net/remoteaccess-php.html
I haven't found
You need to place session_start() at the top of test2.php.
If you use session_start, you should not use using session_register(),
just use $_SESSION. From Manual: If you are using $_SESSION and
disable register_globals, do not use session_register(),
session_is_registered() and
Hi all,
It is not a big issue, but that is something that I never had clear.
I've been looking at the manual and found no answer, so I will ask with
an example:
When instantiating an object, I could do it in two different ways:
A) $object = new MyClass;
B) $object = new MyClass;
I
Rudy Metzger wrote:
It is as you say. The problem is normally negligible, but makes a big
difference if there is alot done in the constructor of the object (e.g.
scanning a huge file for certain strings). Then this will slow things
down. This however is solved in PHP5.
Thanks to all for your
1 - 100 of 110 matches
Mail list logo