Hi,
Visit http://www.sitepoint.com/article/phps-creator-rasmus-lerdorf/39
Zareef ahmed
-Original Message-
From: Reinhart Viane [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 8:09 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Very fresh to php
I think
R. Van Tassel wrote:
Can someone please point me to the php documentation where it explains
$this - >
1. It must be "$this->" and not "$this - >".
2. Documentation can be found here:
http://de.php.net/manual/en/language.oop.php
What is the symbol "- >" and is $this something only used in
On Fri, 3 Dec 2004 09:32:34 +0530, suneel <[EMAIL PROTECTED]>
wrote:
Hi to all
any one Could tell me any diffrence between and . And which one is better to use and in which situations.
Byee
is the older syntax, and it can cause problems with xml (as the xml
prolog uses
--
Use if you are implementing php. I think that you can predefine
what scriptlanguage to use, and therefore can be used.
/Peter
"Suneel" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Hi to all
any one Could tell me any diffrence between and .
And which one is bett
Basically
They are the same... some servers might not have That seems to be the
standard
On Fri, 3 Dec 2004 09:32:34 +0530, suneel <[EMAIL PROTECTED]> wrote:
> Hi to all
>
>any one Could tell me any diffrence between and .
> And which one is better to use and in which situ
Hi to all
any one Could tell me any diffrence between and .
And which one is better to use and in which situations.
Byee
Sessions will make you life easier if you are using cookies to control a web
session. http://th.php.net/manual/en/ref.session.php will give you most
information regarding this, together with some examples. Play around with
simple own examples and you will learn to work with sessions relativly fast.
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 thinking that a "security code confirmation" type script would be
good where the
Hi -
Please help me quantify the risk of Apache 2.x with PHP 5.x.
Thank you for making the time.
If I missed this on php.net or apache.org or somewhere else,
please point me to the data. There is other good survey
info, but not the PHP 5/Apache 2 combo.
Reply to me directly and I'll summariz
Age Bosma wrote:
> I'm converting, or at least trying, one XML file to another XML format
> using XSLT parsing it with PHP.
>
> I'm using a lot of characters in the following style "& #34;", "& #42;",
> etc. (without the space, added now the prevent any conversion in this
> e-mail) in the XML file
Lordo wrote:
> Thanks guys. I delete 500 by 500 now and it takes like 20 seconds only. I
> am
> using the manual select where in method. It is great.
>
> Now for the files, OK I will use a cron. But can I change the way I get
> the
> file names? I mean instead of deleting the photo that is related
Nick Peters wrote:
> i currently have a apache and php installed perfectly on my box (slackware
> 10). However, i have the need to use mcrypt. I have mcrypt all compiled
> and
> installed, but how do i add the module to my php install? I have searched
> a
> few places on the net and i can't figure
Robert Sossomon wrote:
> I have this code below that needs to display stuff depending on WHEN it
> is. I
> am pretty sure it is something simple I have confused (again) but can't
> place my
> finger on it. Anyone see the mistake?
>
>
> $today = date("m-d-y");
> $early = date("m-d-y",mktime(0, 0,
David Dickson wrote:
> Richard Lynch wrote:
>> Plus you are unlink-ing 10 files. That's probably the real problem.
>>
>> You'd have to write some timing code to be sure, though, as a slow
>> database server and a very fast hard drive could be involved.
>>
>> Here are some things you could do to sp
Age Bosma wrote:
I'm converting, or at least trying, one XML file to another XML format
using XSLT parsing it with PHP.
I'm using a lot of characters in the following style "& #34;", "& #42;",
etc. (without the space, added now the prevent any conversion in this
e-mail) in the XML file and I wo
I'm converting, or at least trying, one XML file to another XML format
using XSLT parsing it with PHP.
I'm using a lot of characters in the following style "& #34;", "& #42;",
etc. (without the space, added now the prevent any conversion in this
e-mail) in the XML file and I would like to keep
* R. Van Tassel <[EMAIL PROTECTED]>:
> --=_NextPart_000_0039_01C4D88C.AECDCB00
> Content-Type: text/plain;
> charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> Can someone please point me to the php documentation where it explains
>
> $this - >
>
> What is the symbol "- >" and is $
I have not yet worked with sessions and I don't know why I DO NOT WANT to
understand it!! :)) I am a traditional ASPer and I am addicted to cookies.
But I want to use sessions if they will make life easier for me.
Can someone please direct me to an easy to understand resource with working
samples?
Thanks guys. I delete 500 by 500 now and it takes like 20 seconds only. I am
using the manual select where in method. It is great.
Now for the files, OK I will use a cron. But can I change the way I get the
file names? I mean instead of deleting the photo that is related to a
deleted member, can I
Hey,
i currently have a apache and php installed perfectly on my box (slackware
10). However, i have the need to use mcrypt. I have mcrypt all compiled and
installed, but how do i add the module to my php install? I have searched a
few places on the net and i can't figure it out. Thanks in advance
Can someone please point me to the php documentation where it explains
$this - >
What is the symbol "- >" and is $this something only used in classes?
I can't find any information that explains this specifically but see it used
everywhere.
Thanks,
~ R. Van Tassel
Write a guestbook for your website. :)
My first project for PHP was a custom shopping cart for my old company(ies) and
I had to write it from the ground up. Ambitious and I am sure my code is full
of non-speedy stuff, but it works and still functions (for me anyways, they got
rid of a 2-yr pr
Hi All,
I need to find a newbie project to help me learn PHP, I use Linux and have
apache install with php support! Any suggestions?
--
Lennart Andersen
St Thomas, Ontario
lennart at rogers dot com
--
- Debian - I hack, therefore I am
--
PHP General Mail
I have this code below that needs to display stuff depending on WHEN it is. I
am pretty sure it is something simple I have confused (again) but can't place my
finger on it. Anyone see the mistake?
$today = date("m-d-y");
$early = date("m-d-y",mktime(0, 0, 0, 1, 14, 2005));
$normal = date("m-d
M. Sokolewicz wrote:
John Nichel wrote:
Richard Lynch wrote:
Be kinda like isset() issuing a NOTICE for a variable that's not set.
Well, duh. That's why I asked. :-)
isset() doesn't issue a notice...at least not in php 4.3.9. It just
returns true or false.
it did for a while in PHP 5.1, for a
In addition to Matthew's response...
Strtotime() and mktime() both return a serial date. That's the
"1101945775" number you got. To get this back to a mmdd format that
you seem to be trying to do with mktime(), you want to use date() as
Matthew suggested. Again, I think examples help more t
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 18:51, Richard Lynch wrote:
> Marek Kilimajer wrote:
> >
> > What version? On 5.0.2 file_exists('nonexistingfile'); does not
> > generate any error message.
>
Hi there..
A newbie issue:
I´m receiving this: "house , ball , door , roof , floor"
And I want to obtain this: "'house','ball','door','roof','floor'"
Maybe, I should use implode or explode, but I just can´t figure out how..
Help?
American Express made the following
annotations on 12/02/04 08:1
Thanks. I will check the foreign key with cascading issue. But I have a
question: Will it have any bad effects on behavior? I have tables with
160,000, 400,000, etc. records.
Lordo
"David Dickson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> news.php.net wrote:
> > A member is no
Robert Sossomon wrote:
foreach ( $_POST as $key => $value )
{
while ($key != "submit")
{
\$$key = $value;
$addtocart .= ",'\$$key'";
}
}
The problem is that it seems to be hanging at the while loop. Is there
a cleaner way to write the foreach loop so that it will dump out the
"submit" key
Hi all
Thanks for your hints. I need this feature for an easy to use
minimalistic CMS solution, so tweaking the PHP source is not that much
of an option. But evals do the trick of course. I ruled that out at
first because I thought it'll cause a lot of clumsy code. Yet there's
quite an elegant
Richard Lynch wrote:
Plus you are unlink-ing 10 files. That's probably the real problem.
You'd have to write some timing code to be sure, though, as a slow
database server and a very fast hard drive could be involved.
Here are some things you could do to speed it up, assuming you don't want
the ON
I solve that problem this way (please correct me if it's wrong)
# form.php
if(isset($_POST['SubmitForm']))
{
if(!isset($_POST['Name'] or !isset($_POST['Phone'] or
!isset($_POST['Email'])
{
echo "One or more required fields are empty.";
}
else
{
header('location: res
Thanks alot. You really gave me some good ideas.
Lordo
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> news.php.net wrote:
> > I have 160,000+ members in my site. 40,000 of them have not logged in
> > since
> > 2003 and they should be deleted. A member is not delete
>> So when using arrays with string keys within strings you need to
>> concatenate it.
>>
>> $var = "I live in the city of ". $_POST['cityname'];
>
> No, you do not *need* to -- it is one option, certainly, but there is no
> necessity about it.
>
> Within double-quoted strings, it is perfectly acce
Thanks a lot, I read the SimpleXML page a lot, but didn't drop into
the ->attributes page itself.
again, thanks
paul.
On Tue, 30 Nov 2004 23:34:14 -0800, Rick Fletcher <[EMAIL PROTECTED]> wrote:
> [snip]
> > when using print_r on a SimpleXML object that has
> > attributes, the attributes are no
> foreach ( $_POST as $key => $value )
> {
> while ($key != "submit")
> {
>\$$key = $value;
>$addtocart .= ",'\$$key'";
> }
> }
>
> The problem is that it seems to be hanging at the while loop. Is there a
> cleaner way to write the foreach loop so that it will dump out the "submit"
>
Yeah, this is definitely a "maybe" solution and depends on a few things
being right. But if the alteratives are using "su ANYTHING" commands
and if just asking the SMTP server produces accurate results, then it
seemed like it was worth mentioning.
But the few people who have pointed out that this
Hi,
Check the main thread, i have found the problem if you're interested...
Adrian Zaharia
Trevor Gryffyn wrote:
> Yeah, this isn't a PHP specific problem, BUT, in the off chance that PHP
> could solve the problem (using a different method of sending to the
> browser, etc) then it becomes PHP r
Best groupmember,
I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there
any date function that can assist in calculating the number of days left
until 2004-12-24 when it is 2004-11-05. (the dates are just testdates)
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing Li
Best groupmember,
I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there
any date function that can assist in calculating the number of days left
until 2004-12-24 when it is 2004-11-05. (the dates are just testdates)
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing Li
Luc Pascal wrote:
> An large XML Downstream over asp should be saved into a xml-file. If I
> open the asp website directly (IE6.0). It shows after 15 min a big part
> of the xml-stream (like if I would open an xml-file with the browser)
> and a failure at the end. I don't know how to save it into
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 13:22, Robert Sossomon wrote:
> But what I don't understand is why sometimes
> '$_POST[variable]' works and why
> sometimes it will only work when it is '$_POST[
If it's a un*x system and you have permissions to connect to the SMTP
server, you could use the VRFY command to check to see if their email
address exists or not maybe:
Example of Verifying a User Name
Either
S: VRFY Smith
R: 250 Fred Smith <[
Found the problem...
Just FYI, maybe can help in future.
I am "under" a session and didn't forced a session_write_close() before i
outputted the stream. Acording to php docs, the session file stays locked
until the end of the script or a session_write_close() is issued. So, the
other scripts were
Well, I can honestly say I had not thought of doing it that way. I will
keep that as an option. Thanks.
Jonathan
On Thu, 2 Dec 2004, Gryffyn, Trevor wrote:
If it's a un*x system and you have permissions to connect to the SMTP
server, you could use the VRFY command to check to see if their email
On Thursday 02 December 2004 23:32, Gryffyn, Trevor wrote:
> If it's a un*x system and you have permissions to connect to the SMTP
> server, you could use the VRFY command to check to see if their email
> address exists or not maybe:
Just want to point out that this behaviour is dependent on the f
William Stokes wrote:
Hello,
I'm building a web site for a sports team. I wan't them to be able to update
their own site so I need to build a file upload system for their pictures.
Pictures also need to resized to fit their spot in the web page. Any ideas
or quidelines how to do this. I've never do
On Thu, 2004-12-02 at 07:29 -0800, Brian Dunning wrote:
> I thought I wouldn't have any trouble finding this. I'm trying to
> provide documentation that PHP is free for commercial use, and I can't
> find anything on php.net. Can anyone help me?
>
> - Brian
>
http://www.php.net/license/
http:/
David Dickson wrote:
> news.php.net wrote:
>> A member is not deleted from only one
>> table. Based on user id, he should be deleted from 5 tables and also his
>> photo, if any, should be unlink(ed).
>>
>> $query = "delete from table1 where userid = " . $ID;
>> $result = mysql_query($query, $link);
Marek Kilimajer wrote:
> Richard Lynch wrote:
>> Scott Fletcher wrote:
>>
>>>Never mind that.. I found a different way to use it. It would be so
>>> cool
>>>if there is such a feature as directory_exists() to check for partical
>>>filepath...
>>
>>
>> http://php.net/file_exists
>>
>> You'll need
Gryffyn, Trevor wrote:
> If it's a un*x system and you have permissions to connect to the SMTP
> server, you could use the VRFY command to check to see if their email
> address exists or not maybe:
>
> Example of Verifying a User Name
>
> Either
>
> S: VRFY
William Stokes wrote:
> Hello,
> I'm building a web site for a sports team. I wan't them to be able to
> update
> their own site so I need to build a file upload system for their pictures.
> Pictures also need to resized to fit their spot in the web page. Any ideas
> or quidelines how to do this. I
Robert Sossomon wrote:
> foreach ( $_POST as $key => $value )
> {
> while ($key != "submit")
> {
>\$$key = $value;
>$addtocart .= ",'\$$key'";
> }
> }
>
> The problem is that it seems to be hanging at the while loop. Is there a
> cleaner way to write the foreach loop so that it will
> 1-I guess I need a way to make sure in the foreach
> that when the first empty element is reached the loop
> dies.
Just to be sure you understand:
You should really not die when you hit a blank.
You should just SKIP it and process the rest.
A user *might* choose to fill in the first and third
I don't know of a built-in function, but you're welcome to use my
daydiff script below. It actually gives you year, month, day, hour,
minute, second.. Not just days. But modify it as you desire.
-TG
31536000,"Months"=>2592000,"Days"=>86400,"Hours"=>3600,"M
inutes"=>60);
# How many seconds betw
news.php.net wrote:
> I have 160,000+ members in my site. 40,000 of them have not logged in
> since
> 2003 and they should be deleted. A member is not deleted from only one
> table. Based on user id, he should be deleted from 5 tables and also his
> photo, if any, should be unlink(ed).
>
> I tried
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 15:17, Robinson, Matthew wrote:
> Thanks for the help Mike, If I've got a reference to an
> entry and say,
> wanted to insert another entry, can I use array_pus
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 16:49, Matthew Sims wrote:
> > > So when using arrays with string keys within strings you need to
> > > concatenate it.
> > >
> > > $var = "I live in the city
foreach ( $_POST as $key => $value )
{
while ($key != "submit")
{
\$$key = $value;
$addtocart .= ",'\$$key'";
}
}
The problem is that it seems to be hanging at the while loop. Is there a
cleaner way to write the foreach loop so that it will dump out the "submit" key?
I've been trying dif
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 15:30, Brian Dunning wrote:
> I thought I wouldn't have any trouble finding this. I'm trying to
> provide documentation that PHP is free for commercial use,
> an
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 01 December 2004 17:31, Robinson, Matthew wrote:
> I have a search function:
>
> $search_result = multi_array_search($net_array,"needle");
>
> now search_result equals an array
Hello Pablo,
Thursday, December 2, 2004, 3:12:09 PM, you wrote:
PDM> I´m receiving this: "house , ball , door , roof , floor"
PDM> And I want to obtain this: "'house','ball','door','roof','floor'"
PDM> Maybe, I should use implode or explode, but I just can´t figure out how..
PDM> Help?
You coul
I thought I wouldn't have any trouble finding this. I'm trying to
provide documentation that PHP is free for commercial use, and I can't
find anything on php.net. Can anyone help me?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Taken from http://www.php.net/license/:
Note: the following questions and answers only apply to version 2.01 and
2.02 of the PHP license. Ignore for version 3.0.
Q. What does the PHP license mean then, in simple words?
A. (Note: This answer should in no way be taken to replace the PHP
license,
Yeah, this isn't a PHP specific problem, BUT, in the off chance that PHP
could solve the problem (using a different method of sending to the
browser, etc) then it becomes PHP relevant... So everyone give the guy a
break on the relevance issue. If there were two ways of doing
something and you onl
Suppose this is your first string $value
house , ball , door , roof , floor
$saparate = explode(",",$value);
$list = implode("','", $arr1);
$final = ('$arr2');
echo $final;
Thnx...
Quoting Pablo D Marotta <[EMAIL PROTECTED]>:
> Hi there..
> A newbie issue:
> I´m receiving this: "house , ball
That should do it. The only weird bit is adding the single quotes to the
beginning and end of the final string.
You could also do a str_replace()
And of course you can do regex stuff, but I'm not good at that so I'll leave an
example to someone else if they care to give one.
Just rem
Richard Davey wrote:
Hello Pablo,
Thursday, December 2, 2004, 3:12:09 PM, you wrote:
PDM> I´m receiving this: "house , ball , door , roof , floor"
PDM> And I want to obtain this: "'house','ball','door','roof','floor'"
PDM> Maybe, I should use implode or explode, but I just can´t figure out how..
PD
news.php.net wrote:
A member is not deleted from only one
table. Based on user id, he should be deleted from 5 tables and also his
photo, if any, should be unlink(ed).
$query = "delete from table1 where userid = " . $ID;
$result = mysql_query($query, $link);
$query = "delete from table2 where useri
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 02 December 2004 10:26, Stuart Felenstein wrote:
> I have arrays set up in a user form. One type is from
> a multi-select list.
[]
> I have 3 textfield elements all named
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 01 December 2004 19:29, Matthew Sims wrote:
>
> So when using arrays with string keys within strings you need to
> concatenate it.
>
> $var = "I live in the city of ". $_POST[
Hello Robert,
Thursday, December 2, 2004, 1:21:33 PM, you wrote:
RS> Unfortunately?? I knew exactly where the code was breaking (the
RS> lines I posted) since before I added those lines of code the
RS> script worked without any problems. But what I don't understand is
RS> why sometimes '$_POST[va
Richard Lynch is quoted as saying on 12/1/2004 2:57 PM:
Robert Sossomon wrote:
Parse error: parse error, expecting `']'' in file.php
Unfortunately?? I knew exactly where the code was breaking (the lines I posted)
since before I added those lines of code the script worked without any problems.
Hi php-general-team,
An large XML Downstream over asp should be saved into a xml-file. If I
open the asp website directly (IE6.0). It shows after 15 min a big part
of the xml-stream (like if I would open an xml-file with the browser)
and a failure at the end. I don't know how to save it into Hardd
I have 160,000+ members in my site. 40,000 of them have not logged in since
2003 and they should be deleted. A member is not deleted from only one
table. Based on user id, he should be deleted from 5 tables and also his
photo, if any, should be unlink(ed).
I tried to do that 10 by 10 using:
$quer
> Yes, I did that and it works correctly now. I was
> tryin g to better understand why the difference in the
> behaviour.
>
> Stuart
The first array is created by selecting individual elements from a
muli-select list
(My multi-select is a little hazy, but I think it's something like...)
One (S
--- Mike Smith <[EMAIL PROTECTED]> wrote:
> How about:
>
>
> if ( is_array($_SESSION['schools'] ) ) {
> foreach($_SESSION['schools'] as $h) {
> If($h!=""){ //First added line
> $query = "INSERT INTO Prof_Schools (ProfID, School)
> VALUES ('$LID', '$h')";
> $res6 = run_query($query);
> echo $quer
How about:
if ( is_array($_SESSION['schools'] ) ) {
foreach($_SESSION['schools'] as $h) {
If($h!=""){ //First added line
$query = "INSERT INTO Prof_Schools (ProfID, School)
VALUES ('$LID', '$h')";
$res6 = run_query($query);
echo $query;
} //End added line
}
}
--
PHP General Mailing List
I have arrays set up in a user form. One type is from
a multi-select list. (I'm passing these through a
multi page form as session variables)
The multi select list array code is like this:
To $_POST (going on to next page)I have this:
$_SESSION['industry'] = $_POST['L_Industry'];
Then in the f
Hello,
I'm building a web site for a sports team. I wan't them to be able to update
their own site so I need to build a file upload system for their pictures.
Pictures also need to resized to fit their spot in the web page. Any ideas
or quidelines how to do this. I've never done this kind of stuff
On Dec 1, 2004, at 22:19, Richard Lynch wrote:
Bas Kamer wrote:
On Dec 1, 2004, at 21:17, Richard Lynch wrote:
If a client doen't accept cookies and transparant session
propagation
is enabled, links are changed to include the SID. But this is not
the
case while redirecting clients. This results i
Richard Lynch wrote:
Scott Fletcher wrote:
Never mind that.. I found a different way to use it. It would be so cool
if there is such a feature as directory_exists() to check for partical
filepath...
http://php.net/file_exists
You'll need to use @ in front, because it generates an error message w
83 matches
Mail list logo