Hmm... It works for me?
$welcome_html = hihih [i]hihih[ei] gogogog[c]brfdsfdsf[ec];
$welcome_html = eregi_replace(\[i],I,$welcome_html);
$welcome_html = eregi_replace(\[ei],/I,$welcome_html);
$welcome_html = eregi_replace(\[c],center,$welcome_html);
$welcome_html =
So sprach »Gaylen Fraley« am 2001-09-21 um 18:10:58 -0500 :
Are you sure about that? I am trying his script and I just had an attack
and I watched the traffic through my firewall software. It dropped off
immediately, i.e. showed no activity. I was expecting to see somekind of a
Sure, but
Hi,
Is there anyway I can use PHP to find out all the information in a DNS
Zonefile on a DNS server, in win2k, if you go to a dos prompt, and do the
following
nslookup ENTER
server DNS SERVER
ls -d DOMAINNAME
you will get loads of information on that domain name, like
SOA Records, A
Hi !
Thanks for the quick reply last time :)
I stucked with the following :I made a log file, but when I open it in a+ mode, the
pointer is set on the end of file, in the same line. Is there anything like br in
html,
or a command that puts a pointer in the new line ?
One more question :
Is it
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Chris Sacks) wrote:
Is there anyway I can use PHP to find out all the information in a DNS
Zonefile on a DNS server, in win2k, if you go to a dos prompt, and do the
following
nslookup ENTER
server DNS SERVER
ls -d DOMAINNAME
See
You might mean \n.
Line:
$str = This\nis a\nsample
would output:
This
is a
sample
Did it help?
Niklas
-Original Message-
From: Nikola Weber [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 0:35
To: php forum
Subject: [PHP] file problem
Hi !
Thanks for the quick reply last
On Friday 21 September 2001 23:51, Salty Marine wrote:
Greetings to Felix and All:
I must agree that http://coolfreepages.com/ is a really good free hosting
service that supports PHP. However, soon as you use mail( ), it generates
an error message:
Fatal error: Call to undefined function:
Read chapter: LXXVIII. Session handling functions
Niklas
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 8:19
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Quickie
Hi,
I am trying to redirect the user to another page after user
Hi everybody!
I installed php 4.06 on Win NT, IIS 4. Before I updated php 4.00 with 4.06
my scripts were running fine. Since the update I am getting always the
follwoing error:
Warning: Cannot add header information - headers already sent by (output
started at lang/dt/variables.php:321) in
Hi everybody!
I installed php 4.06 on Win NT, IIS 4. Before I updated php 4.00 with 4.06 my scripts
were running fine. Since the update I am getting always the follwoing error:
Warning: Cannot add header information - headers already sent by (output started at
lang/dt/variables.php:321) in
Output has started at variables.php on line 321.
Niklas
-Original Message-
From: Tom Nickels [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 13:20
To: [EMAIL PROTECTED]
Subject: [PHP] Cannot add header information - headers already sent by
Hi everybody!
I installed php 4.06 on
So sprach »Tom Nickels« am 2001-09-22 um 12:01:23 +0200 :
Warning: Cannot add header information - headers already sent by (output
started at lang/dt/variables.php:321) in vote_submit.php on line
34
Line 34 of vote_submit.php is:
header(Location:
At 23:13 2001-09-21 -0500, Richard Lynch wrote:
You are going to spend a *LOT* of time re-doing the work that went into SQL
db that you have eliminated... Re-consider.
I wanted to make the module independant of an SQL service so that it could
reach a wider audience by having fewer system
Hi,
I am developing a simple site, in PHP4, which has three frames on it.
The first gives you the search options and the second two, the results.
What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
hi
try this one
http://www.f2s.com , free space , no ads, most php features supported
(including mail)
regards
At 11:44 22/09/01, Meir Kriheli wrote:
On Friday 21 September 2001 23:51, Salty Marine wrote:
Greetings to Felix and All:
I must agree that http://coolfreepages.com/ is a really
i want to send emails with attachements... can I modify the
mail()-function
or how can I perform this?
please email me - thank you!
There's a class available here which will do it:
http://www.heyes-computing.net
or use function IMAP_Mail_Compose(), in the manual is very good
Hi,
I try compile gd-lib in version 1.8.4 on OpenBSD. This operation caused
error, but with version 1.8.3 was all OK.
Do you have some expirience with this problem? How to compile PHP 4.0.6 wiht
gd-1.8.4
Thaks
Radek
---
Bc. Radek Kreja
www: www.ceskedomeny.cz
e-mail:
Check the value of filesize($fileName). It's probably not working - either
because PHP doesn't support it with URLs (likely) or that it's can't get the
length from the webserver (less likely).
PS: don't cross-post this sort of message to php-dev. That's for people
developing PHP, not developing
Look at $HTTP_USER_AGENT.
Urb
Anybody know how to code in HTML or perl to find the browser
say
if Iexplore
{
do this
}
else if Netscape
{
do this
}
Thanks and regards
-Balaji
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
This is sharp.
http://php.net/fopen
actually bring up:
http://www.php.net/manual/en/function.fopen.php
Is there any documentation on how they do that?
Urb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
So sprach »Urb LeJeune« am 2001-09-22 um 10:10:21 -0400 :
Is there any documentation on how they do that?
I suppose, they're using Apache's mod_rewrite which transforms the URL
(php.net/fopen) to the search form
(manual-lookup.php?lang=enfunction=fopen) if the part after the / is
not otherwise
I have some user profiles and I'd like them to be able to update them as they see fit
(Change their email, password etc etc).
However, their options are rather long and instead of having these turkeys have to
type in stuff into 8 form fields, I'd like to display the current data in those
Hi,
I am developing a simple site, in PHP4, which has three frames on it.
The first gives you the search options and the second two, the results.
What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
Hi
I need to run some code if a session has been started. However, to do
this, I need to figure out IF the session has been started at all.
How can I do this?
Is checking for the count of elements in HTTP_SESSION_VARS the only
reliable way of doing this? Like so?
?php
if (0
Why not populate a session variable, in the page that starts the session,
like :
session_start();
session_register(valid_session);
$valid_session = true;
Then in the page that you need to check, like:
if ($session_valid) {
// Do something since a session is already running
}
--
session_start();
$valid_session = true;
session_register(valid_session);
OR SOMETHING LIKE THIS?
if (session_is_registered($valid_session)) {
// Do something?!
}
Gaylen Fraley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Why not populate a
So sprach »Fredrik Arild Takle« am 2001-09-22 um 18:00:37 +0200 :
session_register(valid_session);
OR SOMETHING LIKE THIS?
if (session_is_registered($valid_session)) {
Yep, that seems better.
Thanks to both of you!
Alexander Skwar
--
How to quote: http://learn.to/quote (german)
Hi,
does anybody knows or have a php script for a private mail system within one website
(mailboxes for sending private messages in a dating site)
Thanks
Tom
Try http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/ .
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts
Tom Nickels [EMAIL PROTECTED] wrote in message
to my knowledge what you're talking about is done
through html layers and javascript...I've seen it done
at other siteshttp://www.anywho.com/rl.html uses
this process.
rm
--- Alexis Antonakis [EMAIL PROTECTED] wrote:
Hi,
I am developing a simple site, in PHP4, which has
three
Every message that I post to news.php.net gets posted, but I receive this
email:
This is the Postfix program at host mail.aaz-netmarketing.com.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
For
Yeah, filesize() does not work with urls. Suggested file() and implode()
earlier for this task and didn't mention fgets() as it may be appropriate
here as well.
http://www.php.net/fgets
http://www.php.net/file
Both manual entries have examples that do exactly what you want, Put a
url
You don't need layers. Just have a js routine that sends 2 different
location statements, i.e.
script
parent.resultsframe.location =
javascript:'document.write(loading...');;
// then start your search code here
/script
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB
Hi I have the same and I don't know if some one even get my questions, I
never get a response.
Maybe the questions are to difficult.
Yours Hans.
- Original Message -
From: Gaylen Fraley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 22, 2001 6:34 PM
Subject: [PHP]
Hi Alexis,
I have the same sort of settings but it is for me very difficult to get the
information from the find input field in to the session variables.
Do you have a solution how to do this?
I have no solution to your problem but it is for me also interesting to see
if someone comes with a
Hi,
I was wondering does anyone know what this particular error message means:
Warning: Use of undefined constant submit - assumed 'submit' in
/usr/local/apache/htdocs/mm2/mymarket/privatedirectory/db/newthread.php on
line 110
But I already defined submit button as shown in the php script
Sean Straw / PSE wrote:
The design consideration here is that an SQL dependance means anyone
who might want to use the module (this is for dealing with CodeRed and
W32/Nimda and no doubt the next IIS worm that strikes) must do SQL
setup for a new database, etc.
oh, and after verifying
You forgit the $ sign. Should be
if(!$submit)
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts
Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I was wondering does
hey-
my main goal here is to be able to stream an mp3 through any player that can accept
m3u files. My idea was to use the format of an m3u file, which looks like this:
#EXTM3U
#EXTINF:324,cs-1.mp3
http://www.fplg.net/audio/cs-1.mp3
and pack it into a variable to be sent out using a header
Hi !
I was wondering if it is possible to replace standard radio and submit buttons with
images. In case of radio buttons that should look like swap image(the image that
presents the selected item is swaped) for the selected item, and smth like link image
for submit buttons... I think that
not sure i follow Gianluca...the script will stay there, its not going
anywhere, so why does it need to wait? it'll process whatever info is sent
to it
-jack
-Original Message-
From: Gianluca Baldo [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 2:06 PM
To: [EMAIL
Do all versions of the GD library for Linux that are version 1.6 and above
not support any GIF formats? I have 1.8 and in the manual I thought that it
was only version 1.6 that didn't support GIF format. However, when I run
ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not
for submit buttons... I think that escaping from standard form look and
feel can
improve the site layout ...
Respectively disagree. That's like saying let put the ignition on
the arm
rest to improve the layout. Much research has been done and users almost
universally like things that
Hy Richard,
It`s me again. I understand what you suggest me but is not necesarry to
declare GLOBAL, variable $php_errormsg !!! Elsewhere is the problem
I made a little script that can ilustrate my opinion:
OR IS O BUG IN PHP, or my first computer require
a little update.
Run this
How to send session id in URL as path for example
www.somehost.com/ea9e8d564ea55f1b88c0a/index.php3?
and how to get this id?
--
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
I don't know if this exists already, I'm looking for it but I'm not coming
up with much of anything.
Basically, a function to take a number and convert it to a string:
1 converts to one
365 converts to three hundred sixty-five
This would be awesome for me.
--
Thomas Deliduka
IT Manager
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] error message
I was wondering does anyone know what this particular error
message means:
Warning: Use of undefined constant submit -
Since my original post, the status has changed but let me recap...
The file /home/windon/somefile did have permissions set to have anyone
read it, but I never checked the permissions on the /home/windon
directory. This has since been corrected.
Next I was getting a permission denied error,
On 22-Sep-2001 Jay Paulson wrote:
Do all versions of the GD library for Linux that are version 1.6 and above
not support any GIF formats?
Yes, It was removed due to copyright restrictions.
from http://www.boutell.com/gd/manual1.8.4.html :
Support for GIF has been removed. This step was
That's not a PHP error.
You'll need to use mysql_error()
Or, perhaps there is a setting somewhere to get mysql_error() to also fill
in $php_errormsg, but I dunno what it is...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music?
I'd like to write some web based utilities for users to change things like
mail forwarding and vacation autoreplies, as well as password changing.
In order to do these things, I need to have a way for the PHP script to
assume the privileges of the authenticated user. (If they don't supply
the
If http://php.net/sprintf doesn't do that, check the code archives
http://php.net/links.php
You're not the first to want this, by a long shot...
If all else fails, search the mailing list archives. It's been posted...
Terms like number and words and money and check should pick up the thread.
www.example.com/index.php3/ee9e8d564ea55f1b88c0a
index.php3 ---
?php
echo $PATH_INFO;
?
If that doesn't work for whatever reason, try using ?php phpinfo();?
You'll probably need http://php.net/explode to separate out your values, and
you'll either need to know in advance which
15 fields is not a lot, especially if you intend to handle some as
checkboxes, some as text, etc...
If you actually had a *LOT* of fields, you could look at storing some kind
of info about them in another table, and automating the output.
Another option would be to use oohforms (see PHPlib) or
header(Content-type: audio/m3u); # Or something not unlike that... Check
what you get for a static m3u file.
header(Content-length: . strlen($buffer));
Those two should do it.
If you have problems, check the output from a static file, and add headers
until it works...
From a Un*x command
Search for htdig on the 'net.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Vishal
px.sklar.com used to have code that did something like this. Do a google
search for some pseudo code that does it if not. You should be able to
easily port it to PHP..
Cris
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 4:04 PM
Since I originally announced this guestbook app here and so many have
downloaded it (thanks!), I need to let you know that I recommend getting the
latest copy. I have done quite a bit of work, even up to the sending of
this. There were a couple of warning messages that were appearing and there
thanks Chris,
i would have checked the link but it seems that online php documentation has
gone haywire.
best regards from saif
---
[php 406, apache 1312, winme]
[mysql 32321, personal oracle 8]
*
On Tue, 18 Sep
Alright. If that's the case, how do you make sure a cookie gets set for
the remote domain? I'm working on a project to write a hosted shopping
cart, but we want people to have the ability to include pieces of the
display functionality on their own pages, if their host supports PHP.
But those
Hello all,
I'm having some troubles making correct percentages.
I'm writing a simple poll system. Is there an easy way to generate
percentages? I know to divide and all that good stuff. I do substr to get
rid of the decimals, but sometimes the percentages still aren't displayed
correctly.
Thanks for that. Assigning a type to that variable never even occured to
me. :-)
Tyler
- Original Message -
From: Matt Greer [EMAIL PROTECTED]
To: Tyler Longren [EMAIL PROTECTED]; PHP-General
[EMAIL PROTECTED]
Sent: Saturday, September 22, 2001 4:52 PM
Subject: Re: [PHP] percentage
On Saturday 22 September 2001 16:41, you wrote:
Hello all,
I'm having some troubles making correct percentages.
I'm writing a simple poll system. Is there an easy way to generate
percentages? I know to divide and all that good stuff. I do substr to get
rid of the decimals, but sometimes
Hello matt,
even better is ceil() or floor()
Saturday, September 22, 2001, 11:53:44 PM, you wrote:
Better than substr is to cast the variable to be an int
--
Best regards,
slavkomailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
Hello,
I tried using the ceil() and floor() functions. They did not help much.
Ceil() set everything to 1%. I tried this:
$percent = $num_games/$total_games;
$percent = round($percent, 1);
But again, some of the percentages are:
0.7%
I also tried assigning the $percent variable the int
So sprach »saif« am 2001-09-15 um 18:58:29 +0530 :
i want to know is there any naming convention followed in php as
in c/c++/java/etc.
I'm trying to follow PEAR coding style
- http://php.net/manual/en/pear.standards.php
Alexander Skwar
--
How to quote: http://learn.to/quote (german)
So sprach »saif« am 2001-09-23 um 00:33:27 +0530 :
thanks Chris,
i would have checked the link but it seems that online php documentation has
gone haywire.
Well, it's working right now.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:
So sprach »Tyler Longren« am 2001-09-22 um 17:14:46 -0500 :
Any other ideas?
number_format ?
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige
I have a little problem... I had to enable the PHP safe_mode, and
now I receive this error message when I try to read the passwd file
on the server :
Warning: SAFE MODE Restriction in effect. The script whose uid is
110 is not allowed to access /etc/passwd owned by uid 0 in
Hello Tyler,
try
$percent = ceil(100*$num_games/$total_games);
--
Best regards,
slavkomailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
DSolved. Problem was a typo in other script called by this one. Many
apologies to the list.
Best,
daniel
-Original Message-
From: Daniel Goldin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 9:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] eregi_replace problem
The following
Hi all,
I'm trying to find a script that will return the same kind of data I get
with du. I want a page to list current disk usage by virtual domain on our
servers. I see the diskfreespace and disk_total_space commands, but they
doesn't seem to work at all for me.
Anybody know of a good script?
Scott Poarch [EMAIL PROTECTED] wrote:
I'm trying to find a script that will return the same kind of data I get
with du. I want a page to list current disk usage by virtual domain on our
servers. I see the diskfreespace and disk_total_space commands, but they
doesn't seem to work at all for
[Reposting cos left error message out, sorry] Had a fully working
installation of MySQL 3.23 with PHP 6.0.6. I then foolishly installed PGP
which included PGPNet and I cant access my MySQL database from PHP. When I
try to connect I get error 'Access denied for user: '@GREEN' to database
Thanks for the quick reply.
I've been tring variations on that for a while with little success. This is
not necessarily my best hope, but it's the version I happen to be at at the
moment:
$command = du test2;
system($command);
Any ideas?
--
Scott Poarch
http://www.globalhost.com
- - - - - -
While viewing my phpinfo() page, i got this:
QUERY_STRING
I appreciate the help.
I understand the 'du -sk', but what's the (int) all about. Are you
suggesting using:
$usage = (int)`du -sk`;
in the PHP code, as in:
chdir($basedir);
$usage = (int)'du -sk';
print($usage is usage);
?
Thanks,
--
Scott Poarch
http://www.globalhost.com
- - - - - - - -
How can I read the /etc/passwd file when safe mode is turned on. is
there a work around on this. Hear is a function I use to check if a
username is already in use on the system. This works fine when safe
mode is off but when it is on it gives this error.
Warning: SAFE MODE Restriction in effect.
Yes, that's exactly what I'm suggesting...
Say output of du -sk is:
1022 .
The dot represents the current directory. By typecasting it to an
integer, using (int), PHP will drop the dot and whitespace in between...
So, typecasting 1022 . to int gives you 1022 by itself.
Good luck!
Does anyone know why if I pass mysql_connect() or mysql_select_db() parms as
variables or defined constants the connection always fails? If I copy and
paste the values I assign to the variable or the defined constant it works
like a champ. Can anyone explain this?
Thanks in advance.
--
Dana
I am trying to write a php script that will work around a http authentication that I
do have access to. I am trying to do this so that a form process in my control panel
can automatically have information sent to it from a form that a user will fill out.
However, my problem is in trying to get
I'm trying to fill information that i read out of files into a 2 dimensional
array.
My main problem (i think) is that i dont know how to declare a 2 dimensional
array prior to adding parts to it.
Especially since the size of each internal array and the external array are
all picked up from the
Hi!
Yes it sounds too good to be true but it IS true!
You can burn your very own DVD with a regular CD burner!
You can make BIG money selling this incredible software too!
This is NOT a scheme or hype! It's the most advanced technology!
To burn:
http://www.dvdcopy.tv
To sell:
Mark,
PHP, at this point, does not support MultiDimension arrays. However, you
can get around this by placing array's inside arrays.
Thus:
$myarray[0] = array(element00, element01,element02);
$myarray[1] = array(element10, element11,element12);
$myarray[2] = array(element20,
hi I'm hoping that someone here can help me I'm totally new to object oriented
stuff and might be trying to do this totally ass backwards.
Having said that this also involves multidimensional arrays and I'm not to bright with
these either . :)
I have looked on the web and FAQ's and manuals for
Is there a way to put a timeout on each iteration of a loop (foreach, to be
more specific)?
--
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
Hi,
If I have a value $num = 32; based on this how can I create an Array of
numbers 1 - 32, something like this...
?
$num = 32;
for ($i = 1; $i = $num; $i++)
{
// Do something
}
// And now $i = (1,2,3,etc
?
Any suggestions?? I cannot use array_push as this has to work on a PHP3
server.
TIA
87 matches
Mail list logo