Re: [PHP] Background Image

2007-08-28 Thread Per Jessen
Jeff wrote: > What would be the appropriate way to display this code so the image > would not scroll, resize to the users current screen resolutions and > just the page content would scroll? This list is about PHP, and probably not the best place to ask that question, but you need to look at CSS

[PHP] Re: Problems with matrix

2007-08-28 Thread Felipe Alcacibar
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. $myear[]=$year; $mhour[]=$hour; $mmin[]=$min; $mt

Re: [PHP] Database includes

2007-08-28 Thread Chris
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

Re: [PHP] Database includes

2007-08-28 Thread brian
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

Re: [PHP] Database includes

2007-08-28 Thread Larry Garfield
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

[PHP] Re: Background Image

2007-08-28 Thread Al
You are in the wrong newsgroup. Try the HTML newsgroup Jeff wrote: 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,

Re: [PHP] Adding text before last paragraph

2007-08-28 Thread Dotan Cohen
On 28/08/07, Brian Rue <[EMAIL PROTECTED]> wrote: > Sure, I'll break it apart a little: Er, wow, thanks. Lots of material here... > '{(?=|\s)(?!.*|\s)))}is' > > $regex = '{' . // opening delimeter > '(?=' . // positive lookahead: match the beginning of a position >

[PHP] Background Image

2007-08-28 Thread Jeff
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 users current screen resolutions and just the page content would scroll? TYIA! -- PHP

[PHP] Re: Disadvantages of output buffering

2007-08-28 Thread Felipe Alcacibar
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 Edehol

Re: [PHP] Building Web Site with Member Area in PHP (and MySQL) - Howto

2007-08-28 Thread Greg Donald
On 8/28/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Google is your friend > http://www.google.com/search?hl=en&q=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 (

RE: [PHP] Building Web Site with Member Area in PHP (and MySQL) - Howto

2007-08-28 Thread Jay Blanchard
[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=en&q=PHP+MySQL+login -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Building Web Site with Member Area in PHP (and MySQL) - Howto

2007-08-28 Thread Stephen
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

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread Jim Lucas
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

Re: [PHP] Regular expression - URL validator

2007-08-28 Thread Jim Lucas
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 o

Re: [PHP] Regular expression - URL validator

2007-08-28 Thread shiplu
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

RE: [PHP] Regular expression - URL validator

2007-08-28 Thread Wagner Garcia Campagner
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 p

Re: [PHP] why?

2007-08-28 Thread shiplu
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 me

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread shiplu
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 upd

Re: [PHP] why?

2007-08-28 Thread mike
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 c

RE: [PHP] c++ and php! search for a brigde

2007-08-28 Thread Gevorg Harutyunyan
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 n

Re: [PHP] why?

2007-08-28 Thread Stut
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 th

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[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 server.

Re: [PHP] why?

2007-08-28 Thread mike
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

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread David Giragosian
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 w

Re: [PHP] c++ and php! search for a brigde

2007-08-28 Thread Simon
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 re

Re: [PHP] Database includes

2007-08-28 Thread brian
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 da

[PHP] sybase installation error

2007-08-28 Thread Melanie Pfefer
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 return

[PHP] c++ and php! search for a brigde

2007-08-28 Thread dwa
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 th

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
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] >

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Stut
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 -- http://stut.

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
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."' L

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
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

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[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.

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
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($res

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
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");

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
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

Re: [PHP] xml reader/writer

2007-08-28 Thread Per Jessen
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 ext