Re: [PHP] PHP Hosting

2004-07-08 Thread Louie Miranda
check out http://www.webhostingtalk.com On Fri, 9 Jul 2004 06:34:00 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Ed Lazor: > > > > Hey, does anyone have experience hosting PHP / MySQL apps on EV1servers.net, > > ServerBeach.net, or CIhost.com? I'm looking for value, reliabilit

RE: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Warren Vail
I have a suggestion that would allow you to take charge of what is going on with your sessions. Install your own session handler routines, storing your own session data in your own database table. These functions would need to be loaded on each page before you execute the session_start() function

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Curt Zirzow
* Thus wrote My Self: > > or using the default handler, and the /tmp dir is full. where /tmp being the local value for your session.save_path ini setting. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Curt Zirzow
* Thus wrote Jason Barnett: > >On garbage collection, it happens sometimes within seconds and sometimes > >within minutes. It tends to occur in batches with lulls of 20 to 30 > >minutes. So, for example, I can login, navigate through 11 different pages > >to generate the problem, navigate 2 pages

[PHP] Re: php mls and realtor.com

2004-07-08 Thread Jason Barnett
Edward Peloke wrote: I have a site where the user currently enters their data into a local db, then goes to another site and enters it for the state mls, then uses realtor.com to enter it for that mls, they want one form where they can enter the date and have it go to all three. Has anyone worked

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Jason Barnett
On garbage collection, it happens sometimes within seconds and sometimes within minutes. It tends to occur in batches with lulls of 20 to 30 minutes. So, for example, I can login, navigate through 11 different pages to generate the problem, navigate 2 pages to generate the problem, and then not s

Re: [PHP] PHP Hosting

2004-07-08 Thread Curt Zirzow
* Thus wrote Ed Lazor: > Hey, does anyone have experience hosting PHP / MySQL apps on EV1servers.net, > ServerBeach.net, or CIhost.com? I'm looking for value, reliability, and > quality support. Any other recommendations are also greatly appreciated. Out of 1000's of solutions I'd probably sugge

Re: [PHP] fopen with login credentials being an email address

2004-07-08 Thread Curt Zirzow
* Thus wrote Gunter Sammet: > Hi all: > Tried to use fopen like this: > > fopen([EMAIL PROTECTED]:[EMAIL PROTECTED]); I hope you have some sort of quotes around that. > > Didn't work and I couldn't find anything out on the search engines. You simply cant have @ or : in the username, it violate

RE: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Ed Lazor
Thanks Jason, I'll keep the information handy for creating my own session handler in case other options I'm exploring right now don't work. On garbage collection, it happens sometimes within seconds and sometimes within minutes. It tends to occur in batches with lulls of 20 to 30 minutes. So, fo

