Well, I don't know either but I was thinking about that...
Usually this $lineno = __LINE__ would be avaluated when the function is
called, this mean it gives the __LINE__ of the function call itself.
Why don't you try a more simple include/require instead of calling a
funcion ?(see example)
but
Another thing...
if the $lineno variable isn't defined yet, maybe the parser first try a cast
into __LINE__ type, so even if the assign procedure is called at the
function call, the line is evaluated at the funcion definition step...
but maybe it's a bullship :-)
J
Dav [EMAIL PROTECTED] ha
session name in the display_image appears to be different from the name
specified in the index
Jtjohnston [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Martin, are ya out there? Does anyone know anything about sessions? (An
post reply would be handy
Is there a way to have different .ini-files for each VirtualHost?
Apache is used as webserver
Thank you for helping
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T.
I'm working on a script that needs array_unique() but my host is using 4.0.4
and it's broken in that build. Does anyone have a good workaround for this?
I can wait for my host to upgrade but if I release this code, it would be
better to have the workaround...
I just need a good way to check for
You can pass different ini stuff in the htaccess file for each virtual host
Stefan [EMAIL PROTECTED] ha scritto nel messaggio
002a01c16ce4$bf6bc960$3c01a8c0@quasimodo">news:002a01c16ce4$bf6bc960$3c01a8c0@quasimodo...
Is there a way to have different .ini-files for each VirtualHost?
Apache is used
From www.php.net searching htaccess in the online documentation:
When using PHP as an Apache module, it is possible to override PHP ini
setting per Virtual Host in httpd.conf or per directory with .htaccess.
Refer to the Configuration section and Apache Manual for details.
Stefan [EMAIL
You can:
1) make a while cycle
2) pop the value
3) use the in_array to check if the value is in the array
(pop means extract not only get)
4) if in_array function returns true push the value in a new array
J
Spunk S. Spunk III [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL
Hello
I just discovered a netscape 4.7 bug when sending a string. The variable
cannot contain a space. So a string like this does not work in netscape 4.7
objectdetail.php?Bouw=variableObject_type=normalStreet_type=normal
street.
The variable Street_type doesn't get
Hi,
I'm new to the list and I have a problem with PHPNUKE 5.2 and W98.
After installing some categories and links in the Web Links section, and
then clicking on one of the links created I keep getting the following
message error in W98SE.
PHP caused an invalid page fault in module
Oosten, Sjoerd van wrote:
Hello
I just discovered a netscape 4.7 bug when sending a string. The variable
cannot contain a space. So a string like this does not work in netscape 4.7
objectdetail.php?Bouw=variableObject_type=normalStreet_type=normal
street.
The
Hello,
I found the solution to my problem here it is.
Adding the following line in the HTML seems to make the PHP code work well
with the Upload Form.
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
Don't know why but, I guess this makes the document HTML compliant.
Regards,
On Wed, Nov 14, 2001 at 09:17:03AM +0100, Spunk S. Spunk III wrote:
I'm working on a script that needs array_unique() but my host is using 4.0.4
and it's broken in that build. Does anyone have a good workaround for this?
I can wait for my host to upgrade but if I release this code, it would be
Thanks Dav,
You caught me while I was debugging. But I learned a valuable lesson! I indeed
did not name my session_name correctly. IN FACT ... I did not name it AT ALL in
display_image.php. There lay the problem. I needed to declare both:
session_name(ESLpostcard);
session_start();
at the
On Sat, Nov 03, 2001 at 03:54:23PM -0500, Reuben D Budiardja wrote:
since the key are preserved, arrC is no longer indexed from 0. Well, in most
cases I don't care about the key if it's just indexed array. But since the
key I preserved, I can no longer do
for($i=0; $icount($arrC);$i++)
What you can do is not to name session at all :-) It's easyer :-)
J
Jtjohnston [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks Dav,
You caught me while I was debugging. But I learned a valuable lesson! I
indeed
did not name my session_name
Hi Oosten,
I don't think that's a bug in NS 4.7, but part of the spec for URLs. See the PHP
manual for the urlencode() encode function.
John
Hello
I just discovered a netscape 4.7 bug when sending a string. The variable
cannot contain a space. So a string like this does not work in
Hi there.
I have an array like this : 1.2 , 0.3 , 0.5 , 1.6 , 0.3
I output like this:
while($data_array[$j]){
echo br$data[$j] ;
$j++ ;
}
My output is like this : 1 , 0 , 0 , 1 , 0
The values in the db are floats and are read correctly !
Why is the values not there.Is there a
It seems you data are down-taken to Integers (int) instead of the correct
variable type.
Try to define the array as an array of correct types, otherwise the array
will be int type and will contain integers (1.2 taken to 1, 0,5 taken to
0, and so on)
J
De Necker Henri [EMAIL PROTECTED] ha scritto
Thanks everyone for the ideas,
Here's what I came up with...
I forgot to mention that I needed to preserve the original array's keys.
Here is a replacement I wrote that seems to work. Let me know if you see
errors in it or have improvements.
function my_array_unique($somearray)
{
Try with
foreach ($data as $v)
echo 'br'.$v;
The values in the array _may_not_have consequetn indexes.
Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: De Necker Henri [EMAIL PROTECTED]
To: PHP-General (E-mail) [EMAIL
Spaces are not allowed in URL's, that the newer browsers do accept them
probably means nothing more than that they don't show you that they encode it
to %20
On Wednesday 14 November 2001 01:54, John Steele stuffed this into my mailbox:
Hi Oosten,
I don't think that's a bug in NS 4.7, but
Yes, I saw the discussion a few days earlier on this topic, but I'm
wondering if there is still some unmined wisdom out there about
building a script that sends a newsletter out to 25,000+ people
The very impressive class I found (phpmailer-1.41) looked great, but
it didn't *directly*
Hi!
Anyone knows how to prevent anoying convertion of nonACSII characters when
MSSQL Server stores data in database?
I know, that when I use ODBC there is no problem with conversion, but I'd
like to avoid using ODBC connection if possible.
Tomaz
--
PHP General Mailing List
Hi all,
I am not sure if this is the right list to ask. But I am wondering if I
can keep my php code from Server Administrator of the web server I am
putting my code on? Is there anyway I can encrypt or do something so that
the server admin can't look at my code.
REgards,
Ye
--
PHP
Hi,
I have a text file, which is acting as a template for apache config.
I open the file, and read it in using this bit of code:
$filename = DIR_TEMPLATES./apache/subdom.txt;
$fd = fopen ($filename, r);
$template = fread ($fd, filesize ($filename));
fclose ($fd);
However, the first
Thank you for your answer.
However our real problem is to solve it with preg_match.
we want to rather analyse more complicated structures than the one
in our example. Well, let me reformulate it:
How can we (with preg_match) s a v e each subpattern into an array
element, that is, also e a c h
Here are a few links that might help you:
'Zend Encoder':
http://www.zend.com/zend/products.php
'PBC':
http://pbc.sourceforge.net/
'AfterBurner Cache':
http://bwcache.bware.it/
Pear's cache classes may also protect a little bit your code... I don't
know how easy it is to break the file
Theres the Zend Encoder, but this is a bit pricey if you don't have a
company to pay for it. Don't know if theres any free alternatives or not
-Original Message-
From: Ye Tun [SMTP:[EMAIL PROTECTED]]
Sent: 14 November 2001 11:39
To: [EMAIL PROTECTED]
Subject:[PHP]
it seems that...
$newarray = array()
foreach($oldarray as $key = $value)
if(! isset($newarray[$key]))
$newarray[$key] = $value;
-JAson Garber
IonZOft.com
At 10:42 AM 11/14/2001 +0100, Spunk S. Spunk III wrote:
Thanks everyone for the ideas,
Here's what I came up
Hi !
I use the file function for accessing to pages on another server.
It works perfectly.
But if the server does not respond or is too long to send datas, the file
function wait too long..
Is there a way to tune the time out ?? I would like that id the server does
not respond, the function
try this..
?
if(true)
{
?
Raw html code here for
as long as
you want
?
}
else
{
?
More
Raw
Html
Code
Here
?
}
I believe that this feature is way underutilized by php developers. Tying
from the manual
?php
$fp = fsockopen(www.php.net, 80);
if(!$fp) {
echo Unable to open\n;
} else {
fputs($fp,GET / HTTP/1.0\n\n);
$start = time();
socket_set_timeout($fp, 2);
$res = fread($fp, 2000);
//var_dump(socket_get_status($fp));
fclose($fp);
print $res;
}
?
On Wed, 14 Nov 2001 18:38:48 +0700
Ye Tun [EMAIL PROTECTED] wrote:
Hi all,
I am not sure if this is the right list to ask. But I am wondering if I
can keep my php code from Server Administrator of the web server I am
putting my code on? Is there anyway I can encrypt or do something so
Hi, is it possible to send SMTP mail if the server where are my pages
hosted forbids the use of the mail() function ? I mean, by opening a
sockets connection to an external SMTP server and writing the commands
there directly...
Jaime
--
PHP General Mailing List (http://www.php.net/)
To
Well infact you are checking equity, like my suggestion about in_array :-)
Spunk S. Spunk III [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks everyone for the ideas,
Here's what I came up with...
I forgot to mention that I needed to preserve the
I think that are some code which does what you want? Look at www.hotscripts.com,
phpclasses.upperdesign.net
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Jaime Iniesta Aleman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
reset() is not needed when using foreach but is requirement when using :
each(),next(),prev(), etc.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: dav [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001
Has anyone been successful in compiling afterBURNER Cache on Win32? I
tried, but couldn't do it
Julio Nobrega Trabalhando [EMAIL PROTECTED] wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Here are a few links that might help you:
'Zend Encoder':
Hi there. I'm new to php and would like some insight on securing a website.
Upon successful login to my site (checks against database for username and
password) I assign a session variable called '$islogged' to 'yes'. On all
other pages throughout my site I use the following code to determine if
If someone has already replied to this I apploigize for a double post.
You need to put in brackets after the if statement and end bracket before the else and
then
another open after the else, lastly you need to close with a bracket.
Example:
?php
if (strstr($DomResults,$Match)) {
set a cookie, and delete it with a logout button or when the user leaves
your domain
Joe Van Meer [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there. I'm new to php and would like some insight on securing a
website.
Upon successful login to my site
Thx for replying, so I can do away with the session variable that I was
setting and just set a cookie on their machine and delete it when they
logout? I don't have to check on each page?
Cheer Joe:)
Daniel Masur [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
One way I do this is with the following:
?php
if ($submit) {
// Create a php array.
$t_array = explode(,,$x_array);
print_r($t_array);
exit;
}
?
html
head
script language=javascript
var x = new Array();
x[0] = zero;
x[1] = one;
x[2] = two;
/script
/head
body
The lines are not missed, they are simply not visible when you echo the
stuff to the browser because your browser thinks these are HTML tags. Try
doing a View Source in your browser and I bet you will discover that
they are actually there.
-Rasmus
On Wed, 14 Nov 2001, Paul - Zenith Tech Inc
so set an md5() of each user name as yes.
islogged=Ehyfoa74a23gfd
or whatever is good i think. but sessions are the most secure way, so think
about both (sessions and cookies) and decide what you really need.
you have linux?
you could make an .htaccess, and make real users with no bash, and let
Tomaz,
In spite of your ODBC adversion it may be your best bet :)
One related option - OpenLink has a FreeTDS based driver available that you
may wish to try.
Please let me know if you require assistance.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software
Johannnes,
To enable ODBC support in PHP on Linux, configure --with-iodbc per the HOWTO
at www.iodbc.org.
This will link PHP against an ODBC Driver Manager, but you will still
require an ODBC Driver.
If you cannot obtain an ODBC driver for FMPro for Linux, you can use the
OpenLink Multi-Tier
Zend encoder is probably your best option.
But why do you want to hide your php code from your Server Admin?
1. If you can't trust your Server Administrator you've got big
problems. Change your hosting!
2. Are you sure your code is so valuable? Developers always
seem to greatly overestimate
On Wednesday 14 November 2001 14:58, you wrote:
I think mixing of the web application's and the host's operating
system's authantication is not the best thing (if you don't exactly
need that)
The $isLogged variable that is stored in the session is perfect as
long as you check that it is came
This is just a quick announcement of the release of APD, a completely free and open
(QPL) profiling/tracing/debugging extension for PHP. APD provides for strace/truss
type output switched on and off inside scriipts as well as the ability to dump
complete backtraces, similair to Perl's
In general, if you think your old code is an asset and you're just
protecting it, think again. All code is obsolete before it's
finished. It's only your skills/experience that really matter
and the best way to protect them is to share your work and learn
from others.
PERFECT ANSWER,
Joffrey Van Wageningen wrote:
its possible to create lambda-style functions with create_function() and
redeclare the variable functions
---
$funct = create_function('$x', 'return ++$x;');
echo $funct(10);
$funct = create_function('$x', 'return --$x;');
echo $funct(10);
---
its fun
Jean-Arthur,
Your set_time_limit/shutdown function solution looks like a clever
trick. If you can come up with that you might just as well do the
proper job with an fsockopen and socket_set_timeout.
The manual pages on fsockopen, socket_set_timeout plus the user comments
have plenty of useful
i recon this is a way too, the website does not support to much
information about how to use a tool like APD.
create_function is a php native function so support, stability and
usability is much greater than a 3rd party Zend Extention in early beta :)
with kind regards,
Joffrey van Wageningen
At 12:14 PM 11/14/2001 +0100, Sondra Russell wrote:
Yes, I saw the discussion a few days earlier on this topic, but I'm
wondering if there is still some unmined wisdom out there about building a
script that sends a newsletter out to 25,000+ people The very
impressive class I found
There's also a potential problem with:
Her har du ditt passord: $myrow[id] \n God appetitt! Hilsen Subway
You are using double quotes for the array index,(id) within a double
quoted string. I'm amazed php accepts this, you might expect it to
parse that as Her har du ditt passord: $myrow[ and
I don't know what it is... but PHP is acting very weird today... or I am
becoming crazy... can anyone tell me which one?
I have this function:
function Upload($source_file,$source_filename,$dest_dir,$allowed_types=array())
{
global $upload_errmsg;
if( count($allowed_types) )
{
I get a CGI error whenever I view my php app under Netscape 6. The
error is:
CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:
My question is, what are the headers that I need to send, where can I
find more info
Sure sounds like you're hitting this function twice by accident. Are you
sure you're only calling it once? That would explain why you only get
one output with the die(), but two without it.
-Steve
On Wednesday, November 14, 2001, at 10:34 AM, Christian Dechery wrote:
I don't know what it
That is not an error you get from a browser, that is an error generated
by the server. Netscape or IE are just reporting that. Are you sure
the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS).
It sounds like there is a problem in your code.
Michael
Anthony wrote:
I
Rodrigo,
I don't quite understand your problem, it might help to see some of the
php or form html. It might also help if I explain how I usually handle updates.
I have a single php page with the form on it which is also the target
of the form.
Typically users get to the form via a link which
Hello,
Sondra Russell wrote:
Yes, I saw the discussion a few days earlier on this topic, but I'm
wondering if there is still some unmined wisdom out there about
building a script that sends a newsletter out to 25,000+ people
The very impressive class I found (phpmailer-1.41) looked
that's exactly the problem... damn, how couldn't I think of this..
I didn't realise that when a file is NOT uploaded its value is set to
'none'... and I was using empty() to check it...
thanks a lot.
At 10:54 14/11/01 -0600, Steve Cayford wrote:
Sure sounds like you're hitting this function
This is something I am curious about also. We are currently building a
system to allow people to maintain/send out newsletters (40,000+). We have
done some initial testing of the process (which uses the mail() function)
and have found that it takes about 30 - 40 minutes to process 4000 emails.
On Wednesday 14 November 2001 5:10 pm, Michael Stearne wrote:
That is not an error you get from a browser, that is an error generated
by the server. Netscape or IE are just reporting that. Are you sure
the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS).
It sounds like
I would like to offer my recent experience in the hope that it will help
others avoid the wasted effort and frustration I managed to burden myself
with yesterday. I will start by stating that the conclusions I have drawn
may seem obvious at first blush, however in a troubleshooting environment
No.
You have to realise that JavaScript is client side, and PHP is server
side, so -- apart from inserting those javascript values into a form and
submitting it using code -- PHP and JavaScript cannot interact.
Mike
fitiux wrote:
Hi =)
is it possible to pass a javascript array to php ???
I assume that you have input type=text name=field1 value=?=
$field1 ? / or some variation thereof. In that case, just set $field1
= after you save the record, or remove the value= statement altogether.
Mike
Rodrigo Peres wrote:
Hi list,
I have PHP code to insert the result of a form into
Here are a few pointers to make it run just a little faster also.
don't extract the entire $GLOBALS array. just use the $var that you need.
function GetData($Query)
{
return(mysql_query($Query, $GLOBALS[db_conn]));
}
another thing would be to build a wrapper function for mysql_query() and
try this:
function
Upload($source_file,$source_filename,$dest_dir,$allowed_types=array(),
$upload_errmsg=)
{
if( count($allowed_types) )
{
if(!in_array(ArquivoExt($source_filename),$allowed_types))
{
?O arquivo ?=$source_filename? não está entre os tipos
Jim Lucas [EMAIL PROTECTED] wrote in message
012301c16d3a$6def13c0$96def5cc@bendcom">news:012301c16d3a$6def13c0$96def5cc@bendcom...
Here are a few pointers to make it run just a little faster also.
don't extract the entire $GLOBALS array. just use the $var that you need.
function
Just a reminder of sorts when dealing with this kind of issue.
Where I work, we never had a need to mail 20,000+ newsletters but we do
distribute 300 or so each week.
On our initial tests, we discovered our external smtp server (our isp
account), limited our mailings to chunks of 20 emails at a
Hi all... Having an issue with PHP recognizing the libgd and libjpeg libraries...
I specifically downloaded the newest version(s) of those,
and compiled the PHP 4.0.6 with:
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --with-xml
--with-zlib --with-gd=/usr/lib
Hello,
I read a paper about Berkeley DB2 databases and I have a few doubts about PHP db2
support
I compiled my php with --with-db2 option...
1) How can I create a Berkeley db2 database with the Berkeley DB Concurrent Access
Method I want. Let's say... a B+Tree ... or hash method. USING
Hi
Say I have a text file, separated by | ( a pipe). Now, I want to extract
that info, in the form of variables. I can extract and display the info in
the text files, but that's not what I want. I want to be able to tell it
that the first entry should be variable1, the second entry should be
On Wed, 14 Nov 2001 10:30:03 +1100, Martin Towell wrote:
That's why I put quotes around the words - obviously a function
would be
need to be written to do the serialising and a corresponding php
function
to retrieve the values and place them into an array again.
oops, I guess I misread that.
Someone may have a better way but you can read each line (assuming the file
uses \n for a new record) and use:
arrayname = explode(|,$variable_holding_line_from_file);
Then you can do assign the variables as such:
$name = $arrayname[0]; etc
Could be a better way from the list :)
Jeff
-
How about
pseudocode...
$variable=variablename;
$array = explode(|,$text);
foreach ($array as $key = $value) {
$variable$key=$value;
}
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-Original Message-
From: Jeff Lewis
Hello again,
Nr. 2
I compiled my php with --with-db2 option...
1) Does PHP support Berkeley DB2 concurrency control? How?
2) Does PHP support Berkeley DB2 transaction control? How?
Thank you very much,
Ricardo Núñez
[EMAIL PROTECTED]
--
PHP General Mailing List
Yeah, I tried to NOT name the session, but it didn't carry over the data. This
this simple lesson.
Dav wrote:
What you can do is not to name session at all :-) It's easyer :-)
J
Jtjohnston [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks Dav,
Only if you are allowed anywhere near your admin's account :)
Papp Gyozo wrote:
or name it in PHP.ini:
session.name
What you can do is not to name session at all :-) It's easyer :-)
J
Jtjohnston [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Sorry for the totally OT question, but can anyone recommend a good, FREE,
FTP client for windows? I now have to pay for AceFTP aswell, which used to
be free.
Thank you
Rudi Ahlers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I couldn't get this to work. Here is my complete script:
?
function WriteToFile ($URL, $Description) {
$file = bonzai.txt;
$open = fopen ($file, a);
if ($open) {
fwrite ($open, $URL\t$Description\n);
fclose ($open);
$Worked = TRUE ;
} else {
$Worked = FALSE;
}
return $Worked;
}
Look -- if you're going to post OT messages, at least put [OT] in the subject
line so those of us who get pissy about OT messages (such as myself) can
filter them out.
As for a good, free windows FTP utility, you have one:
Open up a command prompt and type ftp.
--kurt
On Wednesday 14
Hello all!
I have finally got php and apache to work with IMAP, pdf and gd, not
problems compiling them.
But...
When I try to connect to my local account called homer with IMAP in a
php-page I get an error:
Warning: Couldn't open stream {localhost:143}INBOX
When I get more info about the error
Von: Bruno Grab [EMAIL PROTECTED]
An: [EMAIL PROTECTED]
Betreff: Re: [PHP] matches problem (preg_match)
Datum: Mittwoch, 14. November 2001 12:41
Thank you for your answer.
However our real problem is to solve it with preg_match.
we want to rather analyse more complicated structures than the one
Tengo un pequeño problema con mi servidor SuSe 7.0
Tengo instalado el apache y corriendo los demonios, tengo instlado los rpm
del mod_php, postgres y mysql pero cuando desde mi navegador deseo
visualizar alguna pagina con la extension php esta se descarga sola, no me
visualiza nada.
Que error
Greetings,
I'd like to check to see if an ip is within an ip cidr style network
block (192.75.242.157 with 192.75.242.0/23). Initially, I started off
with some code derived from some perl code that I found (code below).
However, the bitmask calcution did not work ( $bitmask = 0x
(32 -
Nonetheless sometimes it is more efficient to use a template engine.
(IMHO)
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: Jason G. [EMAIL PROTECTED]
To: Brad Melendy [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 1:33 PM
Subject: Re: [PHP]
Egypt Presents Logo
http://www.egyptpresents.com/EgyPres.ASP?MRKID=210800
Ramadan @ EgyptPresents
http://www.egyptpresents.com/EgyPres.ASP?WCI=FrameSetMainURL=EgyPres.A
SP?WCI=ItemsCatID=0CatName=occasionsSubCatID=4SubCatName=ramadanMRK
ID=131101
First Online Gift Shop in Egypt
I currently log ip address that reach my site. However, I want to be able
to log both the ip address and remote name. Can anyone help?
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
check this out
http://www.php.net/manual/en/function.gethostbyaddr.php
jim
- Original Message -
From: Ben Clumeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 2:48 PM
Subject: [PHP] IP Address Variable
I currently log ip address that reach my site.
Jim,
Thanks for your quick response. I looked over the URL and tried it but it
doesn't seem to work.
I tried:
?php
$name = gethostbyaddr($ip);
print ($ip is $name\n);
?
Any advice would be appreciated.
Ben
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]]
Sent:
Start at index.html. It goes to postcard.php. When I click on submit in
postcard.php, if I change any of the values in the form, the session
values received in send_mail.php do not change. Anyone have an idea what
I have done wrong now?
OK GOT IT!!
$utine = strtotime(26-Nov-2001);
$bday=(int)$utine;
$utoday = strtotime();
$btoday = (int)$utoday;
if((($bday-$btoday) = 1209600 ($bday-$btoday)0)){
print you have . round(($bday-$btoday)/86400). Days till
'blanks' bdaybr;
print you are within the two week range.;
}else{
It may not work, if you are running Windows PHP on your localhost at home.
I'll bet you are trying to log getenv('REMOTE_HOST').
Been there done that. I use http://www.indigostar.com/microweb.htm to create a
localhost to develop and debug and then upload to the server. (I pay for modem
time.) I
Hello,
I have been mssing with the mail function for a day now. When I send a
e-mail it always adds the server name to the end of whatever I put the
e-mail from in the header.
Example:
$mailheaders = From: \Do Not Reply\\r\nReply-To: Do Not Reply@Do Not
Reply\n;
If I use the above
It's probably thinking that Do Not Reply is a user name, so try:
Do Not Reply [EMAIL PROTECTED]
and see how that goes
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:50 AM
To: PHP User Group
Subject: [PHP] mail() function
Hello,
D'oh!!!
That's what I get for trying copying and pasting with Mandrake's screwy
./configure line! An oddly altered php.ini file was indeed the problem.
Seems obvious in retrospect -- php.ini was trying to load Mandrake's old
dynamic modules that are already static in my new PHP Module, so
1 - 100 of 121 matches
Mail list logo