RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112

2001-12-04 Thread Nicolas Guilhot
Check that you have not already close the connection to the mysql database. Or maybe, the mysql_connect returned an error ! -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 4 décembre 2001 08:42 À : [EMAIL PROTECTED] Objet : [PHP] 1 is not a valid

[PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Hi all, I'm a PHP newbie, my main scipring being done in Blueworld's Lasso. I have used php fro time to time with Lasso to do some file handling. My question is: 'Can I run a file from a PHP script?' The file in question would be a Filemaker database file. I want to be able to open the file

[PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Hi all, I'm a PHP newbie, my main scipring being done in Blueworld's Lasso. I have used php fro time to time with Lasso to do some file handling. My question is: 'Can I run a file from a PHP script?' The file in question would be a Filemaker database file. I want to be able to open the file

Re: [PHP] New Page Escape Sequence

2001-12-04 Thread Manuel Lemos
Hello, Chip wrote: On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote: I wish to take some information out of a database and create a text file with the information, nicely formatted. Does any one know of an escape sequence that works as a new page indicator for printing???

[PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Egan
Hope this isn't an inappropriate message to send to this list. I suspect the response will largely concern JavaScript. Is there a way of altering the contents of one drop down menu according to the item selected in another? I'm creating a page allowing users to identify the make and model of

[PHP] Statistic analyze for Apache log

2001-12-04 Thread Johan Holst Nielsen
Hi Anyone know a good PHP application that generate statistic from apachelog? Please send me an URL. Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Statistic analyze for Apache log

2001-12-04 Thread Manu Verhaegen
You can use AWSTATS, it will working and it is very nice. Greetings, Manu - Original Message - From: Johan Holst Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 10:51 AM Subject: [PHP] Statistic analyze for Apache log Hi Anyone know a good PHP

[PHP] ldap_connect(URI)?

2001-12-04 Thread Susanne Benkert
Hello, my problem is to enable a secure connection between a PHP script an an LDAP directory using SSL. The LDAP server is already recompiled and running with ssl/tsl-support. PHP-4.0.6. is compiled with-openssl. But when I try to use ldap_connect('ldaps://hostname/') like suggested in the

Re: [PHP] Statistic analyze for Apache log

2001-12-04 Thread Johan Holst Nielsen
Yes, I have already seen it. But I would prefer a PHP written application. AWSTATS are written in Perl :o(. Do you know anything like this, in PHP? :o) Regards, Johan Manu Verhaegen wrote: You can use AWSTATS, it will working and it is very nice. Greetings, Manu - Original

[PHP] PHP newbie alert

2001-12-04 Thread shaun murphy
Hello! Being one not to refuse a challenge, I have been asked to administer and update a PHP based website. I was wondering what a good editor is for such a task. I have been having a look at Dreamweaver as I use that quite a lot but are there any extensions I should be using? -- PHP General

[PHP] Re: php_xmldom.dll

2001-12-04 Thread Johan
Antwnhs T. wrote: I have a problem with this dll, the dll exists on my hd and php does not load it. I have win2k pro with iis5, has anyone any kind of solutions ? Do you remeber to include it in your php.ini file? Regards, Johan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Michael Hall
You can certainly do what you want in straight PHP if you include a form submission after selecting the manufacturer. There is probably a way of doing it in JavaScript without a form submission, but not one that will read data from a MySQL database on a remote machine. JavaScript can't do that.

Re: [PHP] PHP newbie alert

2001-12-04 Thread Stefan Rusterholz
If you use Dreamweaver under MacOS I suggest to take a look at BBedit from BareBones (www.versiontracker.com or www.barebones.com). Under Windows I currently use UltraEdit which fits quite fine but needed a few changes to the wordlist.txt which is responsible for syntax-highlighting (if you want

[PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread mweb
Hello, I am working for a customer whose ISP uses WinNT/IIS. To test the server environment available I have just uploaded the classic test php page with only phpinfo() inside. When I point to that URL (http://mycustomerdomain.com/test.php), netscape just opens the Save as (type

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Stig Venaas
Hi again Susanne, I'm on this list too... On Tue, Dec 04, 2001 at 11:13:51AM +0100, Susanne Benkert wrote: The LDAP server is already recompiled and running with ssl/tsl-support. PHP-4.0.6. is compiled with-openssl. But when I try to use ldap_connect('ldaps://hostname/') like suggested in the

Re: [PHP] PHP newbie alert

2001-12-04 Thread shaun murphy
hi! Thanks for replying so quick. I use win2000 and have ultraedit so BBedit isnt really an option. Stefan Rusterholz [EMAIL PROTECTED] wrote in message 02cf01c17caf$bac57bb0$3c01a8c0@quasimodo">news:02cf01c17caf$bac57bb0$3c01a8c0@quasimodo... If you use Dreamweaver under MacOS I suggest to

[PHP] Re: URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread Emek TUZUN
Hello, Unfortunately, your ISP doesn't support PHP. They should install PHP Win32 but I think they don't want to install PHP for only your customer's site You should change your ISP to another ISP whic supports PHP Or, the other way is changing your codes from PHP to ASP... But the

[PHP] using semaphores problem

2001-12-04 Thread Thomas
Hello there, I am using semaphores to synchronize access to specific database records. Problem is, it does not seem that the semaphores are being released. Not only am I using sem_release() but the PHP manual says it will release all semaphores that are still acquired at the end of the PHP page

Re: [PHP] : IIS server doesn't recognize PHP pages

2001-12-04 Thread mweb
On Tuesday 04 December 2001 12:04, Emek TUZUN wrote: Hello, Unfortunately, your ISP doesn't support PHP. They should install PHP Win32 but I think they don't want to install PHP for only your customer's site Emek, I have a message in my mailbox from the sysadmin (CC'd to the customer)

[PHP] Re: using semaphores problem

2001-12-04 Thread Thomas
Ok, I got it working so long as sem_release is SPECIFICALLY called. Problem is I have a lot of die calls throughout my scripts and I would rather not have exit hooks on every script (not sure how reliably those will ALWAYS be called, and would be a hassle to store a list of all semaphores to be

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Susanne Benkert
Hi Stig, Unknown Sender wrote: This works for me. For ldap_connect(ldap://hostname;) to work, you need OpenLDAP 2.x libs but that's all. Are you sure PHP is using that library? I'm quite sure, because other ldap functions work properly such as ldap_connect(hostname); or ldapsearch()... I

Re: [PHP] : IIS server doesn't recognize PHP pages

2001-12-04 Thread Phil Driscoll
Even if your code was duff, you wouldn't get the save as if IIS was correctly configured. Get your ISP to check that for your site, IIS has a scriptmap for .php mapped onto php.exe. If he needs more detailed instructions, they are in the online php manual at www.php.net or in the install.txt

Re: [PHP] : IIS server doesn't recognize PHP pages

2001-12-04 Thread Emek TUZUN
So, the problem is config problem... Maybe you can try to change extension from .php to .php3 or .php4 etc. Then please inform us again... Emek Mweb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tuesday 04 December 2001 12:04, Emek TUZUN wrote: Hello, Unfortunately,

[PHP] ASP to PHP ...

2001-12-04 Thread John Meadows
I have been asked to convert an ASP/MS Access system to PHP. I would be interested in hearing the thoughts of anyone with exp. of this. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] PHP LDAP

2001-12-04 Thread Stig Venaas
On Tue, Dec 04, 2001 at 07:41:14AM +0800, Hafiz Malik wrote: hi there.. i'm succesfully add ldap entry(jpegphoto) using PHP via below codes.. but failed to modify it.. any ideas? Not really. Could you check what ldap_modify() returns, did you get any warnings from PHP? Turn on more debugging

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Stig Venaas
On Tue, Dec 04, 2001 at 12:19:24PM +0100, Susanne Benkert wrote: This works for me. For ldap_connect(ldap://hostname;) to work, you need OpenLDAP 2.x libs but that's all. Are you sure PHP is using that library? I'm quite sure, because other ldap functions work properly such as

Re: [PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread mweb
First of all, thanks to John, Emek and Phil. Glad to see unanimity about it being a server config problem. However: I have tried .php and .php4 extension without any luck. Didn't try .php3 because was giving for granted their setup is newer than two years ;-)) OK, I'll try that too have

RE: [PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread Jon Haworth
have you tried it with a PERL-style shebang line at the top of your scripts? Give something like: #!/usr/bin/php -q On a WinNT/IIS box? I'll try, but never read anything like this... Ah yes, good point :-) Your path may be more like c:\progra~1\php\php.exe -q I don't even know

[PHP] Cannot use a scalar value as an array

2001-12-04 Thread Xavier Antoviaque
Hello all, I have a problem with a php script, which I want to use to fetch two data (integer) from a MySQL table, divide the first by the second, and store the value resulting in an double array. That seems not very difficult, but I always have the error 'Cannot use a scalar value as an

[PHP] How to use gd/php without freetype?

2001-12-04 Thread Joelmon2001
Hello and thanks for your time. After endless searching, I am still lost let's just assume I can't install freetype, and it looks like that for matters I won't get into. (linux, raq 3) I obviously need gd to create images and create text onto them But I want to be able to use normal standard

[PHP] URGENT: IIS server now OK, but MS access DB not reachable

2001-12-04 Thread mweb
Still me. Thank you all, you were right!! The sysadmin did find out that the server config was wrong. Now php is OK. However, I have to access an MS access database with those pages. The sysadmin says relevant data are: DSN: domain Absolute path: c:\domini\domain_name.net\domaindata.mdb To give

[PHP] Re: ASP to PHP ...

2001-12-04 Thread lallous
Never done that... perhaps this link could help: http://asp2php.naken.cc/ John Meadows [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have been asked to convert an ASP/MS Access system to PHP. I would be interested in hearing the thoughts of anyone with exp.

RE: [PHP] URGENT: IIS server now OK, but MS access DB not reachable

2001-12-04 Thread Jon Haworth
Scope problem? Try this: function Output_Entries() { global $DB_PATH, $DSN; // rest of function } Cheers Jon -Original Message- From: mweb [mailto:[EMAIL PROTECTED]] Sent: 04 December 2001 12:28 To: [EMAIL PROTECTED] Subject: [PHP] URGENT: IIS server now OK, but MS access DB not

Re: [PHP] BEST Book for Learning PHP/MySQL

2001-12-04 Thread Dan McCullough
Also go to Amazon or BN and look through there and see the recomendations. --- Kurt Lieber [EMAIL PROTECTED] wrote: There's dozens upon dozens of messages in the archive about this topic, which comes up at least once per month. I believe there's also a blurb or two about PHP books on the

Re: [PHP] URGENT: IIS server now OK, but MS access DB not reachab le

2001-12-04 Thread mweb
On Tuesday 04 December 2001 13:29, Jon Haworth wrote: Scope problem? Try this: function Output_Entries() { global $DB_PATH, $DSN; // rest of function } YESS! (and an excellent demonstration that one should not code too many hours in a row :-(( ) Thanks to Jon and all

[PHP] A few questions on switching redoing site in PHP

2001-12-04 Thread Dan McCullough
If everyone could gather around for a minute or two. We are looking at switching from a propriatary JSP/JS/Java based system and going to PHP as our ecommerce system. We currently have Oracle db and hosted on Sun equiptment, which we are in for another 3 years, although upgrades are planned.

Re: [PHP] Statistic analyze for Apache log

2001-12-04 Thread Johan Holst Nielsen
If you find this out off list could you let me know as well. I can only find C++ and Perl scripts. Ok, thinking about programming if it don't exists. So I let you know when it's ready :o) Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] php vbulletin and postgres

2001-12-04 Thread shaun murphy
hey, me again. I am going to set up a vbulletin site and I understand it uses php along with mysql. I can get php and postgres hosting so I was wondering what the differences are in postgres as opposed to mysql. are they different enough to cause any problems? -- PHP General Mailing List

Re: [PHP] php vbulletin and postgres

2001-12-04 Thread Michael Hall
Well, they're both use SQL ... Problems? It's all relative, isn't it? You would have to change code relating to db connections and queries, etc, but not program logic, so it all depends how much code changing you have to do to get it working. That would depend on how the program was written in

[PHP] freetype+gd+php not working

2001-12-04 Thread Dan Ramaley
I have been trying to get FreeType working with PHP but have had no luck. In Apache's error log i'm getting: PHP Warning: libgd was not built with TrueType font support Here's the lines that are probably pertinent from my web server compilation script. Any suggestions on how to fix

Re: [PHP] problem with ImageCreateJPEG ...

2001-12-04 Thread Miguel Loureiro
Hello , sorry for taking your time, but I still dont understand why I got errors with pjeg... I use the following code on other machine with jpeg support to , and it works, while in my machine I got an empty jpeg file ? Header(Content-type: image/jpeg); $im=ImageCreate(400,200); $bcg =

Re: [PHP] problem with ImageCreateJPEG ...

2001-12-04 Thread Johan Holst Nielsen
sorry for taking your time, but I still dont understand why I got errors with pjeg... I use the following code on other machine with jpeg support to , and it works, while in my machine I got an empty jpeg file ? Header(Content-type: image/jpeg); $im=ImageCreate(400,200); $bcg =

[PHP] Re: A few questions on switching redoing site in PHP

2001-12-04 Thread The Big Roach
Some philosophical observations: My personal opinion would be to stick to a unix environment (Sun, Linux, FreeBSD...) and hold on to the Oracle part. I find that JSP is a bit cumbersome to maintain and program. An alternative to Oracle would be Postgres/SQL as they handle transactions relatively

[PHP] Re: A few questions on switching redoing site in PHP

2001-12-04 Thread The Big Roach
I forgot to add: Remember that Windows markets itself as an over-all solution to everything: Windows Server + ASP + IIS + SQL Server. It depends on whether you want to be outside the box! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] PHP Help required

2001-12-04 Thread MrBaseball34
I would like to know if someone could help create: (All mySQL Tables already created) 1. A Registration page. Needed fields: UID UserName UserPwd UserLevel EmailAddr TeamName (select box loaded from a TeamNames Table) 2. A login page whereby a user enters UserName

RE: [PHP] problem with ImageCreateJPEG ...

2001-12-04 Thread Jack Dempsey
also, are you sure both versions of php were compiled the same way with the same options and support? -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:22 AM To: Miguel Loureiro; [EMAIL PROTECTED] Subject: Re: [PHP] problem with

Re: [PHP] PHP Help required

2001-12-04 Thread Dan McCullough
I can help, send me an email. For some reason I cant send directly to you from my account. --- MrBaseball34 [EMAIL PROTECTED] wrote: I would like to know if someone could help create: (All mySQL Tables already created) 1. A Registration page. Needed fields: UID UserName

RE: [PHP] URGENT: IIS server now OK, but MS access DB not reachable

2001-12-04 Thread Andrew Hill
mweb, Are you using a File or User DSN? You DSN domain needs to be a working System DSN, succesfully tested in your ODBC Adminsistrator. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology

RE: [PHP] Stuck on array, need a little help.

2001-12-04 Thread Brian V Bonini
I still can't get this to do what I want: $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery =

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-04 Thread Steve Cayford
On Monday, December 3, 2001, at 06:16 PM, Tyler Longren wrote: I believe you're correct Martin. I think newer versions of MySQL automatically strip them out. Just use php's stripslashes() and addslashes() functions when you need them. Interesting. A bit unnerving at first, though.

RE: [PHP] Multidimensional array construction

2001-12-04 Thread Darren Gamble
Good day, Thanks to all who replied. This isn't quite what I needed, though. I _have_ the array (or delimited list would do, too). What I need to do is _CREATE_ the array element $myarray['foo']['bar']['green']['apple'] and set it to some value. Actually traversing said array isn't hard, as

[PHP] Re: PHP Help required

2001-12-04 Thread MrBaseball34
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I would like to know if someone could help create: I was kind looking for someone to help show me the way. Not really to do it all. I was just notified by the league pres. that we do not have the budget to pay for anyone else to perform

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Steve Cayford
On Tuesday, December 4, 2001, at 02:22 AM, George Pitcher wrote: Hi all, I'm a PHP newbie, my main scipring being done in Blueworld's Lasso. I have used php fro time to time with Lasso to do some file handling. My question is: 'Can I run a file from a PHP script?' The file in question

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Steve, Thanks for the response, but it's a server-side 'run' I'm looking for, not client-side (they get web access to the db). Basically I want to be able to test that the db is running and if it isn't then I want to 'run' it. Platform is NT, server is IIS4 George - Original Message -

Re: [PHP] Cannot use a scalar value as an array

2001-12-04 Thread Steve Cayford
On Tuesday, December 4, 2001, at 06:04 AM, Xavier Antoviaque wrote: Hello all, I have a problem with a php script, which I want to use to fetch two data (integer) from a MySQL table, divide the first by the second, and store the value resulting in an double array. That seems not very

[PHP] sizeof($array) with a twist

2001-12-04 Thread René Fournier
I'd like to count the number of rows in a 2 dimensional array that have the same data in their fifth field. Is there a PHP function that does this? Sizeof() appears to lack condition parameters... ...Rene --- René Fournier [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Jim
But, you can use PHP to dynamically create your .js file that your HTML file calls. Load each of your options and sub options into js arrays and write a js function that swaps out the pull down options on the onChange event of the previous pull down. Depending on the number of options you

[PHP] small window scripts in Javascript?

2001-12-04 Thread Wee Chua
Hi all, How could i get rid of the white space and show the picture exactly same size as the window, so it would be perfect fit. What else do I miss in the codes to make the perfect fit size? Also, how can I have the small window close automatically after user clicking on the picture's hyperlink?

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Steve Cayford
Ah, well, can't help you there, sorry. -Steve On Tuesday, December 4, 2001, at 09:40 AM, George Pitcher wrote: Steve, Thanks for the response, but it's a server-side 'run' I'm looking for, not client-side (they get web access to the db). Basically I want to be able to test that the db

Re: [PHP] sizeof($array) with a twist

2001-12-04 Thread Jim
array_count_values() does something like this. It groups together values and tells you how many times they occur in an array... example $array = array( array(foo,bar,rex), array(foo,bar,zip), array(foo,bar,zoo), array(foo,bar,rex)); /* put all elements into one array

RE: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Jon Haworth
Basically I want to be able to test that the db is running and if it isn't then I want to 'run' it. Platform is NT, server is IIS4 It's a database, right? So surely it should be running as an NT service, in which case it should be set to start automatically when the computer starts. Your

[PHP] Extract data

2001-12-04 Thread Dan
Hello guys I'm making poll script that stores data like this: 0|0|0|0|0 But i'm getting this error all the time: Warning: unexpected regex error (14) in c:\program files\apache group\apache\htdocs\eztatic\poll.php on line 25 25: list(q1,q2,q3,q4,q5)= split (|, $answer, 5); Could any

Re: [PHP] ASP to PHP ...

2001-12-04 Thread Jim
This really depends how complicated your ASP system is. Presumably, your current system has many components that make it work correctly with the server and MS Access. The hardest part will be getting PHP to function as expected in that environment. The actual code is easy to translate, but

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Jon, Not quite as simple as that. I can run the db application without any problem, but the db files tend to fall over occasionally. I have a script which cxhecks every 5 mins and boots them up if they are down. I'm looking for a way to get them up if the db search detects that they are down. I

[PHP] Re: calling all set vars

2001-12-04 Thread CC Zona
In article 20011204074346.PCP1236.viefep14-int.chello.at@[127.0.0.1], [EMAIL PROTECTED] (Christian Donhofer) wrote: is there a way of calling all vars at once to analize there details, i. e. prefixes or value? http://www.php.net/manual/en/function.get-defined-vars.php -- CC -- PHP

RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112

2001-12-04 Thread Mark Roedel
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 1:42 AM To: [EMAIL PROTECTED] Subject: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112 any one here can help my problem? (I 'am using

Re: [PHP] Extract data

2001-12-04 Thread Jim
The pipe | is a regex special character that allows you to specify multiple options (as in 1|0 will find 1 or 0. Your code will work if you escape the pipe as such... 25: list(q1,q2,q3,q4,q5)= split (\|, $answer, 5); But, it won't work unless you put the $ in front of your variables in your

[PHP] Re: Extract data

2001-12-04 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dan) wrote: Warning: unexpected regex error (14) in c:\program files\apache group\apache\htdocs\eztatic\poll.php on line 25 25: list(q1,q2,q3,q4,q5)= split (|, $answer, 5); Split() takes a regex as the first argument. The pipe character

RE: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Jon Haworth
Aha, I understand :-) Have you looked at exec() and passthru()? Start with http://www.php.net/manual/en/ref.exec.php, there are some notes relating to Windows there... Cheers Jon -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: 04 December 2001 16:51 To: Jon

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Jon, Of course not, I'm a newbie! George - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 5:03 PM Subject: RE: [PHP] 'Running' a file from PHP script Aha, I understand :-) Have

Re: [PHP] small window scripts in Javascript?

2001-12-04 Thread Andrew Brampton
NOT a php question, but the only solution I know of is making a HTML page for the picture with the margin's set to zero (and whatever options u want)... This would mean you would have to create 100 HTML pages if you had 100 Popup images... Another solution would be to use PHP to make 1 page,

[PHP] banner management system

2001-12-04 Thread Ali
Hello, any idea of a free and simple banner management system written in PHP. I appreciate your help. --- Ali Reza Sajedi http://www.bupnet.de/info/mitarbeiter.php3?id=1action=einzelheit BUP Am Leinekanal 4 37073 Göttingen Germany

[PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Lee Philip Reilly
Hi, I wonder if someone could tell me whether or not the following is possible? I have an HTML form which passes a username and password to a PHP script for validation. If either is not valid, I would like it to return to the previous page - carrying with it a variable plus the submitted form

[PHP] Re: header(Location:blah...) - passing variables

2001-12-04 Thread Julio Nobrega Trabalhando
You should really try to do it and see if it's possible, before asking on the mailing list... mainly because you will be satisfied with the results... -- Julio Nobrega Don't eat the yellow snow. Lee Philip Reilly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Jim
There are many different ways to do this ... 1. Have the same PHP script that validates generate the login page. This way the script always has the correct data and you don't need to pass anything. 2. Header(Location: login.php?err=$erruser=$userpass=$pass); This will work, but the bad

Re: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Valentin V. Petruchek
Set the form receiver to $PHP_SELF. When data is posted (use $HTPP_POST_VARS to check if is) check it for correctness. If everything is ok, use Header(Location: work_for_authorized.php) otherwise show the current (i.e. login page) with $user, $pass available... Zliy PEs,

[PHP] You owe it to yourself to read this...

2001-12-04 Thread Raquel
Dear Fellow Entrepreneur, Are you achieving the results that you are trying to achieve with your online business? If your current business is offering a product that is a quick and simple solution to a problem that concerns most people, most of the time, then you would be very happy, and

[PHP] Re: PHP Help required

2001-12-04 Thread The Big Roach
Eddie, There are some good books to get you started running - literally - with PHP and a database (usually MySQL). I would recommend PHP Fast and Easy (blue cover with red writing). Each chapter focuses on a given task... building tables, then adding to table, then selecting from a table and -

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Valentin V. Petruchek
phpinfo() is a function itself. It needn't echo: ? phpinfo(); ? Zliy Pes, http://www.zliypes.com.ua - Original Message - From: Brian C. Doyle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:07 PM Subject: [PHP] phpinfo() returning Zero Sized Reply hello all,

RE: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Mark Charette
I cheat and just include the original form on error ... Almost all my input values are set to PHP variables in the form. The 1st time through none are set, so the values are blank. After submitting the form, I check for validity. If there are errors I mark the errors, generate an error string,

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Brian C. Doyle
Okay so i got rid of the echo and still no go.. I am using version 4.0.6 At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote: phpinfo() is a function itself. It needn't echo: ? phpinfo(); ? Zliy Pes, http://www.zliypes.com.ua - Original Message - From: Brian C. Doyle [EMAIL

RE: [PHP] Dynamically created dropdowns

2001-12-04 Thread Andrew Chase
That's true, but you could use PHP and the MySQL data to generate the JavaScript arrays for the dynamic menus... you can escape into PHP within the SCRIPT tags of an HTML page just as easily as you can within the HEAD or BODY tags. -Andy -Original Message- From: Michael Hall

[PHP] mad .... again jpeg files...

2001-12-04 Thread Miguel Loureiro
Hello all, I still having problem when use jpeg functions... I got: testout.jpg is not a valid JPEG file in .. , with follow code: Header(Content-type: image/jpeg); $img=ImageCreateFromJPEG(testout.jpg); ImageJPEG($img,a.jpg); ImageDestroy($img); testout.jpg was one image created by

RE: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Richard S. Crawford
My approach has been to pass an error code back to the original form. form.php: ?php print(form aciton=\formVerify.php\); print(a buncha form crap); if ($errcode==1) print (Your user id is wrong. You suck); if ($errcode==2) print (Your password is wrong. You

Re: [PHP] mad .... again jpeg files...

2001-12-04 Thread Valentin V. Petruchek
Try to specify absolute path to the jpeg - possible php do not look up for jpeg in current folder... (or use './image.jpg') Zliy Pes, http://zliypes.com.ua - Original Message - From: Miguel Loureiro [EMAIL PROTECTED] To: php-gen [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:46 PM

[PHP] I'm a n00b scum...

2001-12-04 Thread MarkMI6
And I've just read the tutorial on webmonkey.com on php and now I'm hooked, where can I get more stuff like that on webmonkey? Or would I be better off buying a book on php and if so which do you recommend? -- It's not the job I enjoy, it's the people I run into - Bus Driver. -

RE: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread Dan McCullough
It has been my idea to make a function, and pass the fields, then register a global feedback var and then check one by one each required field, or what ever you are trying to verify in the fields. function formCheck ($username,$password,$smellycat) { global $feedback, $username, $password; if

[PHP] Re: I'm a n00b scum...

2001-12-04 Thread Baloo :0\)
I strongly reccomend the book called PHP Essentials by Julie C Meloni It's written very simple and at the same time you learn quite good level of PHP Alfredo Markmi6 wrote: And I've just read the tutorial on webmonkey.com on php and now I'm hooked, where can I get more stuff like that on

[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)
Someone came with a very clever solution to simplify the extraction of all fields when doing aselect * from table it's a command that passes all values from the fields on the table to variables of the same name than the field on that table. No need to program it manually, creates all

Re: [PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Hank Marquardt
that would be extract() -- http://www.php.net/extract On Tue, Dec 04, 2001 at 01:09:27PM -0700, Baloo :0) wrote: Someone came with a very clever solution to simplify the extraction of all fields when doing aselect * from table it's a command that passes all values from the fields on the

[PHP] session in https

2001-12-04 Thread php geko
I am trying to set some sessions variables in an https (SSL): session_start(); ... $row = $results[0]; session_register(myses); if(session_is_registered(myses)){ $myses=array(id=$row[user_id],username=$row[username],password= $row[password]); $myses=serialize($myses); } the to go to another php

Re: [PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Jim
I do this ... $query = mysql_query(SELECT * FROM foo); $data = mysql_fetch_assoc($query); extract($data); if you need all the rows from the query, do ... $query = mysql_query(SELECT * FROM foo); while($data = mysql_fetch_assoc($query) { extract($data); } Jim Someone came with a

Re: [PHP] New Page Escape Sequence

2001-12-04 Thread chip
On Tuesday 04 December 2001 12:30 am, Manuel Lemos wrote: Hello, Chip wrote: On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote: I wish to take some information out of a database and create a text file with the information, nicely formatted. Does any one know of an

Re: [PHP] header(Location:blah...) - passing variables

2001-12-04 Thread J Smith
I'd recommend urlencoding those variables if you're going to do it that way, otherwise you may get some non-sense characters resulting in a bad URL. J Jim wrote: There are many different ways to do this ... 1. Have the same PHP script that validates generate the login page. This way

[PHP] Re: small window scripts in Javascript?

2001-12-04 Thread Baloo :0\)
To close the window when the user clicks on the hiperlink type in your HTML tag for Body Body onUnload=Window.close() This will close the present window when the user clicks on the hiperlink. When you close the present window, you need to open a new window (or an existing one) where you

[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)
Someone came with a very clever solution to simplify the extraction of all fields when doing aselect * from table it's a command that passes all values from the fields on the table to variables of the same name than the field on that table. No need to program it manually, creates all

Re: [PHP] session in https

2001-12-04 Thread Jim
Unless you have an unstated purpose for serializing/unserializing, it's not necessary because PHP automatically serializes and unserializes your session variables. Can you see the correct values if you insert the phpinfo() command? If you can that should give you a clue as to how to

[PHP] Re: Extract data

2001-12-04 Thread J Smith
For a split this simple, I'd recommend using explode(|, $data). split() uses a regex for the first character (and as others have said, the pipe is a metacharacter in a regex, so you'll need to use \| instead of |), whereas explode() is simply literal. explode() will probably be slightly

Re: [PHP] session in https

2001-12-04 Thread php geko
Hi Jim, I included a phpinfo in my script, where can I see the values of them? (in PHPINFO) Luc Jim [EMAIL PROTECTED] wrote in message news:p05101026b832d339af13@[192.168.1.17]... Unless you have an unstated purpose for serializing/unserializing, it's not necessary because PHP automatically

Re: [PHP] session in https

2001-12-04 Thread Julio Nobrega Trabalhando
$HTTP_SESSION_VARS shows you this. I don't remember precisely if or where it appears on phpinfo();, but you can try this to see all registered session variables: pre ?php print_r($HTTP_SESSION_VARS); ? /pre That's a nice way to see any array, BTW. Including $HTTP_SERVER_VARS, $HTTP_POST_VARS,

  1   2   >