Re: [PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread Jason Barnett
I populated the guest's name statically so I can see how the loop works. The looping is wrong and it only yields 7 rows. In the first row it has 1 column of data, the second row has two columns of data, the third one has three columns of data, and so on. How do I fix it to where each date column h

[PHP] PHP Hosting

2004-07-08 Thread Ed Lazor
Hey, does anyone have experience hosting PHP / MySQL apps on EV1servers.net, ServerBeach.net, or CIhost.com? I'm looking for value, reliability, and quality support. Any other recommendations are also greatly appreciated. -Ed

[PHP] Re: PHP Sessions Question

2004-07-08 Thread Jason Barnett
Ed Lazor wrote: What kind of problems could be happening server-side that would result in PHP sessions randomly disappearing? And, is there a way to log or track this information? Oh, and best of all, any recommendations on solutions? To try logging this, you probably need to make your own sessio

[PHP] fopen with login credentials being an email address

2004-07-08 Thread Gunter Sammet
Hi all: Tried to use fopen like this: fopen([EMAIL PROTECTED]:[EMAIL PROTECTED]); Didn't work and I couldn't find anything out on the search engines. Any suggestions how to get this working? TIA Gunter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Re: Worried about PECL

2004-07-08 Thread Lars Torben Wilson
Peter Clarke wrote: Currently the online manual for php is great. My concern is that the documentation for PECL extensions is almost non-existent. Since some php extensions are being moved/replaced by PECL extensions are we going to get non-existent documentation? Hi there, You might want to get

Re: [PHP] onchange drop down list and text field

2004-07-08 Thread Dennis Seavers
I'm not sure, but I think he meant he wanted both (1) a list based on elements in a database and (2) a element where the client would enter something that does not appear in the list. If so, you could use a script that uses the records in your database and has a final for "Other". For instanc

Re: [PHP] PHP Sessions Question

2004-07-08 Thread Tim Traver
It could be a case that your provider is load balancing across several machines. If they are, and they aren't storing the session data in a central location, then that might account for the issue. That would explain the intermittent failure. The user might be making keepalive requests to the sa

[PHP] PHP Sessions Question

2004-07-08 Thread Ed Lazor
What kind of problems could be happening server-side that would result in PHP sessions randomly disappearing? And, is there a way to log or track this information? Oh, and best of all, any recommendations on solutions? I have a PHP / MySQL application that's been running at a host provider fo

Re: [PHP] onchange drop down list and text field

2004-07-08 Thread Jason Wong
On Friday 09 July 2004 10:41, Curlys wrote: > I would like to ask another help from u all , > I have an data submitable form . There is some fields. It is connected with > mysql database. so I want to put to these fields as drop down list as well > as text input area. say , if when i adding data

[PHP] onchange drop down list and text field

2004-07-08 Thread Curlys
hi , I would like to ask another help from u all , I have an data submitable form . There is some fields. It is connected with mysql database. so I want to put to these fields as drop down list as well as text input area. say , if when i adding data , if it is in the database there should be

Re: [PHP] Emulating sprintf???

2004-07-08 Thread Michal Migurski
> Im trying to do something like sprintf() because I would like to have > control over placeholders. The code I've posted works for the most part, > but when I introduce content that has the same characters as my > placeholders (%s and %i), it breaks to hell... Anyone got any ideas on > how to fix,

RE: [PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread php-list
I wrote this in plain text. I hope it came out well... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 9:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Creating Rows and Columns Using for() Loops Chris, It's a little difficult to do in

RE: [PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread php-list
Chris, It's a little difficult to do in ascii, but here's an attempt. This is a simple hotel/motel log of who's staying in certain rooms. The 7 columns are the 7 days in the week and guest names fall under whichever date they checked in. So, let's see if I can give you a visual representation of t

[PHP] Emulating sprintf???

2004-07-08 Thread Gerard Samuel
Im trying to do something like sprintf() because I would like to have control over placeholders. The code I've posted works for the most part, but when I introduce content that has the same characters as my placeholders (%s and %i), it breaks to hell... Anyone got any ideas on how to fix, or tel

Re: [PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread barophobia
On Thu, 8 Jul 2004 18:17:25 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > for ($i = 0; $i < count($num_days); $i++) { [snip] > for ($j = 0; $j < 32; $j++) { [snip] > } [snip] > } > How do I fix it to where each date column has > exactly 32 rows of guest names? it looks like you n

[PHP] Re: fread error

2004-07-08 Thread Lars Torben Wilson
Don wrote: Hi, Using a a flat text file based calendar script. Started getting this error after upgrading PHP: Warning: fread(): Length parameter must be greater than 0 Function it is occurring in is: function read_str($fp) { $strlen = $this->bin2dec(fread($fp,4),4); return fread($fp, $str

[PHP] fread error

2004-07-08 Thread Don
Hi, Using a a flat text file based calendar script. Started getting this error after upgrading PHP: Warning: fread(): Length parameter must be greater than 0 Function it is occurring in is: function read_str($fp) { $strlen = $this->bin2dec(fread($fp,4),4); return fread($fp, $strlen);

[PHP] Creating Rows and Columns Using for() Loops

2004-07-08 Thread php-list
Hello Everyone, I have an HTML table with 7 columns and 32 rows, not including table headers and footers. I want to create a tabular data table that spans 7 columns and 32 rows. I get my info from MySQL and use for() loops to loop through two types of arrays. An array containing the dates (the col

[PHP] Re: Running php scripts stored in mysql

2004-07-08 Thread Rosen
Try with eval() function. "Martin Bálint" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > is this possible? > > I have a script stored in mysql database. For simplicity let's say: > > phpinfo(); > ?> > is stored in db. > > Is it somehow possible to include this script

RE: [PHP] Slideshow using PHP

2004-07-08 Thread Vail, Warren
There is a sample flash slideshow at this site, complete with Ming code, see if it's what you were looking for. http://www16.brinkster.com/gazb/ming/index.html Warren Vail -Original Message- From: David Bevan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:30 PM To: [EMAIL PR

Re: [PHP] Client IP

2004-07-08 Thread Rosen
I don't understand :) "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John W. Holmes wrote: > > Trust me. > > Riggtt. Like we're going to trust the likes of you. > I guess the cheque's in the mail too, eh? ;) > > -- > By-Tor.com > It's all abou

Re: [PHP] Client IP

2004-07-08 Thread Rosen
Ok - thie is enought for me - to see the adres of proxy server. :) "Tim Van Wassenhove" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, Rosen wrote: > >:) > > Ok - then how linux server communicate with client - the server must have IP > > adress to wh

[PHP] [help!] Apache won't start, 'cause... libpng.so.2: cannot open shared object file

2004-07-08 Thread dr.Freud \(Jacopo\)
Hello. I just installed PHP 4.3.7 with PNG, ZLIB and JPEG support. All (after some troubles) goes well. But, when I try to start apache I get the following error: Syntax error on line 261 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: libpng.so.2: cannot open

[PHP] Running php scripts stored in mysql

2004-07-08 Thread Martin Bálint
Hello, is this possible? I have a script stored in mysql database. For simplicity let's say: is stored in db. Is it somehow possible to include this script to a running php process for execution? Some analogy to include(file); but for a mysql stored script? Thanks Martin -- PHP General Mai

RE: [PHP] Slideshow using PHP

2004-07-08 Thread David Bevan
The only way I can think of to create a slide show with PHP, not that you would need to use the PHP engine at all would be to use a meta refresh in/on each page to move to the next slide and possibly provide the user with a button/link they could click on to advance the slides. Your other idea abou

Re: [PHP] Malicious SQL

2004-07-08 Thread John W. Holmes
Philip Olson wrote: on the contrary: sql = mysql_query("select * from users where name='".$name."'"); will simply look for a user with a name of "Jim; delete from users;" and return no results found. But I can also enter: jim'; delete from users You need to catch if there's a quote in the $name too

RE: [PHP] Re: Slideshow using PHP

2004-07-08 Thread Vail, Warren
Check out http://ming.sourceforge.net/ Ming is a C library for generating SWF ("Flash") format movies, plus a set of wrappers for using the library from C++ and popular scripting languages like PHP, Perl, Python, and Ruby. There is also a book out on PHP and multimedia that has a chapter or two d

Re: [PHP] Client IP

2004-07-08 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Rosen wrote: >:) > Ok - then how linux server communicate with client - the server must have IP > adress to whitch to send data. >> Rosen wrote: >> >> > IP adress not send ?!? And how server communicate with client ? For example people on a lan (with let's say

[PHP] Interactive Voice Response (IVR)

2004-07-08 Thread René Fournier
Hi, I am looking for an IVR system that would allow a person to call a number (via telephone), and then using the keypad to send commands that are processed by a PHP script which—after hitting a mySQL database a few times—responds with a value (success/failure) which then is played back to the

Re: [PHP] Malicious SQL

2004-07-08 Thread Matthew Sims
> In article <[EMAIL PROTECTED]>, > Philip Olson wrote: >> One thing to remember is mysql_query() will execute just one (the first) >> query so use of ; won't do anything in the above except break the >> query. > > If i'm not mistaken, newer versions of mysql do allow multiple queries. I've heard

Re: [PHP] Malicious SQL

2004-07-08 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Philip Olson wrote: > One thing to remember is mysql_query() will execute just one (the first) > query so use of ; won't do anything in the above except break the > query. If i'm not mistaken, newer versions of mysql do allow multiple queries. > (once) and put s

Re: [PHP] Socket Tutorial

2004-07-08 Thread René Fournier
Hi Andrew, This one helped me a lot: http://www.devshed.com/c/a/PHP/Socket-Programming-With-PHP/ This isn't a tutorial, but good sample code for a multi-client chat server: http://dave.dapond.com/socketselect.phps ...Rene On Monday, July 5, 2004, at 12:39 PM, Andrew wrote: Hi guys, Can somebody p

Re: [PHP] Re: Slideshow using PHP

2004-07-08 Thread Todd Cary
Matthew - <<< Part of getting the slideshow to work is making the browser switch to the next image and well, PHP doesn't really make the browser do anything. >>> As I was thinking about it before posting this thread, that was my impression. The problem with my javaScript app is the fact that it

RE: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Jay Blanchard
[snip] p.s. do you use backticks in all your qeuries? [/snip] It's just a good habit! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread barophobia
On Thu, 8 Jul 2004 13:14:50 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Do it with SQL > > SELECT DISTINCT(SUBSTRING(`productName`, 1, 1)) FROM `productTable` > > will give you only one of each of the starting letters that actually > occur in your database. good job. that works great. it's

[PHP] Authentification Help

2004-07-08 Thread Mike Tuller
I have created a script that authenticates to an Active Directory server. This script works when I try to login, but the problem is that I have to bind to be able to get "my" dn to be able to authenticate, but I need authenticate first to be able to get "my" dn. Chicken before the egg problem.

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Matt M.
> 1. pull a list of products from the database > 2. truncate each product id down to it's first letter > 3. remove all the duplicates > 4. use this list to build the links. I would let sql do some of the work. select count(*) from products where product_name like 'A%' if count does not return 0

RE: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Jay Blanchard
[snip] currently each letter is hyper linked but i'd like to only link the letters that have an occurrence in the database. in other words, if there are no products in the database that start with the letter 'Z' then i don't want it to have a hyper link. [/snip] Do it with SQL SELECT DISTINCT(SUB

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread deseavers
I doubt this function is going to make your script more efficient, but you could also make use of the array_intersect () function. -Original Message- From: barophobia <[EMAIL PROTECTED]> Sent: Jul 8, 2004 10:47 AM To: php-general <[EMAIL PROTECTED]> Subject: [PHP] Link only active letter

[PHP] Link only active letters in alphabetical search

2004-07-08 Thread barophobia
hello. in an effort to more easily find products in the cart i'm building i've given the ability to the user to click a letter from the alphabet to search for all products whose product id starts with that letter. currently each letter is hyper linked but i'd like to only link the letters that ha

Re: [PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread Julio Sergio Santana
Thank you Chris. I finally got the solution to my problem using the pack/unpack functions as you adviced me. The solution is: X-Powered-By: PHP/4.1.2 Content-type: text/html 4 ***A*** // This is "\0\0\0A" Chris wrote: Are you trying read the string '\0\0\0\0x41' from a file? or are you trying

Re: [PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread Julio Sergio Santana
I tried the following and it didn't work: X-Powered-By: PHP/4.1.2 Content-type: text/html ** It was supposed to output: ***65*** [EMAIL PROTECTED] wrote: http://us4.php.net/manual/en/function.base64-decode.php -Original Message- From: Julio Sergio Santana <[EMAIL PROTECTED]> Sent: Jul

Re: [PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread Chris
Are you trying read the string '\0\0\0\0x41' from a file? or are you trying to read these 4 bytes from a file: 0041 ? If the latter: The pack and unpack functions are designed to do this (and more). You could also manually do it yourself with something like this: $sBuff = "\0\0\0\0x41"; //

Re: [PHP] $_SERVER[HTTP_REFERER]

2004-07-08 Thread Justin Patrin
On Thu, 08 Jul 2004 11:49:24 +0200, Christophe Chisogne <[EMAIL PROTECTED]> wrote: > Shaun a écrit : > > after lots of investigation it appears that it is just my laptop that won't > > disply the variable, maybe because I am using Norton Firewall? > > Possible. The REFERER HTTP field is OPTIONAL >

Re: [PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread deseavers
http://us4.php.net/manual/en/function.base64-decode.php -Original Message- From: Julio Sergio Santana <[EMAIL PROTECTED]> Sent: Jul 8, 2004 9:44 AM To: [EMAIL PROTECTED] Subject: [PHP] How can I write/read encoded numbers into/from a file? I'm just starting with PHP, and I've been browsi

[PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread Julio Sergio Santana
I'm just starting with PHP, and I've been browsing the whole manual to find how to solve the following problem: 1. An integer number is internally represented in 4 bytes. Say, for instance, number 65 is represented by 0x0041, that is the string "\0\0\0\0x41", and not the string "65". 2. How

Re: [PHP] Malicious SQL

2004-07-08 Thread Philip Olson
> > on the contrary: > > sql = mysql_query("select * from users where name='".$name."'"); > > > > will simply look for a user with a name of "Jim; delete from users;" and > > return no results found. > > But I can also enter: > jim'; delete from users > > You need to catch if there's a quote in

Re: [PHP] Re: Slideshow using PHP

2004-07-08 Thread raditha dissanayake
The best way to do a slide show in my opinion is with SMIL, even though you need a plug in to view it.. SMIL is what's used in MMS. you can generate you SMIL with MMS - as we have done in our MMS composer. -- Raditha Dissanayake. - http://www.raditha.co

Re: [PHP] Re: Slideshow using PHP

2004-07-08 Thread Matthew Sims
> I do have a JavaScript based "SlideShow", however, I would like to use > PHP rather than JavaScript. Is there a way to "loop" with PHP and > "display" an image without re-displaying the whole page? > > Todd To get a good slideshow you'll need to use client side instructions, aka javascript. You

Re: [PHP] User Redirection if login fails

2004-07-08 Thread Matthew Sims
> Hi again. > > My code simply asks for a username and password but even if they insert > incorrect details the called page is displayed. > > How can I get them to be redirected to another page if their login > information is incorrect...? > > echo "registerd users login here please..."; > echo

Re: [PHP] call_user_func and call-time pass-by-reference

2004-07-08 Thread Andrew S. Nagy
Great, i must have done something wrong, it works for me now. Thanks for all your help :) Andrew Tom Rogers wrote: Hi, Thursday, July 8, 2004, 3:38:41 AM, you wrote: AN> Hmm ... this still echos 0 and not 1. I am using 4.3.7 with all AN> warnings on. AN> Does anyone know how to use this function

[PHP] Re: Common MySQL database function class

2004-07-08 Thread Torsten Roehr
"Keith Lawrence" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > > I'm a web-developer and I work with PHP as often as I can (it's infinitely > preferable to ASP) and as a result of this I end up coding in lots of > different environments. Our local dev server is a windows

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Afan Pasalic
Oh! :-) Thanks... John Nichel wrote: Afan Pasalic wrote: Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel July 6th? What are you talking about? Can you p

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
John Nichel wrote: Afan Pasalic wrote: Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel July 6th? What are you talking about? Can you please give me more

[PHP] php mls and realtor.com

2004-07-08 Thread Edward Peloke
I have a site where the user currently enters their data into a local db, then goes to another site and enters it for the state mls, then uses realtor.com to enter it for that mls, they want one form where they can enter the date and have it go to all three. Has anyone worked with interfacing with

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
Afan Pasalic wrote: July 6th? What are you talking about? Can you please give me more info about that? afan Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Da

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread John Nichel
Afan Pasalic wrote: Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel July 6th? What are you talking about? Can you please give me more info about that? a

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Afan Pasalic
July 6th? What are you talking about? Can you please give me more info about that? afan Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel -- PHP General

[PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
Harlequin wrote: I have a user registration form that asks new users to register. However, Do I post the MySQLconnection string in the page they are completing or in the later page that the data is posted to, or both...? You ought to tell your registration-page to redirect to itself right after th

Re: [PHP] User Redirection if login fails

2004-07-08 Thread John Nichel
Harlequin wrote: Hi again. My code simply asks for a username and password but even if they insert incorrect details the called page is displayed. How can I get them to be redirected to another page if their login information is incorrect...? How are you checking the result? From a db? If so, run

Re: [PHP] MySQL Database Connection Question

2004-07-08 Thread John Nichel
Harlequin wrote: I have a user registration form that asks new users to register. However, Do I post the MySQLconnection string in the page they are completing or in the later page that the data is posted to, or both...? Not sure I follow what you're asking, but you only need to open a connection

Re: [PHP] MySQL Database Connection Question

2004-07-08 Thread James E Hicks III
On Thursday 08 July 2004 09:59 am, Harlequin wrote: > I have a user registration form that asks new users to register. However, > Do I post the MySQLconnection string in the page they are completing or in > the later page that the data is posted to, or both...? I don't think I understand your ques

[PHP] User Redirection if login fails

2004-07-08 Thread Harlequin
Hi again. My code simply asks for a username and password but even if they insert incorrect details the called page is displayed. How can I get them to be redirected to another page if their login information is incorrect...? echo "registerd users login here please..."; echo ""; echo "User

[PHP] MySQL Database Connection Question

2004-07-08 Thread Harlequin
I have a user registration form that asks new users to register. However, Do I post the MySQLconnection string in the page they are completing or in the later page that the data is posted to, or both...? -- - Michael Mason Arras People www.arraspeople.co.uk

Re: [PHP] Malicious SQL

2004-07-08 Thread Reuben D. Budiardja
On Wednesday 07 July 2004 12:05, Keith Greene wrote: > on the contrary: > sql = mysql_query("select * from users where name='".$name."'"); > > will simply look for a user with a name of "Jim; delete from users;" and > return no results found. But I can also enter: jim'; delete from users You nee

[PHP] Re: Slideshow using PHP

2004-07-08 Thread Todd Cary
I do have a JavaScript based "SlideShow", however, I would like to use PHP rather than JavaScript. Is there a way to "loop" with PHP and "display" an image without re-displaying the whole page? Todd Alex Shi wrote: Search google for javascript slideshow script. Javascript slideshow need an arr

[PHP] Worried about PECL

2004-07-08 Thread Peter Clarke
Currently the online manual for php is great. My concern is that the documentation for PECL extensions is almost non-existent. Since some php extensions are being moved/replaced by PECL extensions are we going to get non-existent documentation? For example: www.php.net/mime-magic "This extension

Re[3]: [PHP] How to specify compiler options on Win32

2004-07-08 Thread Tom Rogers
Hi, Thursday, July 8, 2004, 7:38:49 PM, you wrote: RD> Hello Tom, RD> I have to admit I did look in there, but couldn't see anything RD> relating to it (or how to specify it). But if it doesn't work on RD> Windows anyway then I guess it's not much use! :) RD> Best regards, RD> Richard Davey RD>

[PHP] Common MySQL database function class

2004-07-08 Thread Keith Lawrence
Hi there, I'm a web-developer and I work with PHP as often as I can (it's infinitely preferable to ASP) and as a result of this I end up coding in lots of different environments. Our local dev server is a windows machine which acts differently to the multitude of *nix boxes which our clients run.

Re: [PHP] Client IP

2004-07-08 Thread John Nichel
John W. Holmes wrote: Trust me. Riggtt. Like we're going to trust the likes of you. I guess the cheque's in the mail too, eh? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Does anyone have PHP compiled with --enable-memory-limit?

2004-07-08 Thread Richard Davey
Hi all, Does anyone here have a version of PHP with --enable-memory-limit compiled into it and a couple of minutes to spare? All I need is for you to run a very simple script a couple of times and send me the output. If you've got a PayPal account I'll even throw a few dollars your way for the tro

[PHP] Re: post without

2004-07-08 Thread Manuel Lemos
Hello, On 07/07/2004 10:49 AM, Josh Close wrote: How can I post data without having it submitted from within a form? With get I can just add it to the url. Is there a php function for this? If you mean emulating POST form submission to a site of a given URL, you may want to try this HTTP client cl

[PHP] Re: sending attachments

2004-07-08 Thread Manuel Lemos
Hello, On 07/07/2004 08:04 AM, Curlys wrote: can some body help me to send an email attachment ( a log file ) from php ? Actaually i need a real guide plz You need to compose a multipart/mixed message with a text part that is your message and the attached part with is your file. You m

Re: [PHP] $_SERVER[HTTP_REFERER]

2004-07-08 Thread Christophe Chisogne
Shaun a écrit : after lots of investigation it appears that it is just my laptop that won't disply the variable, maybe because I am using Norton Firewall? Possible. The REFERER HTTP field is OPTIONAL -- See http1.1 spec (rfc2616) or this list archives. So it's not a field anyone should rely upon.

Re[2]: [PHP] How to specify compiler options on Win32

2004-07-08 Thread Richard Davey
Hello Tom, Thursday, July 8, 2004, 10:27:20 AM, you wrote: TR> php-x.x.x/main/config_w32.h is where they are set, but I don't think TR> --enable-memory-limit will work in windows (at least I couldn't get TR> it to report anything meaningfull :) I have to admit I did look in there, but couldn't s

Re: [PHP] How to specify compiler options on Win32

2004-07-08 Thread Tom Rogers
Hi, Thursday, July 8, 2004, 6:56:17 PM, you wrote: RD> Hi, RD> Using the guide on the Zend site RD> (http://www.zend.com/manual/install.windows.php#install.windows.build) RD> I have successfully compiled and built the Win32 version of PHP using RD> Visual C++. For now I am building the CLI versio

Re: [PHP] $_SERVER[HTTP_REFERER]

2004-07-08 Thread Shaun
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 07 July 2004 05:43 pm, Shaun wrote: > > Hi, > > > > Can someone tell me why > > > > echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].''; > > > > Produces > > > > $_SERVER[HTTP_REFERER] = > > > > Is th

[PHP] How to specify compiler options on Win32

2004-07-08 Thread Richard Davey
Hi, Using the guide on the Zend site (http://www.zend.com/manual/install.windows.php#install.windows.build) I have successfully compiled and built the Win32 version of PHP using Visual C++. For now I am building the CLI version - and it works just great, but I have what is probably a very basic qu

[PHP] Re: Client IP

2004-07-08 Thread Aidan Lister
I use the following script: http://aidan.dotgeek.org/lib/?file=Visitor.php As you've been told about 400 times, there's no reliable way to get the information. The above script checks if the client connected using a proxy, then falls back to what the webserver sends. "Rosen" <[EMAIL PROTECTED]

Re: [PHP] binary data over UDP with PHP?

2004-07-08 Thread Aidan Lister
If you're receiving binary data back, this function may interest you: http://aidan.dotgeek.org/lib/?file=function.hexdump.php Also, why are you messing with chr etc? $string = "\x00\x01\xFF"; etc. "Coder_1024" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the feedback

[PHP] Re: Storing website templates in sessions

2004-07-08 Thread rush
"Joe Harman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey everyone... > > I was curious if anyone out there has some pros and cons to storing a > website template that is extracted from a mysql db and stored in a > session... is this an efficient way to do it? > > also... does

[PHP] [Newbie Guide] For the benefit of new members

2004-07-08 Thread Ma Siva Kumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try htt