php-general Digest 28 Aug 2007 23:25:58 - Issue 4987
Topics (messages 261403 through 261430):
Re: Trying to understand sessions and using them to authenticate...
261403 by: Jason Pruim
261404 by: Jason Pruim
261405 by: Daniel Brown
261407 by: Daniel Brown
Hi!
Thnank you for your input, but I used AUTH_USER-server variable instead of
PHP_AUTH_USER and that did the trick! :-)
Best regards
/Gustav W iberg
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Stut [EMAIL PROTECTED]
Cc: Gustav Wiberg [EMAIL PROTECTED]; PHP
Sam Baker wrote:
I'm looking for a php script that will read any xml file, display the
contents in html, with the option of adding an entry (in the same
scheme, whatever that might be) or deleting existing entries.
I think I could write this, but it would take a while.
Use the XSLT
On Aug 24, 2007, at 12:15 PM, Daniel Brown wrote:
On 8/24/07, Jason Pruim [EMAIL PROTECTED] wrote:
Hi Everyone,
I'm attempting to figure out the proper way to use sessions to log
someone into my system. The idea being, if they arn't logged in all
they can see is the login form, and if they
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
[snip]
$sql = SELECT * FROM users WHERE user='.$user.' AND
pass='.$pass.' LIMIT 0,1;;
$result = mysql_query($sql) or
[snip]
Yes, a single sign-on it is... It doesn't work together with Windows
(and
PHP) you mean?
[/snip]
No, not really.
You can run PHP on a Linux or a Windows server and it does not have
access to the initial login values (press cntl alt del to login)
although ASP and .Net (auth_user, etc) do.
On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
[snip]
$sql = SELECT * FROM users WHERE user='.$user.' AND
pass='.$pass.' LIMIT 0,1;;
$result = mysql_query($sql) or die(Wrong data supplied or
database error);
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
[snip]
$sql = SELECT * FROM users WHERE user='.$user.' AND
pass='.$pass.' LIMIT 0,1;;
$result = mysql_query($sql) or die(Wrong data supplied or
database error);
while($row = mysql_fetch_array($result)) {
Sounds
On Aug 28, 2007, at 10:21 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
[snip]
$sql = SELECT * FROM users WHERE user='.$user.' AND
pass='.$pass.' LIMIT
Jason Pruim wrote:
One other question, to logout, can I just call a file that has
session_destroy() and a header(Location: ???); in it? Or should I do
something else for logging out?
foreach (array_keys($_SESSION) as $key)
unset($_SESSION[$key];
session_destroy();
-Stut
--
Hello people,
i have a question??
I have an application written in c++ and this throw real time data as
udp-pakets all the time (interval 1 min and values in a wrapper like an
own protocol are floats and longs).
Is there any possibility to catch the udp packets - parse the pakets und
show
Larry Garfield wrote:
On Sunday 26 August 2007, Bruce Cowin wrote:
I'm curious as to how everyone organises and includes their classes in
PHP5.
Then have a config file of some sort in which you specify your DB credentials.
There's a variety of ways to do that (ini file, a PHP file with a
hi,
I am getting an error when I issue 'make' command:
../configure --with-apxs2=/usr/local/apache/bin/apxs
--with-sybase-ct=/opt/sybase/OCS-12_5
it finishes with:
ld: fatal: library -lsybtcl: not found
ld: fatal: File processing errors. No output written
to .libs/libphp5.so
collect2: ld
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
On Aug 28, 2007, at 10:21 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote:
On 8/28/07, Jason Pruim [EMAIL PROTECTED] wrote:
[snip]
$sql = SELECT *
you can use sockets in php, they work the same as berkley sockets
you can use system() in php, to call your C++ program (the program
could output html)
in my opinon CGI with C/C++ is obsolete, use php/apache for best results!
another nice way is to have your C++ program independent, outputs its
On 8/28/07, Simon [EMAIL PROTECTED] wrote:
you can use sockets in php, they work the same as berkley sockets
you can use system() in php, to call your C++ program (the program
could output html)
in my opinon CGI with C/C++ is obsolete, use php/apache for best results!
another nice way is to
On 8/28/07, Jay Blanchard [EMAIL PROTECTED] wrote:
Since PHP cannot read registry settings (neither can JavaScript) on the
client that is out. Windows is aware of the logged in user, but exactly
where that 'session' information is kept is a mystery to most of us. So
PHP cannot be aware of a
[snip]
i know there is an apache NTLM(1) module for this. i don't believe it
requires anything other than a connection to a domain authentication
server and the ability to send headers and read the reply
(challenge/response) - i don't think the registry is needed at all on
the client or the
Jay Blanchard wrote:
[snip]
i know there is an apache NTLM(1) module for this. i don't believe it
requires anything other than a connection to a domain authentication
server and the ability to send headers and read the reply
(challenge/response) - i don't think the registry is needed at all on
Barev David,
I think this is solution
1. C/C++ updates database (MySQL or other)
2. There is some PHP file that is viewing your DB info(printing static info)
3. There is other PHP file that is using AJAX for interactive update of
information (This one is sending request to first PHP file and if
On 8/28/07, Stut [EMAIL PROTECTED] wrote:
In addition the OP is running IIS so this is all kinda less than helpful
to him.
yeah, i didn't say this would, but it should be able to be ported to a
PHP module by someone i would think. i mean if someone can do it in
Perl or C (especially C) why
On 8/28/07, Gevorg Harutyunyan [EMAIL PROTECTED] wrote:
Barev David,
I think this is solution
1. C/C++ updates database (MySQL or other)
2. There is some PHP file that is viewing your DB info(printing static
info)
3. There is other PHP file that is using AJAX for interactive update of
On 8/28/07, mike [EMAIL PROTECTED] wrote:
On 8/28/07, Stut [EMAIL PROTECTED] wrote:
In addition the OP is running IIS so this is all kinda less than helpful
to him.
yeah, i didn't say this would, but it should be able to be ported to a
PHP module by someone i would think. i mean if
Thanks Jim,
Your sugestion worked perfect for me!!
I have another question:
After i validate this URL i want to put a link with this URL in my page.
The problem is that if the URL is like (www.aol.com), when i create the
link, this URL is appended with the URL of my site. The result is a link
On 8/28/07, Wagner Garcia Campagner [EMAIL PROTECTED] wrote:
Thanks Jim,
Your sugestion worked perfect for me!!
I have another question:
After i validate this URL i want to put a link with this URL in my page.
The problem is that if the URL is like (www.aol.com), when i create the
link,
Wagner Garcia Campagner wrote:
Thanks Jim,
Your sugestion worked perfect for me!!
I have another question:
After i validate this URL i want to put a link with this URL in my page.
The problem is that if the URL is like (www.aol.com), when i create the
link, this URL is appended with the URL
dwa wrote:
Hello people,
i have a question??
I have an application written in c++ and this throw real time data as
udp-pakets all the time (interval 1 min and values in a wrapper like an
own protocol are floats and longs).
Is there any possibility to catch the udp packets - parse the pakets
Can anyone recommend resources that I can use to learn
about doing this?
Are then any open source scripts that demonstrate this
kind of site?
Thanks
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Can anyone recommend resources that I can use to learn
about doing this?
Are then any open source scripts that demonstrate this
kind of site?
[/snip]
Google is your friend
http://www.google.com/search?hl=enq=PHP+MySQL+login
--
PHP General Mailing List (http://www.php.net/)
To
On 8/28/07, Jay Blanchard [EMAIL PROTECTED] wrote:
Google is your friend
http://www.google.com/search?hl=enq=PHP+MySQL+login
Everyone knows that already, even Google.
http://www.google.com/search?q=google+is+your+friend
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List
Emil Edeholt wrote:
Hi!
My php project would get a much cleaner code if I could set cookies
anywhere in the code. So I thought of output buffering. But I can't find
any articles on the cons of output buffering. I mean it most be a reason
for it being off by default?
Kind Regards Emil
body background=../images/bkgrnds/shot04.JPG link=#00FF00
vlink=#00 alink=#00
is how I am displaying my background image. This is creating problems for
different screen resolutions.
What would be the appropriate way to display this code so the image would
not scroll, resize to the
On 28/08/07, Brian Rue [EMAIL PROTECTED] wrote:
Sure, I'll break it apart a little:
Er, wow, thanks. Lots of material here...
'{(?=p(?:|\s)(?!.*p(?:|\s)))}is'
$regex = '{' . // opening delimeter
'(?=' . // positive lookahead: match the beginning of a position
You are in the wrong newsgroup. Try the HTML newsgroup
Jeff wrote:
body background=../images/bkgrnds/shot04.JPG link=#00FF00
vlink=#00 alink=#00
is how I am displaying my background image. This is creating problems for
different screen resolutions.
What would be the appropriate
On Tuesday 28 August 2007, brian wrote:
If you have to modify anything other than a single config file in order
to move your site/app from one server to another, then you have a design
flaw. (I'd say that applies for moving the site to a subdirectory on a
server too, but that takes a bit
Larry Garfield wrote:
On Tuesday 28 August 2007, brian wrote:
If you have to modify anything other than a single config file in order
to move your site/app from one server to another, then you have a design
flaw. (I'd say that applies for moving the site to a subdirectory on a
server too, but
brian wrote:
Larry Garfield wrote:
On Tuesday 28 August 2007, brian wrote:
If you have to modify anything other than a single config file in order
to move your site/app from one server to another, then you have a
design
flaw. (I'd say that applies for moving the site to a subdirectory on a
Andres Rojas wrote:
Hi all,
I'm new in PHP programming and I have a problem with this script. I need
to read a large file around 2Mb and several lines (28000). All start Ok,
but suddenly the script stop without message error.
?php
$fichero=62007lg.txt;
$buffer = file($fichero);
38 matches
Mail list logo