How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
$PHP_SELF gives only page name.
Can any one help me?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To
On Wednesday 03 November 2004 08:13, Kevin Javia wrote:
How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
print_r($_SERVER) and pick the one most suitable.
--
Jason Wong
Hi,
You may use $_SERVER['REQUEST_URI'];
Zareef ahmed
-Original Message-
From: Kevin Javia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] URL thing
How can I get the URL in the address bar in any variable?
If URL is
$_GET[var1] and $_GET[var2]
On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia [EMAIL PROTECTED] wrote:
How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
$PHP_SELF gives
Hi Lists,
I wanted to know one thing that ,
I am migrating all my Office Desktops to Linux Desktops , I wanted to know if Active
Directory is for Windows , then What is in Linux Community ?
On Wed, 3 Nov 2004 04:04, Apexeleven wrote:
I can't wait for the replies...
What! I just voted three weeks ago- you mean I have to do it again?
--
David Robley
Why doesn't the Bat Computer ever crash?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 3 Nov 2004 05:49, Michael Sims wrote:
John Nichel wrote:
ApexEleven wrote:
I can't wait for the replies...
cat $you /dev/null
Or the slightly more destructive variant:
cat /dev/null $you
:)
Perhaps more filling:
cat /dev/zero $you
--
David Robley
Who is General
Hi All,
I'm a little confused by a problem I'm experiencing with a form that is
being processed differently between IE and FireFox.
For some reason, when a new record on my form is submitted to the code
below, it gets processed as though it were an edit operation when executed
via Internet
Hi there,
I would like to encrypt some info and later be able to decrypt it. As I saw
there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
Thank you for any help,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Quoting Cristi Barladeanu [EMAIL PROTECTED]:
My problem is pretty simple. User enters the site, logins, and after
that he hits ctrl+n or something, to open a new window from same
browser. Can I make him to login again in the new window but to keep
him logged in the old one?
Now i'm using
Hey,
take a look at MCrypt http://ch.php.net/mcrypt
regards
Sascha
Merlin wrote:
Hi there,
I would like to encrypt some info and later be able to decrypt it. As I
saw there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
Thank you for any help,
Merlin wrote:
Hi there,
I would like to encrypt some info and later be able to decrypt it. As I
saw there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
Thank you for any help,
Merlin
Hi,
I found that there is mcrypt_encrypt, but also the php
Sascha Kaufmann wrote:
Hey,
take a look at MCrypt http://ch.php.net/mcrypt
regards
Sascha
Merlin wrote:
Hi there,
I would like to encrypt some info and later be able to decrypt it. As
I saw there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
This code:
?php
class TestClass {
private $self;
function __construct () {
$this-self = $this;
}
}
$Obj = new TestClass ();
print_r ( $Obj );
echo br;
$Arr = (array) $Obj;
print_r ( $Arr );
?
Produce the following output:
TestClass Object ( [self:private] = TestClass Object
Hi,
is it possible to get php to calculate the date of the monday given a week
number and the year? I have looked http://uk.php.net/strtotime here and can
find refererence to everything but this!
Thanks for your help,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Quoting Merlin [EMAIL PROTECTED]:
Merlin wrote:
Hi there,
I would like to encrypt some info and later be able to decrypt it. As
I saw there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
Thank you for any help,
Merlin
Forget it, it has a lot of sense since self is a reference to the object
itself, but the new array is not in the same memory than the source
object, so result cannot be as I expected because self is no really
self within the array, but a reference to an object outside it.
The result its perfectly
On Wednesday 03 November 2004 09:55, Murray @ PlanetThoughtful wrote:
Please be considerate by NOT posting your COMPLETE code. Construct a *concise*
example that sufficiently illustrates your problem.
However, the same form, submitted with what should be a blank recid hidden
field value, is
On Wednesday 03 November 2004 10:29, Shaun wrote:
is it possible to get php to calculate the date of the monday given a week
number and the year? I have looked http://uk.php.net/strtotime here and can
find refererence to everything but this!
What I did for a timesheet application was to
Hi Jason,
I wasn't under the impression that posting 18ish lines of code would be
thought of as inconsiderate, but thank you for the pointer all the same.
Btw, have you noticed that your signature is about 12 lines long? I assume
that goes out on all of your messages, not just the once-off of
Hi all,
I'm new at PHP.
I am looking for a good free IDE supporting PHP; and the way to
configure the IDE so that I can see the results in IDE.
Can any one help me?
Thanks.
Do Minh Hieu, Software Engineer
ELCA Information Technology (Vietnam) Ltd. / www.elca.ch
Le mer 03/11/2004 à 09:55, Murray @ PlanetThoughtful a écrit :
Hi All,
Hi, and sympathy about the 12 lines signature :-)
However, only the test part of your script (the
if(isset($_POST['recid']))... ) was needed.
I'm a little confused by a problem I'm experiencing with a form that is
being
Skippy wrote:
Quoting Merlin [EMAIL PROTECTED]:
Merlin wrote:
Hi there,
I would like to encrypt some info and later be able to decrypt it. As
I saw there is only one way encryption possible with encrypt.
Has anybody an idea how to do a 2 way encrypten?
Thank you for any help,
Merlin
Hi,
that
Le mer 03/11/2004 à 11:36, Do Minh Hieu, Mr a écrit :
Hi all,
I'm new at PHP.
Hi and welcome.
I am looking for a good free IDE supporting PHP; and the way to
configure the IDE so that I can see the results in IDE.
As mentionned just a few days before you arrived, IDEs are a matter of
On Wednesday 03 November 2004 11:21, Murray @ PlanetThoughtful wrote:
Please do not top post.
I wasn't under the impression that posting 18ish lines of code would be
thought of as inconsiderate, but thank you for the pointer all the same.
Keeping your code concise is as much a benefit for you
On Wednesday 03 November 2004 11:47, Merlin wrote:
Hi, I tryed the Pear package, and it encryptes well. However the encrypten
is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can
this be that hard?`I bet there are hundreds of people wanting to make a
similar encrypten with
Murray
I'm guessing that IE sends $recid = '' whereas firefox doesn't send it
at all because it's an empty form field.
Try checking for empty($recid) instead - that way you can check that it
not only exists (as in isset) but also that it has a value (i.e. not '',
NULL, 0 or FALSE)
Hope this
On Wed, 3 Nov 2004 21:21:48 +1000, Murray @ PlanetThoughtful
[EMAIL PROTECTED] wrote:
I wasn't under the impression that posting 18ish lines of code would be
thought of as inconsiderate, but thank you for the pointer all the same.
Jason has made a campaign out of complaining lately about
On Wed, 3 Nov 2004 14:44:58 +0530, Mulley, Nikhil [EMAIL PROTECTED] wrote:
I wanted to know one thing that ,
I am migrating all my Office Desktops to Linux Desktops ,
I wanted to know if Active Directory is for Windows , then
What is in Linux Community ?
Did you forget to include your PHP
Le mer 03/11/2004 à 09:55, Murray @ PlanetThoughtful a écrit :
Hi All,
Hi, and sympathy about the 12 lines signature :-)
However, only the test part of your script (the
if(isset($_POST['recid']))... ) was needed.
I'm a little confused by a problem I'm experiencing with a form that is
being
On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote:
I would like to install PEAR Calendar module and did a
[EMAIL PROTECTED] apps]# pear install Calendar
but got these:
No release with state equal to: 'stable' found for 'Calendar'
Please advise.
Install it manually.
Hello Jason,
Wednesday, November 3, 2004, 11:50:26 AM, you wrote:
JW If you're interested:
JW http://homepages.tesco.net/~J.deBoynePollard/FGA/qmail-myths-dispelled.html
JW the section entitled The myth about supporting bare LFs being a requirement
Interesting reading. Pair Networks use qmail
On Wednesday 03 November 2004 12:11, Greg Donald wrote:
Jason has made a campaign out of complaining lately about anything he
can.
It's because my envy of your spanking new Zend Certification is making me
loopy!
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software
I wasn't under the impression that posting 18ish lines of code would be
thought of as inconsiderate, but thank you for the pointer all the same.
Jason has made a campaign out of complaining lately about anything he
can. It's not that big a deal to most people I imagine.
I wouldn't have
[snip]
Why doesn't the Bat Computer ever crash?
[/snip]
Linux, of course!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday 03 November 2004 12:29, Richard Davey wrote:
Interesting reading. Pair Networks use qmail as their SMTP server of
choice so I threw a test email out via PHP that had \n's all over the
shop and it arrived quite happily. So either something has changed
since the writing of that or
Hi,
Wednesday, November 3, 2004, 8:29:27 PM, you wrote:
S Hi,
S is it possible to get php to calculate the date of the monday given a week
S number and the year? I have looked http://uk.php.net/strtotime here and can
S find refererence to everything but this!
S Thanks for your help,
This
Ryan A wrote:
switch ($the_choice) {
case Daniel_Schierbeck_1:
echo 'Didnt read previous thread and comes voiceing his political opinions
like a jackass on a high traffic PHP mailing list which people from
different countries other than the states receive';
break;
case Daniel_Schierbeck_2:
Ryan A wrote:
On 11/2/2004 6:34:43 PM, ApexEleven ([EMAIL PROTECTED]) wrote:
I can't wait for the replies...
Heres one, I vote you drive yourself and your family as fast as possible on
the freeway then close your eyes and wave both your hands in the air while
counting from 1000 to 1, be sure to
Jason Wong wrote:
On Wednesday 03 November 2004 11:47, Merlin wrote:
Hi, I tryed the Pear package, and it encryptes well. However the encrypten
is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can
this be that hard?`I bet there are hundreds of people wanting to make a
similar
Hello Merlin,
Wednesday, November 3, 2004, 2:50:48 PM, you wrote:
M The system will send out emails to customers with a link where they can change
M their details. To identify the record, the link has to carry the client id. But
M if it is obvious that this is the id, manipulation of the id can
Hello,
I have a question about the date.
I have a script that compose an e-mail and send it. No
problem until now, but I also need that the script can
write the date of the next week.
Let say we are Wednesday. The script must write the
date of Wednesday 3rd in the e-mail. But from 5pm
today, it
screw all this political bullsh1t!
who cares about the americans, they are just after oil and I dont care
as long as bush doesnt win.
long live iraq!!!
Daniel Schierbeck [EMAIL PROTECTED] 11/3/2004 3:52:35 PM
Ryan A wrote:
On 11/2/2004 6:34:43 PM, ApexEleven ([EMAIL PROTECTED]) wrote:
I
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles Roadnight
Richard Davey wrote:
Hello Merlin,
Wednesday, November 3, 2004, 2:50:48 PM, you wrote:
M The system will send out emails to customers with a link where they can change
M their details. To identify the record, the link has to carry the client id. But
M if it is obvious that this is the id,
--- Angelo Zanetti [EMAIL PROTECTED] wrote:
[snip]
session_start();
$_SESSION['foo']= screw all this political bullsh1t!
who cares about the americans, they are just after
oil and I dont care as long as bush doesnt win.
long live iraq!!!;
unset($foo);
session_destroy();
--
When I open the page, I receive the message: PHP Startup: Unable to load
dynamic library ./ext/php/_mysql.dll Cant find the specified module.
I
dont know if this is the exact message, because the original is in
Portuguese: (
) Não foi possível encontrar o módulo especificado.
* Giles Roadnight [EMAIL PROTECTED]:
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Read
Giles Roadnight wrote:
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles
On Wednesday 03 November 2004 14:50, Merlin wrote:
Here is a short explanation:
The system will send out emails to customers with a link where they can
change their details. To identify the record, the link has to carry the
client id. But if it is obvious that this is the id, manipulation of
Giles Roadnight wrote:
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles
[snip]
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
[/snip]
THIS is going too far, I am not an American or staying in the States but I
hope bush wins,your country tries to develop WMDs and the Americans come and
kick all your asses, impose sanctions and then leave :-D
See what happens when you discuss your political views on a list that has
different
On 11/3/2004 2:48:28 PM, Daniel Schierbeck ([EMAIL PROTECTED]) wrote:
Ryan A wrote:
switch ($the_choice) {
case Daniel_Schierbeck_1:
echo
'Didnt read previous thread and comes voiceing his political opinions
like a jackass on a high traffic PHP mailing list which people from
you obviously havent watched farenheit 911. where are the WMD?
Ryan A [EMAIL PROTECTED] 11/3/2004 5:56:27 PM
THIS is going too far, I am not an American or staying in the States
but I
hope bush wins,your country tries to develop WMDs and the Americans
come and
kick all your asses, impose
Hello Ryan,
Wednesday, November 3, 2004, 3:56:27 PM, you wrote:
RA Motto: Be respectful to other people from every nation AND DONT
RA POST POLITICS to the PHP list jackass.
Calm down, please, and for the love of God stop replying to these
morons. Or at least, if you must vent your frustration
This is my second and last message on this issue.
Perhaps this list is not the best place to discuse about politics, but
it isn't for create and follow personal issues neither. In my (not-so
:-P) humble opinion everyone that follows this kind of threads is as
guilty of making noise as the one
* Daniel Schierbeck [EMAIL PROTECTED]:
Giles Roadnight wrote:
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get
Whether we like it or not - whether it was the correct decision or not -
there is one certainty.
Bush's reelection will mean more war and, subsequently, more death. This
is not to say that such may not be necessary, but it is nevertheless
disheartening.
The re-election of President Bush means
I'm sending email in text format.
When I specify URL in the email http://www.mydomain.com,
person that receive email can click on the link and go to the page.
But when a person receive and email with email address like
[EMAIL PROTECTED] the email is regular text not an email.
How to make email
Russell P Jones wrote:
Whether we like it or not...
snip
I don't like it, and I'm not talking about who won the presidential
election. What I don't like is all the political discussions on a
mailing list for PHP. If I want to get into a political discussion,
I'll do so on a list/forum that
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 03 November 2004 16:39, Matthew Weier O'Phinney wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
Giles Roadnight wrote:
If I defined a function with 4 parameters but only
Jerry Swanson wrote:
I'm sending email in text format.
When I specify URL in the email http://www.mydomain.com,
person that receive email can click on the link and go to the page.
But when a person receive and email with email address like
[EMAIL PROTECTED] the email is regular text not an
[snip]
I'm sending email in text format.
When I specify URL in the email http://www.mydomain.com,
person that receive email can click on the link and go to the page.
But when a person receive and email with email address like
[EMAIL PROTECTED] the email is regular text not an email.
How to make
On Wed, 3 Nov 2004 12:00:02 -0500, Jerry Swanson [EMAIL PROTECTED] wrote:
I'm sending email in text format.
When I specify URL in the email http://www.mydomain.com,
person that receive email can click on the link and go to the page.
But when a person receive and email with email address like
I agree on what you said and shared the same opinion but looks like unless
you talk to people on their same stupid level...the message does not go
through...
This is my second and last message on this issue.
Perhaps this list is not the best place to discuse about politics, but
it
isn't
I'm trying to track down an odd problem, and getting almost no where with
it :(
When you go to http://www.postgresql.org/index-test.php, at the bottom,
there is 'load times' based on various settings throughout the code ...
the file reads in one file, and has two database access sections to it
With excel, export your exel file to CSV (by doing save as...) then you can
import your CSV file to mysql using the phpmyadmin import interface
On Tuesday 02 November 2004 04:11 am, Sejati Opreker wrote:
Yes, I'm planning to work with MySQL, but the problem
accour from the first time, 'cause
On Wednesday 03 November 2004 17:00, Jerry Swanson wrote:
Where is your PHP related question?
[snip]
But when a person receive and email with email address like
[EMAIL PROTECTED] the email is regular text not an email.
How to make email address to be a link?
You can't. Ask your recipient to
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 darned good etiquette.
Are you trying to tell me that some people on mailing lists don't
[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 darned good etiquette.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
With excel, export your exel file to CSV (by doing save as...) then you
can
import your CSV file to mysql using the phpmyadmin import interface
[/snip]
http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel-0.37/WriteEx
cel/doc/WriteExcel.html
There is a PHP version
--
PHP General
On Wed, 3 Nov 2004 13:22:46 -0400 (AST), Marc G. Fournier
[EMAIL PROTECTED] wrote:
When you go to http://www.postgresql.org/index-test.php, at the bottom,
there is 'load times' based on various settings throughout the code ...
the file reads in one file, and has two database access sections to
Hi All,
I'm curious to know what other members of the list think of as the code
snippets they couldn't live without when working on a PHP project. IE, the
kind of re-usable bits and pieces that make your life a lot easier.
For myself, I have an include file in which I define 'shorthand'
Matthew Weier O'Phinney wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
Giles Roadnight wrote:
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok
On Thu, 4 Nov 2004 04:16:48 +1000, Murray @ PlanetThoughtful
[EMAIL PROTECTED] wrote:
I'm curious to know what other members of the list think of as the code
snippets they couldn't live without when working on a PHP project. IE, the
kind of re-usable bits and pieces that make your life a lot
Hey, I have a database with approx 200-300 students in it. I wanna be able
to pull out what student joined a class with in a certain date range. Say I
wanna get all the students who joined between 10/12/04 through 12/12/04.
What is the easiest way to do this ? Can it be done with just a simple
On Wed, 3 Nov 2004 13:47:38 -0500, ConbuD [EMAIL PROTECTED] wrote:
Hey, I have a database with approx 200-300 students in it. I wanna be able
to pull out what student joined a class with in a certain date range. Say I
wanna get all the students who joined between 10/12/04 through 12/12/04.
[snip]
Can it be done with just a simple MySQL query ?
[/snip]
Yes.
WHERE `date` BETWEEN `startDate` AND `endDate`
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ConbuD wrote:
Hey, I have a database with approx 200-300 students in it. I wanna be able
to pull out what student joined a class with in a certain date range. Say I
wanna get all the students who joined between 10/12/04 through 12/12/04.
What is the easiest way to do this ? Can it be done with
On Wednesday 03 November 2004 18:47, ConbuD wrote:
Hey, I have a database with approx 200-300 students in it. I wanna be able
to pull out what student joined a class with in a certain date range. Say I
wanna get all the students who joined between 10/12/04 through 12/12/04.
What is the easiest
Murray @ PlanetThoughtful wrote:
function asl($val){
function mfr($rset){
This may be ok for private projects but otherwise I don't think it's a
good idea to create shorthand functions. Other developers (and
especially new developers beginning to work on the project) are getting
confused. They
Thanks for all the help guys, working great now.
Giles Roadnight
http://giles.roadnight.name
-Original Message-
From: Daniel Schierbeck [mailto:[EMAIL PROTECTED]
Sent: 03 November 2004 18:37
To: [EMAIL PROTECTED]
Subject: [PHP] Re: blank function parameters
Matthew Weier O'Phinney
I am trying to build PHP 4.3.9 on Solaris 8, and I
can't get past the make step. At first I get the
following message:
bison -y /opt/php/php-4.3.9/ext/standard/parsedate.y
M4sugar requires GNU M4. Install it before installing
M4sugar or
set the M4 environment variable to its path name.***
Signal
[snip]Klaus Reimer wrote:
Murray @ PlanetThoughtful wrote:
function asl($val){
function mfr($rset){
This may be ok for private projects but otherwise I don't think it's a
good idea to create shorthand functions. Other developers (and
especially new developers beginning to work on the
On Wed, 3 Nov 2004 11:32:30 -0800 (PST), Andrew Hauger
[EMAIL PROTECTED] wrote:
I am trying to build PHP 4.3.9 on Solaris 8, and I
can't get past the make step. At first I get the
following message:
Did you try using gmake?
Using non-GNU utilities while compiling PHP may cause problems.
On Wed, 03 Nov 2004 20:22:14 +0100, Klaus Reimer [EMAIL PROTECTED] wrote:
This may be ok for private projects but otherwise I don't think it's a
good idea to create shorthand functions.
Murray wasn't asking for your opinions on _his_ code, he was asking
what code _you_ had that you couldn't
Murray @ PlanetThoughtful wrote:
Hi All,
I'm curious to know what other members of the list think of as the code
snippets they couldn't live without when working on a PHP project. IE, the
kind of re-usable bits and pieces that make your life a lot easier.
For myself, I have an include file in
I would have to say I could not live without pear.
http://pear.php.net
It is quick and clean, ive reused it in about 3-4 projects easily. Its
built into php when you download php. just run the go-pear batch file
in the root directory, and it will set it up easily. From there you
can get real
Per Jessen wrote:
I need functions to parse an email and I've been using mailparse sofar. Works
pretty well, except it has a couple of shortcomings - will only retrieve last
of the Received:-headers, does not decode quoted-printable body-parts, does
not decode RFC2047-encoded filenames in
Per Jessen wrote:
Per Jessen wrote:
I need functions to parse an email and I've been using mailparse sofar. Works
pretty well, except it has a couple of shortcomings - will only retrieve last
of the Received:-headers, does not decode quoted-printable body-parts, does
not decode RFC2047-encoded
snippets they couldn't live without when working on a PHP project. IE, the
kind of re-usable bits and pieces that make your life a lot easier.
I hate always having to write queries for inserting and updating a db.
With this I can just name the form objects the same names as the
table fields
Greg Donald wrote:
On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote:
I would like to install PEAR Calendar module and did a
[EMAIL PROTECTED] apps]# pear install Calendar
but got these:
No release with state equal to: 'stable' found for 'Calendar'
Please advise.
Install
Pablo Gosse wrote:
extra with the results to suit your needs, but as for just using
asl($val) instead of addslashes($val), well why not just extend the PHP
source to make asl() an actual alias to addslashes()?
Extending PHP to have shorthand functions? Was that irony? I hope so.
Having such
I agree that shorthand is probably bad for, BUT... Greg is absolutely
correct. The gist of the post was What do YOU use frequently. His
examples were good enough to illustrate the idea.
For me, I have a handful of includes that are in most/a lot of my
scripts. I'm not going to paste them here
[snip]Extending PHP to have shorthand functions? Was that
irony?[/snip]
It most certainly was irony, Klaus.
I was merely trying to illustrate the point that writing a custom
function which does EXACTLY the same thing as a built in function is
redundant. A number of functions within php do have
I am hoping someone can direct me to a good PHP/MySql newsletter
distribution script that allows me to send out HTML newsletters to a large
list of members but only sends one email at a time so the email is
personalized as being To a specific person instead of an email
distribution list.
Thanks
this is not a code snippet just a class that i have re-used about
a 100 times. It is for authenticating users via a passwd file or mysql.
Hope it will help someone ... also , if you improve it please email me
the changes :)
http://mohadib.openactive.org/web_editor/AuthTool.class.php.txt
Hi,
I read now quite a lot of articles about SQL-Injection,
XSS and session hijacking in a hopefully appropriate way.
As I understand the function addslashes(),quote_meta()
and mysql_real_escape_string() are to avoid SQL Injection
e.g. in order to use page_sliding with entered POST data
over
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote:
Install it manually.
http://pear.php.net/manual/en/installation.manually.php
This is terrible advice.
$ pear install --force Calendar.
And you think --force is better? Pffft.
When the PEAR developers make an
1 - 100 of 138 matches
Mail list logo