Hi,
how can I destroy an object created with "new" ?
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
I am attaching one example program.
I hope this will help you a lot.
Regards
-Balaji
Hi all,>> I've been playing around with PHP authentication
via HTTP.>> I'm using apache, and when i use the
header('WWW_Auth...)>> headers i get a username/password dialog
pop up (as i wanted).>> H
Sure u will like this website!!!
It can send SMS message to any handphone in MALAYSIA,
include 016,012,013,017,019...Good leh.
*** GOOD THINGS WE SHARE TOGEHTER!
http://sms.ac
__
Do You Yahoo!?
Make international calls for as low as $.0
This is my suggestion
Start with making your user management...setup design and layout management,
then do the browsing, then your viewing, then different catagories, then do
other little bits...
- Original Message -
From: Jason Wang <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monda
that error is because the php error checking had been changed from the
default...but still some do have problems... :D
- Original Message -
From: Van Tate Jr. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 5:01 PM
Subject: Re: [PHP] Re: need help w/ variables
> A
Dear all,
I want to set up an online forum by using PHP.
But I don't have a clue.
Could somebody kind enough tell me where to start?
thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Ah! But never forget...the code in some books have bugs too.
Van
At 12:47 AM 7/23/01, you wrote:
>it was my error reporting along i copied that script dtraight from the
>text book so i knew it wasnt the variables themselves
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Try this when you want to logout:
//elias
"Jason Rennie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I've been playing around with PHP authentication via HTTP.
>
> I'm using apache, and when i use the header('WWW_Auth...)
>
> headers i get a
$recordsarray = file("records");
$remove = "schopf.net";
$temp = array();
for ($i=0;$i wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I an trying to figure out how to remove lines from a text file from
> within an array.
>
> I fill the array with this
> $recordsarray =
> -Original Message-
> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
> Sent: 23 iulie 2001 02:36
> To: php
> Subject: [PHP] removing lines from array
>
>
>
> I an trying to figure out how to remove lines from a text file from
> within an array.
>
> I fill the array with this
>System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000
> i586 unknown
>Build Date Jul 20 2001
> Configure Command './configure' '--prefix=/usr'
> '--with-config-file-path=/etc' '--disable-debug' '
yep, thought so :D
- Original Message -
From: Virgil Claritt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 3:47 PM
Subject: [PHP] Re: need help w/ variables
> it was my error reporting along i copied that script dtraight from the
> text book so i knew it wasn
it was my error reporting along i copied that script dtraight from the
text book so i knew it wasnt the variables themselves
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list adm
Hi,
Thanks. I am more worried about the sockets. I installed it
--enable-sockets.
Adrian
On Sat, 21 Jul 2001, E. Peter K. Chan wrote:
> Hi
>
> Try going to the source directory ie where you unzipped the tarball for php.
> May as well upgrade to php4.0.6 - that could save you some problems n
On Mon, 23 Jul 2001, Virgil Claritt wrote:
> i dont quite get it what your saying
> it is clearly defined at the top
> $op is equal to ds
> $valid is equal to yes
> $msg is equal to Bad Login
>
>
> "Reductor" <[EMAIL PROTECTED]> wrote in message
> 002701c11335$ac5dafe0$0200a8c0@ReDucTor">news:002
did u try what i said???
- Original Message -
From: Virgil Claritt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 3:13 PM
Subject: Re: [PHP] need help w/ variables
> i dont quite get it what your saying
> it is clearly defined at the top
> $op is equal to ds
> $v
i dont quite get it what your saying
it is clearly defined at the top
$op is equal to ds
$valid is equal to yes
$msg is equal to Bad Login
"Reductor" <[EMAIL PROTECTED]> wrote in message
002701c11335$ac5dafe0$0200a8c0@ReDucTor">news:002701c11335$ac5dafe0$0200a8c0@ReDucTor...
> add to the top of
add to the top of the script
error_reporting(E_ALL & ~E_NOTICE);
- Original Message -
From: Virgil Claritt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 2:57 PM
Subject: [PHP] need help w/ variables
> when i use this script:
>
> session_start();
> if ($op == "
when i use this script:
Bad Login - Try
Again>";
$show_form = "yes";
} else {
session_register('valid');
$valid = "yes";
$show_menu = "yes";
}
} else {
if ($valid == "yes") {
$show_menu = "yes";
} else {
hi all,
two quick reg exp problems:
one:
$username must only contain a-z lowercase, 0-9, no spaces, no other characters.
what would the regexp be?
if(ereg("", $username)) { $valid = "yes" } else { $valid
= "no")
two:
i want to do a really small email validation, just to make s
If $lookup is passed from the client, then you should be careful with
that exec() call...
http://www.php.net/manual/en/ref.exec.php
Use one of the escape...() functions, perhaps?
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 12:47 AM
To:
On Sat, 21 Jul 2001 06:32, Tyler Longren wrote:
> $data = exec("host $lookup");
> printf("%s", $data);
>
> How can I format the output of that properly?
> Sometimes, it's all on one line, and it's fine.
> Other times, there's more than one line...like if there was an alias.
>
> Any way to format i
Hi Rasmus,
I did a phpinfo() and gives me the following output:
PHP Version 4.0.6
System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000
i586 unknown
Build Date Jul 20 2001
Configure Command './configu
$line = ereg_replace("<(*.)>", "", $line);
that should remove the tags, and there contents
- Original Message -
From: Dan Krumlauf <[EMAIL PROTECTED]>
To: php list <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 4:33 PM
Subject: [PHP] Clarify: SEARCH AND replace between
> Sorry I wasn
Sorry I wasn't clear. I need to search for the combo
in an html file. Thats why I asked for a regex. So I need to
load in the html SEARCH for the tags and anything in between the tags throw out
and REPLACE with the contents of a variable and then
rewrite the file. My orginal message follows:
> I
".nl2br(htmlspecialchars(stripslashes($somevar)))."";
?>
- Original Message -
From: Dan Krumlauf <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 2:36 PM
Subject: [PHP] Replace ANYTHING between
> I've been trying this one for a bit and Im in a twist.
>
> I need t
I'm having a bit of a prob... I'm new to Linux and restarting apache isn't
acting right, in Win I had no problems. I edit php.ini, restart apache, but
the changes are not taking effect. I installed the ming and pdflib .so's
but they are not being incorporated. Hell, I edited the ini to turn the p
I know very little about PHP, but in other languages, what u describe
happens because the webserver doesn't send the output until the excution is
done...
But you can make it write your output as its generated... check out the
function "flush"
also after 20seconds of looking, I found "ob_implicit
I've been trying this one for a bit and Im in a twist.
I need to replace ANYTHING or even nothing between two tags
with the contents of a variable and just havent been
able to get the expression right for all cases.
As an example concept follows:
Nothing between the tags variable is $varname
Sir,
What do I do with my php? how can I compile my php with mysql support? my problem is
I already compile my php what do I do do? I will remove it?
Hi all,
I've been playing around with PHP authentication via HTTP.
I'm using apache, and when i use the header('WWW_Auth...)
headers i get a username/password dialog pop up (as i wanted).
How do i get those values unset in the browser, so that i can get a user
to re authenticate ?
I need to g
The users on my website all have an "access" number that is used to give
them access to different parts of the site. Each bit represents a different
part of the site. So, if a user has an access of 10, which is 1010 in
binary, they have access to the parts of the site that are represented by
the s
how do i get around this?i have a script works great for me, but the clients php
config has this set magic_quotes_gpc on. isnt there a varible i can change to
eliminate this for my script? if so how do you use it?
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing
I an trying to figure out how to remove lines from a text file from
within an array.
I fill the array with this
$recordsarray = file ("../auto/records");
The lines I what to remove have this in them
$remove = "schopf.net ";
What I need is how to loop through this array and p
Hello,
I'm not sure if anyone else as the need for a php/MySQL based bibliography, but
the application that I am developing (which is basically a module for phpSlash)
is coming along fairly well. If anyone is interested in seeing the code I can
bundle it up and send it out to them (still a lo
We are pleased to inform you that Your Web site is back up and is
no longer on error.
URL: http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml
Time: 2001-07-22 19:19:25
As mentioned in the first alert, InternetSeer is conducting an
ongoing study of the true connectivit
There appears to be a problem in reaching your Web site at
http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml.
Time of Error: 2001-07-22 18:27:57
Error Type: Time Out
InternetSeer, a Web site monitoring company, is conducting an
ongoing study of the true connectivity
just wanted to make sure I was not doing anything incorrectly.
I want to return some values to the screen and then sleep(), then return
more values.
It seems that nothing is returned till the sleep is over and then all the
values are returned at once.
Is this the natural function of sleep();
th
So sprach »Weston Houghton« am 2001-07-22 um 15:14:54 -0700 :
>
> Yup, a native PHP module for ImageMagick that accesses their API. This would
> allow one to actually pass parameters a bit easier and test for success or
> failure more consistently, at least, I think it would...
Hmm, don't know a
Yup, a native PHP module for ImageMagick that accesses their API. This would
allow one to actually pass parameters a bit easier and test for success or
failure more consistently, at least, I think it would...
Wes
> How do you mean bindings?
>
> I've used PHP and Imagemagick.. but only from th
Hi all,
I just started to work with SESSIONS in PHP. Its turning out to be a great
way to keep user info alive across multiple pages.
My question is, how long does a session temp file stored on the server
exists for? Is it just for the current session? If the user shuts down their
browser an turn
How do you mean bindings?
I've used PHP and Imagemagick.. but only from the point of view of exec
Do you mean building them into PHP functions?
- Original Message -
From: "Weston Houghton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 22, 2001 11:05 PM
Subject: [PHP] P
Does anyone know if there are PHP specific bindings for ImageMagick out
there? If not, anyone want to work on them...
:)
Thanks,
Wes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the l
Dear [EMAIL PROTECTED],
AS SEEN ON NATIONAL TELEVISION
Making over 500,000.- US$ from your home for a one time
investment of only 25 United States Dollars!
THANK'S TO THE COMBINATION OF THE SPEED, THE LOW COST PER
CONTACT AND THE POTENTIAL OF MULTI-LEVEL-MARKETING BY E-MAIL!
___
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dave) wrote:
> Am partially successfull after taking a further look into things. the
> following
> (while ugnly) correctly catches everything except the \ character for some
> reason. ideas?
>
> if(preg_match("/['".'" ,!@#$%\^&*()+=\/\\:;?|]
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dave) wrote:
> Cannot seem to get a regex to check a string for the following
>
> space tab ' " ! @ # $ % ^ & * ( ) + = : ; / \
>
> if(preg_match('[\'" ,!@#$%\^&*()+=:;/\\]',$mystring))
You need pattern delimiters with preg_* expression
Hi all,
I am trying to execute a shell command from PHP. This command consumes
a lot of memory and execution time, so I changed max_execution_time =
120 and memory_limit = 25600 in my php.ini. Still, under PHP, the
command stops after some time (every time at the same point). When I
execut
Do you know if you've even made a valid database connection? Try
echoing $this->database as well. If that is null, you haven't
connected to your database; perhaps the username, password and or
permissions were changed, so that you're unable to connect from your
PHP program.
- steve
try:
http://php.resourceindex.com/Complete_Scripts/Link_Management/
you should be able to find some examples here.
__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP Ge
Am partially successfull after taking a further look into things. the following
(while ugnly) correctly catches everything except the \ character for some
reason. ideas?
if(preg_match("/['".'" ,!@#$%\^&*()+=\/\\:;?|]/',$MyString)){
# echo error, character found
}
>-Original Message
You have been specially selected to qualify for the following:
Premium Vacation Package and Pentium PC Giveaway
To review the details of the please click on the link
with the confirmation number below:
http://www.1chn.com/wintrip
In article <001c01c112da$b8c0d420$0d6fa8c0@local>, Ryan Christensen wrote:
>I have some questions about using PHP as a shell scripting language...
>mainly how you pass arguments to a script on the command line. Say I'm
>using:
>
>--
>#!/usr/local/bin/php -q
>
>print "I am:
do you mean..
$message = $IP. $PORT. $SYSTEM . $PAGE;
. not ,
$message = $IP, $PORT, $SYSTEM, $PAGE;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Thanks.. that helps out a lot. Next question.. is there a way I can
prompt for input? For example.. have a prompt "Name: ".. that waits for
the user to enter their name.. and then assignes whatever they enter to
a variable. Think you can help? :)
Thanks...
-
Ryan Christensen
$message = $IP, $PORT, $SYSTEM, $PAGE;
what should i change in the $message code so that it contains the words assigned to
the variables?
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
Hello Ryan,
Let me give you an example :)
Lets use your script,
#!/usr/local/bin/php -q
i called it echo-name.php and chmod 755 it.
Next, im going to call it:
--
Athena:~$ name=kees
Athena:~$ ./echo-naam
I am: kees
--
Hey Ryan
Look at this :)
http://nl.php.net/manual/en/function.mail.php
so a thing like:
mail("[EMAIL PROTECTED]", "My Own Subject", " \
IP:\n$REMOTE_ADDR\n \
Port Number:\n$REMOTE_PORT\n \
System info:\n$HTTP_USER_AGENT\n \
Last page visited in this window\nHTTP_R
Hello Ryan,
You can use environment variables for that, like:
echo $HOME; /* Shows the HOME environment variable, if set. */
You can also use getenv() en putenv()
see also:
http://nl.php.net/manual/en/language.variables.external.php
hope it works :)
- Kees
> -Original Message-
> Fro
I have some questions about using PHP as a shell scripting language...
mainly how you pass arguments to a script on the command line. Say I'm
using:
--
#!/usr/local/bin/php -q
--
How do I define test from the command line (as an argument while
e
Well, there are a few ways to do it. The secret is to know a little bit
of HTML. Another poster suggested using the (line break) tag. The
paragraph tag would also work nicely:
IP ADDRESS";
echo "$remote_admin";
?>
Or you could start to get fancy by doing it with a table:
";
echo "IP ADDRES
I think you want this:
\n is the newline code.
so a double newline will look like: echo "IP ADDRESS \n\n";
Kees Hoekzema
> -Original Message-
> From: Kyle Smith [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 2:47 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP i suck at
I have made a small page containing the following PHP
";
echo $REMOTE_ADDR;
echo "Port number";
echo $REMOTE_PORT;
echo "System info";
echo $HTTP_USER_AGENT;
echo "Last page visited in this window";
echo $HTTP_REFERER;
?>
is there any way i can make the PHP file email me the info above without r
That did the trick Philip! Thanks for your help.
Mike
Philip Murray wrote:
> - Original Message -
> From: "Mike Gifford" <[EMAIL PROTECTED]>
>
>>Hello,
>>
>>I'm using phplib to add functionality to my bibliography app. However I'm
>>
> not
>
>>sure how to deal with selected data fro
I forgot to say I deleted tabs so that the width might fit in a
typical mail reader.
Jeff Oien
> This code assigns rooms to kids signing up for Sunday school
> at a very large church. Each subsequent registration is put into
> the next room on the list. It looks up in the MySQL database
> the r
This is driving me nuts. I couldn't sleep much last night trying
to figure this out.
This code assigns rooms to kids signing up for Sunday school
at a very large church. Each subsequent registration is put into
the next room on the list. It looks up in the MySQL database
the room the last perso
";
echo $remote_admin;
?>
-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP i suck at it
Ok this may sound really pathetic but how do i add a new line (like a space)
to a code like this
cau
Ok this may sound really pathetic but how do i add a new line (like a space) to a code
like this
cause when i try the code out it looks like
IPADDRESS127.0.0.1
and i want it to look like
IP ADDRESS
127.0.0.1
or
IP ADDRESS
127.0.0.1
so what do i put in?
Thanks for your time :)
Hello PHP people,
London is quite dark and bit cold :(
a quick question,
a)-what does this means?
Warning: 0 is not a Sybase link index in /home/httpd/html/sy.php4 on line 3
- ia m writing the following code
$link=sybase_connect("SYBASE","sa", "");
$dbase=sybase_select_db_("pubs2",$link);
plea
Cannot seem to get a regex to check a string for the following
space tab ' " ! @ # $ % ^ & * ( ) + = : ; / \
if(preg_match('[\'" ,!@#$%\^&*()+=:;/\\]',$mystring))
simply need a true if it contains any of these characters (for cleaning up
usernames). thinking it may be easier to parse f
OK so I have a number of different pages calling header.php4 as required.
How can I set php in header.php4 to reflect the name of the document that
called it?
- seb
-Original Message-
From: Greg Schnippel [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 14:48
To: [EMAIL PROTECTED]
Subject:
It is not exactly clear what you are doing.
Are you buffering up the HTML file with ob_start, and then flushing
the buffer after you run the buffer through htmldoc, that is, are
you processing everything before into html before you flush out the
page?
If you are not buffering, then you probably
I am currently having a problem with php and htmldoc. I have a php script
that queries a myql database and creates a series of tables each with a 800
x 600 product screenshot. The file is then sent to htmldoc to be converted
into a pdf file. Here is my problem, if I request ten records (screensho
hey-
I'm in the process of writing a links page for a website. I want to have all
the links seperated by category, and those categories would be placed in
different columns. This means also that different categories of links could
be on the same row in the table used to lay it all out. i'm pullin
Never mind this one.. :) I figured out that it
was because I'm using mysql_query, but declaring
the database which means that the mysql_query
command will fail and of course won't return a
mysql_error code. Geeez...
Another classic case of figuring out the problem
in the process of trying to exp
I'm stumped on this one.. I set up PHP 4.04/Apache/Mysql 3.23
on my Windows 98 box for development purpouses. Its been
working flawlessly for 2-3 years now (using the same
configuration files, etc).
However, as of 3 days ago, i can't get it to execute a simple
"select * from table query". Here's
Christopher Cheng wrote:
>
> Have looked through it already.
> None of them allows me to add/delete users
>
then you might be looking for something like webmin
(http://www.webmin.com/webmin/), as MTAs usually use the
systems user database instead of making up their own ...
--
Hartmut Holzgr
Please help me... !!
How to install PHP4 with oracle function support ?
, I use Windows 98, PWS
Thanks
Dhanie Angel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Justin -
there's an error in your query. I think it should be:
$sql = "SELECT * FROM staff WHERE id='$username'";
Anyway, to see which is the problem just
after $result = mysql_query($sql);
HTH
Gianluca
JF> newbie to MySQL...
JF> I get this error:
JF> Supplied argument is not a valid MySQ
Hi all,
newbie to MySQL...
I get this error:
Supplied argument is not a valid MySQL result resource in /usr/local/
blah blah blah
>From this query:
$username = "juddy2";
$sql = "SELECT * FROM staff WHERE id=".$username;
$result = mysql_query($sql);
However, this works okay:
$username = "juddy
php-general Digest 22 Jul 2001 11:01:26 - Issue 770
Topics (messages 59034 through 59052):
Image color quality problems
59034 by: Kurt Lieber
59035 by: Seb Frost
59037 by: Kurt Lieber
59038 by: Seb Frost
59039 by: Kurt Lieber
PHP, Excel, CSV and Prob
Hello!
I want to send a PDF-file as a mail. The problem: I want, that the user
get's the PDF-document as soon as he clicks on the mail. That means: No
text-part of the mail, the user should not have to click on the
attachment-button of his mail-client.
I tried:
1.) Set the header to something li
Whew! They're giving away a lot of vacations if we -all- qualify...
:)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE...
You have been
You have been specially selected to qualify for the following:
Premium Vacation Package and Pentium PC Giveaway
To review the details of the please click on the link
with the confirmation number below:
http://www.1chn.com/wintrip
Dear Power Jessie (I just had to write that..):
This is a bit to the side of your question, but if you are
asking this question because you are trying to do what every web
developer is trying to do today, namely, reach that holy
grail of separating layout from content, you might look
at binaryclo
84 matches
Mail list logo