Here's some ideas how I'd go for something like that. I'd have some PHP on
the externally hosted website, and some PHP on the Intranet/CRM-DB server.
At 08:39 27.03.2003, Steve Jackson said:
[snip]
gathering tool. Basically what I'll need to set-up is some
variables inside single quotes are not evaluated! This is the same variable:
echo $GLOBALS['var'];
$key='var'; echo $GLOBALS[$key];
With $GLOBALS['$key'] you refer to an invalid variable name $'$key'
PS: Output of
echo GLOBALS['$key'] = $valuebr\n;
is right because $key is in double quotes (the
At 09:24 27.03.2003, Marek Kilimajer said:
[snip]
echo GLOBALS['$key'] = $valuebr\n;
is right because $key is in double quotes (the outermost qoutes)
[snip]
...almost... the array deref should be in curly quotes
there is no $ in front of GLOBALS ;)
Ernest E Vogelsinger wrote:
At 09:24 27.03.2003, Marek Kilimajer said:
[snip]
echo GLOBALS['$key'] = $valuebr\n;
is right because $key is in double quotes (the outermost qoutes)
At 09:46 27.03.2003, Marek Kilimajer said:
[snip]
there is no $ in front of GLOBALS ;)
[snip]
right you are - I noticed it as soon as the message was out... sometimes
one's too fast hitting the send button ;-)
--
How can I tell which version of php I have? I didnt see it with phpinfo()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 10:01 27.03.2003, Diana Castillo said:
[snip]
How can I tell which version of php I have? I didnt see it with phpinfo()
[snip]
phpversion()
http://www.php.net/manual/en/function.phpversion.php
--
O
I keep forgetting to do the reply to all thing! :)
Here it is for anyone else as well.
if
(!eregi('[EMAIL PROTECTED],5}$',$email))
{
echo 'Invalid email address';
} else {
//do whatever
}
That should do it. Sometimes I get these wrong off
the top of my head.
Silly
--- Philip J. Newman
no that doesnt work, anything else?
Dan Rossi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
@getimagesize ?
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 5:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] getimagesize
Hello All,
Im having trouble with compatibility between MD5 Digest in Perl and in
PHP. They dont give the same results.
Perl
#!/usr/local/bin/perl
use strict;
use Digest::MD5 ();
my $to_be_hashed = Cheese;
my ($hash) = Digest::MD5-md5_hex($to_be_hashed);
print to_be_hashed :
I would use array
$user_perm ( 1 = false, // for admin
2 = true // for news
4 = true // news_create
8 = false // news_delete
.
.
.
)
as you can see there are gaps that you can use for other permissions,
and this way all you need is to rewrite
if($user_perm $perm == $perm )
to
Im Very Sorry / Embarrased.. my code example had a mistake with extra
linebreak. Here is the example with out it, which gives a different MD5
hash.
The PHP is ..
$data = Cheese;
print Data: '$data' P\n;
$new_hash = md5($data);
print RE HASH ' $new_hash ' P\n;
Output
Data: 'Cheese'
On Thursday 27 March 2003 14:44, Philip J. Newman wrote:
How would i check that an e-mail has the right parts in it. for example.
username @ domain . ext
You would check the archives because this has been covered more times than I
have fingers to keep count with.
--
Jason Wong - Gremlins
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote:
Ray Hunter wrote:
They are two:
1/ php+apache/linux webserver (reachable from outside)
2/ iis/w2k running web service (behind firewall)
You can also create scripts that receive post data and then submit that
data to another server via php or
On Thursday 27 March 2003 03:26, Reuben D. Budiardja wrote:
But isn't it so much easier to type in that one line HTML + javascript than
trying to get an image of a checked check box.. unless you have that
handy, you'd have to eg. take a snapshot, or draw something, then save the
file as
In PHP..
$data = Cheese\n;
- trailing newline char
Steven Carr wrote:
Hello All,
Im having trouble with compatibility between MD5 Digest in Perl and in
PHP. They dont give the same results.
Perl
#!/usr/local/bin/perl
use strict;
use Digest::MD5 ();
my $to_be_hashed = Cheese;
my ($hash) =
On Thursday 27 March 2003 13:05, Jim wrote:
Could someboy please help me with this simple task (at least I though it
would be simple):
I need to split a string with two dates in into two datestrings, and there
might be whatever between the dates, e.g.
$datestring = 010101a020202, or
David Otton wrote:
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote:
I would suggest configuring Apache as an HTTP proxy, rather than trying
to redirect requests with PHP scripts.
More details here
http://www.devshed.com/Server_Side/Administration/ApacheProxy/page1.html
With some forethought, you
Where you get this error from? Does it come from the browser or is it
the script output?
Diana Castillo wrote:
anyway to not get an error when doing getimagesize if you get this response?
HTTP request failed! HTTP/1.1 404 Not Found
--
PHP General Mailing List (http://www.php.net/)
To
i just want to know what format does qmail use to store password in the
password file.what function should be used to generate that password
thanx in advance for the answers
Haseeb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 28 March 2003 06:44, Haseeb Iqbal wrote:
i just want to know what format does qmail use to store password in the
password file.what function should be used to generate that password
1) You're asking on the wrong list
2) It depends on what authentication method your system uses
--
not necesserily both, either of them is enought:
drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp
or
drwx--2 apache apache 188416 Mar 27 11:23 /var/www/uploads
daniel wrote:
possibly a permissions problem , dir needs to be 777 and owned by httpd
--
PHP
Not a PHP Question and should have been directed to Qmail Mailing list.
i just want to know what format does qmail use to store password in the
password file.what function should be used to generate that password
thanx in advance for the answers
This manly depends on how have you configured
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
not necesserily both, either of them is enought:
Not quite true :)
If owned by 'httpd' then 'httpd' still needs write permission (o+w).
drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp
or
drwx--2 apache apache
did u even read it ? chmod 777 + owned by httpd
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Uploading Files Via PHP
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
not necesserily
How can I skip an error? For instance in ASP it would be on error and
then you would skip the next error.
I want to be able to skip when I get the 404 File not found error in a
specific part when I am using getimagesize.
Thanks,
Diana
--
PHP General Mailing List (http://www.php.net/)
To
By apache I ment the httpd process's user. I don't mean your way won't
work, but you give away unnecessary permissions - if the directory is
owned by httpd, access rights 700 are enough, if the directory is not
owned by httpd, you need at least 007
Dan Rossi wrote:
did u even read it ? chmod
Hi all,
can php call perl scripts?
I know nothing of perl, but have found a perl script that will process a
MSword document in a way that it seems php cannot.
At this stage, my knowledge of perl is limited to it's used in web stuff
sometimes isnt it :) but i am sure i will soon find a bit more
I am receiving an error when attempting to use the SelectPrinter method
in the CrystalDesignRunTime.Application COM object. The following code:
-
$crapp = new COM(CrystalDesignRunTime.Application);
$creport = $crapp-OpenReport(d:\\athermal\\reports\\backlog.rpt, 1);
Yes, you can call perl scripts using exec or system function just like
you will call any other system function. You will have to make sure that the
apache user (or nobody if your apache runs as nobody) has executable
permission on perl script.
So if your perl script is:
/home/nikunj/test.pl
you
On Wed, 26 Mar 2003 17:23:33 +0100, you wrote:
Im Very Sorry / Embarrased.. my code example had a mistake with extra
linebreak. Here is the example with out it, which gives a different MD5
hash.
I don't know why this is, but if you call Digest::MD5-md5_hex() in a
procedural rather than OO way,
www.php.net/virtual
---John Holmes...
- Original Message -
From: Brad Wright [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:00 AM
Subject: [PHP] php and Perl
Hi all,
can php call perl scripts?
I know nothing of perl, but have found a perl
I'm not sure why you would want to encrypt a hash of a string, a hash
(sha1) is already non reversible and you also do not need to
base64_encode a sha1 hash (try ?php print sha1('hello'); ?)..
If you want to do RSA public key encryption you will need to use an
external application such as gpg
Hi,
Can someone point me to a php and Excel tutorial?
tnx.
On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown
Sender) wrote:
I have an apache question and I have NO idea where to post it. Is there
a newsgroup or mailing list simply for apache?
I have multipal domain names: domain.net domain.org. I would like to
configure apache such that
Hallo,
i have problem with running PHP4.3.1 on Apache1.3.19 on W2K.
I instaled everithng by install.txt. Is posible to load easy php pages but
when i want to Recieve data from form it does not wrok.
Please help me
Best regards Honza Navratil
--
PHP General Mailing List
See,
that encoding method was not produced by me, it was request from bank
to do such crazy encryption to use their gateway.
That told exactly: first to SHA-1, then RSA (with results of SHA-1)
and after all encode it with base64 :(
Could you help me with this ?
27 2003 ., 15:42:40:
JS I'm
Rather than redirecting to a seperate HTML file you can also use the PHP
Header command, something like:
?php
if (strstr($_SERVER['HTTP_HOST'], 'domain.org')) {
header('Location: http://www.domain.net');
exit;
}
?
Dan wrote:
On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED]
On Sun, 11 Jan 2004 16:32:36 +0330, [EMAIL PROTECTED] (Sadeq Naqashzade)
wrote:
Hi every one,
I want to create thumbnail of a photo stored in MySQL table online.
Best Wishes,
S. Naqashzade
http://www.php.net/manual/en/ref.image.php
--
PHP General Mailing List (http://www.php.net/)
To
On Mon, 24 Mar 2003 18:51:47 +0800, Jason Wong wrote about Re: [PHP] PHP
Send Mail Main headers. what the universal translator turned into this:
On Monday 24 March 2003 18:35, Don Read wrote:
On 24-Mar-2003 Philip J. Newman wrote:
$headers .= MIME-Version: 1.0\r\n;
$headers .= Content-type:
Hi,
No - phpads is a bunch of PHP scripts. So if you have any problems with
spawned processes then it's your webserver acting up.
Regards
--
Lasse Laursen [EMAIL PROTECTED] - Systems Developer
NetGroup A/S, St. Kongensgade 40H, DK-1264 København K, Denmark
Phone: +45 3370 1526 - Fax: +45 3313
Hello
i'd like to split Benutzer_CRA.php
to get CRA but sometimes the files are called
Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA
how cann i tell preg_split to split the string at the
first occurence of _ and before .php
BR/Torsten
--
PHP General Mailing List
Brad --
...and then Brad Wright said...
%
% Hi all,
Hi!
%
% can php call perl scripts?
Yep. It can call anything, right? So just call it like ls or du or any
other program.
%
% I know nothing of perl, but have found a perl script that will process a
% MSword document in a way that it
thanx to all those who replied to my previous question.
1 more question.i need help with reqular expressions.i want to check valid
(email)
usernanes for my mail server .i.e. Qmail. any help welcome.
thanx in advance
Haseeb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Veniamin --
...and then Veniamin Goldin said...
%
% Hi all,
Hi!
%
% I need some help,
%
% I have a request to encode string with SHA-1, then with RSA and at the
% end with base64,
How odd :-)
%
% There no problems with SHA-1 and base64, but i can't find any
% functions to encode using
Torsten,
You could use explode on the file name and then only read in the
sections that you want:
$FileName = Benutzer_OVE_CRA.php;
$Part1 = explode(_, $FileName_);
$TotalPart1 = count($Part1);
$Wanted_File_Pieces = array();
// C = 2 so that it will skip the Benutzer part of the filename and
someone has asked the same question today about validating email, do a
search i'll find the reply.
- Original Message -
From: Haseeb Iqbal [EMAIL PROTECTED]
To: PHP General list [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:02 AM
Subject: [PHP] last questions
thanx to all those who
Haseeb,
Here is a great tutorial regular expression.
http://www.phpbuilder.com/columns/dario19990616.php3
Jonathan Pitcher
On Thursday, March 27, 2003, at 10:02 PM, Haseeb Iqbal wrote:
thanx to all those who replied to my previous question.
1 more question.i need help with reqular
Jim wrote:
Hi!
Could someboy please help me with this simple task (at least I though it
would be simple):
I need to split a string with two dates in into two datestrings, and there
might be whatever between the dates, e.g.
$datestring = 010101a020202, or $dateting =
Haseeb --
...and then Haseeb Iqbal said...
%
% thanx to all those who replied to my previous question.
Happy to help!
% 1 more question.i need help with reqular expressions.i want to check valid
% (email)
% usernanes for my mail server .i.e. Qmail. any help welcome.
It's come up before, so
i'd like to split Benutzer_CRA.php
to get CRA but sometimes the files are called
Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA
how cann i tell preg_split to split the string at the
first occurence of _ and before .php
preg_match(/_(.*)\.php/,$str,$matches);
$matches[1]
Torsten Rosenberger wrote:
Hello
I have some trouble with user permission.
I build the system like the permission in the phplib.
admin = 1
news= 2
news_create = 4
news_delete = 8
..
..
..
then ich can check ($user_perm $perm == $perm )
But the problem ist that
Dan Rossi wrote:
hi guys i have been trying to work out the best way to trigger exception
style error handling within a class and return it ,i am currently storing
the error code into a session variable, exiting, and doing a header location
to the previous page where i was submitting from and
On Thursday 27 March 2003 07:25, Dan wrote:
On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown
Sender) wrote:
I have an apache question and I have NO idea where to post it. Is there
a newsgroup or mailing list simply for apache?
I have multipal domain names: domain.net
Tim Burden wrote:
Just using the readonly flag in the input tag is the easiest method, I
think.
- Original Message -
From: Reuben D. Budiardja [EMAIL PROTECTED]
Newsgroups: php.general
To: CPT John W. Holmes [EMAIL PROTECTED]; shaun
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent:
I have a text file file ready to go into a Filemaker database. It has over
5000 rows, each containing over 500 columns.
If I do a straight import I can only pull in the first 442 colums, but all
records. I can't take it in via Excel for the same reason - column limit
stops at 'IV' - never got
On Wednesday 26 March 2003 23:01, -{ Rene Brehmer }- wrote:
CRLF is not an overkill. That is the specs. Some MTAs (sendmail in
particular) will treat a single LF (\n) as a line termination as thus you
can get away with it.
On unix machines you can do with just a linefeed, on CPM/DOS-based
I have a customer that wants to return a 403 Forbidden header/page when
certain conditions are met. I looked through the online manual and all
the examples listed would not work.
This is what I am using.
header(Location: HTTP/1.0 403);
PHP tried to send the user to a HTTP/1.0 403 webpage.
Philip,
I'm on Windoze. So are you suggesting that I should read the line in,
explode into an array, pop those fields that I don't want/need and then
implode the array back into a string before fwrite?
George
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]
Sent:
I have a text file file ready to go into a Filemaker database. It has over
5000 rows, each containing over 500 columns.
If I do a straight import I can only pull in the first 442 colums, but all
records. I can't take it in via Excel for the same reason - column limit
stops at 'IV' - never
Jerry [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi All,
I have a CGI application written in Delphi web services and I want to port
it to the Linux environment. I was going to use Kylix but I'm concerned
that
Borland isn't keeping up with the fast paced Linux development (ie
could you just write a simple awk script to read each line and write out
only the columns you wish to keep?
- Original Message -
From: CPT John W. Holmes [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:50 AM
Subject: Re: [PHP]
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to Return 403 Forbidden headers
header('HTTP/1.0 403 Forbidden');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Philip J. Newman wrote:
How would i check that an e-mail has the right parts in it. for example.
username @ domain . ext
Thanks
/ Jim Bob
Many people just check it like this:
if (strpos($emailVar), '@') 0) {
echo 'Email is validated';
} else {
echo 'Please supply a correct email
Thanks, but it returns a blank page.
Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to Return 403 Forbidden headers
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:59 AM
To: Matt Schroebel; [EMAIL PROTECTED]
Subject: RE: [PHP] How to Return 403 Forbidden headers
Thanks, but it returns a blank page.
Works for me in I.E 6.
?php
Rick,
use explode to insert the array in the symbole table, then every get / post
(depend wich you explode) variable is available.
Alex
John W. Holmes [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Okay, true. But they key here is the act accordingly, meaning you
sanitize and
Hi,
I am trying to set up a system whereby users can send data, in a
pre-determined format, to a specified email address. I would then like to
import the contents within each email into a database.
The trouble I'm having is not knowing really where to start. Could any kind
sole point me in the
For sure, has to be sent before any text and has to be part of a PHP script!
Alex
Matt Schroebel [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:59 AM
To: Matt
Alexis,
if the users data are informations about the user you can use this:
if you ar talking about files should use data upload instead.
you can start with the database. I dont know how many adresses and what more
you want to have in the DB.
1. create the DB (eg. mySQL),
2. design a FORM where
Hello,
I'd like to sell an application to 24$ US and I have to protect my
source code.
But I don't want to make my customer install anything on the server to
be able to run my application.
So the Zend encoder seems good for me:
http://www.zend.com/store/products/zend-encoder.php
Or, make it
Your going to have to look at your MTA for the answer to this. Basically
you need to tell you MTA to invoke a PHP script when it receives an email
for this specific address instead of normal delivery.
James Hicks
-Original Message-
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]
Sent:
On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote:
The only trouble is the price (960$), it's a little expensive for the
student I am :-/
Does anyone know any other less expensive way to protect my source code ?
http://www.ioncube.com/
They have a web based version that you do on a per file
What browser are you using...
IE has its own 404 pages that it displays when it gets those types of
headers.
--
Ray
On Thu, 2003-03-27 at 08:58, Christopher Ditty wrote:
Thanks, but it returns a blank page.
Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM
-Original Message-
-Original Message-
From: Christopher Ditty [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 11:15 AM
To: Matt Schroebel
Subject: RE: [PHP] How to Return 403 Forbidden headers
Try it in Netscape 7 if you have it.
6.5 showed blank, and if you add html it shows up.
Almost.
It's not the Location Header you want to play with.
header(HTTP/1.0 403 Forbidden);
will do the job.
Serge.
On Thu, 27 Mar 2003 09:41:57 -0600
Christopher Ditty [EMAIL PROTECTED] wrote:
I have a customer that wants to return a 403 Forbidden header/page when
certain conditions are
This this point the only thing you have done is overridden the status code.
You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page
or a location. It's a result code. You could then do something as simple as:
print You are forbidden to view this page;
Serge.
Hi,
I am using PHP version 4.3.0, Apache 2.0.44 on Windows XP. I am new to
Sessions and need your help with the problem below...
I've done this simple session test:
on session1.php:
?
session_start();
session_register(sess_var);
$sess_var = Hello World!;
echo The content of \$sess_var is
John Wards wrote:
On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote:
The only trouble is the price (960$), it's a little expensive for the
student I am :-/
Does anyone know any other less expensive way to protect my source code ?
http://www.ioncube.com/
They have a web based version that you
It's much easier and works better to use:
?php
session_start();
$_SESSION['sess_var'] = Hello World!;
//then you can echo
echo The content of \$_SESSION['sess_var'] is . $_SESSION['sess_var']
. br;
?
a href=session2.phpNext Page/a
?
That will set everything and echo correctly... this also makes
You don't have to, if you put a folder called ioncube
with the webfiles, if it detects the extension isn't
loaded, it will do it automatically, on the fly, with
no php.ini editing.
On Thu, 2003-03-27 at 15:05, Vincent M. wrote:
John Wards wrote:
On Thursday 27 Mar 2003 7:31 pm, Vincent
We're sending out emails using mail() and sending it in HTML format and
while most people get it correctly a couple are not. They get the anti-abuse
headers and then the HTML code appears as just that - HTML code in the body
of the email.
Sending those same people an HTML email composed in
Hi all,
If you're having trouble with PHP includes and directories, are on a
shared server, etc. this function is totally cool:
ini_set(include_path,.:/your/dir/to/whatever:/another/dir/to/whatever);
make sure you put the '.:' at the begginning and seperate with a ':'.
I'm using it and it works
Hello,
I'm not sure this can be done with PHP, but I'm looking for any ideas!
I have a frames page. The top refreshes every 5 seconds, checking for if a
file exists. If that file exists, it is supposed to change the bottom
frame to another site. Basically like using an a href
You can't do that in PHP... just use JavaScript... do a google for it.
-Michael
On Thu, 2003-03-27 at 08:35, Bryan Koschmann - GKT wrote:
Hello,
I'm not sure this can be done with PHP, but I'm looking for any ideas!
I have a frames page. The top refreshes every 5 seconds, checking for if a
Hello,
Using PHP 4.3.1 on a Windows 2k/Apache,
i am trying to insert some text likeTest é à ë into a
MS SQL database.
The result I get using the query analyzer :
Test Ú Þ Ù
is not the same as you can see for yourself.
However; ms sql supports those characters when
i insert them directly
Kalin Mintchev wrote:
here is a real example:
$fp = fopen (http://store.el.net/index.html;, r);
while (!feof($fp)) {
echo fgets ($fp,4096);
}
this works fine...
if you try it with https you'll get an error - file not found from php
I've just tried with https and it works fine. Are you
Can you folks help me out b y looking at this code?
It all of a sudden is not grabbing the email address from the DB, yet
array_count_values displays it nicely.
$sql_c = SELECT * FROM customers WHERE customers_id = '$customer_id';;//gather
customer info from DB
$result_c = mysql_query($sql_c);
Can you folks help me out b y looking at this code?
It all of a sudden is not grabbing the email address from the DB, yet
array_count_values displays it nicely.
$sql_c = SELECT * FROM customers WHERE customers_id = '$customer_id';;//gather
customer info from DB
$result_c = mysql_query($sql_c);
On 27 Mar 2003, Mike wrote:
|You can't do that in PHP... just use JavaScript... do a google for it.
|
|-Michael
Didn't think so. I've been google-ing and can't find what I need, so I
thought I'd try a longshot.
Thanks,
Bryan
--
PHP General Mailing List (http://www.php.net/)
To
I have a slight problem. Is there anyway to make a text file with a return character
that doesn't show up in windows notepad as a gibberish character and actually puts a
return in it? Right now I'm using the \n for the return but it doesn't get read in
notepad as a return so the string data
Hello,
Is there a command in php that would logg the ip address of the user viewing
the php file.
I need someway of finding out who posted the form.
thanx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If you use \r\n instead of \n notepad should be fine. Winblows uses CRLF for
everything...
On Thursday 27 March 2003 10:07 am, Jay Paulson wrote:
I have a slight problem. Is there anyway to make a text file with a return
character that doesn't
A world writeable directory is a security risk. Why not just fix the
owner/group and only give the permissions needed, 775 at most.
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 1:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Uploading Files
$HTTP_X_FORWARDED_FOR
phpinfo();
Check that its in your PHP Info.
$REMOTE_ADDR will return the Remote Address.
I use This small loop.
if (!$HTTP_X_FORWARDED_FOR) {
$HTTP_X_FORWARDED_FOR=$REMOTE_ADDR;
}
/ Phil
- Original Message -
From: Joakim Larsson [EMAIL PROTECTED]
To: [EMAIL
You could chnage the permissions when you want to write something then
change it back when your done. Thats what i do.
/ Phil
- Original Message -
From: Jennifer Goodie [EMAIL PROTECTED]
To: Dan Rossi [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 6:17 AM
Subject: RE:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You might wanna move ipaddr.log outside your server root... or at least use
some .htaccess... wouldn't want someone to just browse to the file...
$fp = fopen(ipaddr.log, a+);
fputs($fp, $_SERVER['REMOTE_ADDR'].\n);
fclose($fp);
On Thursday 27
Or you could just do it correctly the first time and be done with it. :)
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:23 AM
To: Jennifer Goodie; Dan Rossi; [EMAIL PROTECTED]
Subject: Re: [PHP] Uploading Files Via PHP
You could
This is me again.
I even tried downgrading PHP to 4.1.1, but still
when i try to insert some characters like é, ë, è
i get Test Ú Þ Ù as a result...
help would be very welcome!
thanks a lot !
Filip De Graeve [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Hello,
Using PHP 4.3.1
-Original Message-
From: Richard Whitney [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: Anew set of eyes
Can you folks help me out b y looking at this code?
It all of a sudden is not grabbing the email address from
1 - 100 of 203 matches
Mail list logo