[PHP] Header Nightmare...

2001-08-22 Thread David Bouw
Who can crack the following nut for me..? Or is it uncrackable...? I have some files stored in a MySQL database... I encoded this data using base64_encode.. These files can be anything from .pdf files to .jpg or even a Word document... To make these files visible I made the following code: in

Re: [PHP] Strings with Spaces in URLS

2001-08-22 Thread Christian Reiniger
On Wednesday 22 August 2001 03:05, Chris Aitken wrote: > I have come up with a bit of a problem > > I have a little funky search form on a page, and when I send the search > data on as a URL, anything with a space is screwed up example > > $search = "This is a test"; > ec

[PHP] Concept of Templates

2001-08-22 Thread Navid Yar
Hello everyone, I have a simple question, and I hope I ask it correctly without any confusion. I want to build my own template scheme without using any 3rd party, ready-made freeware template codes. But I am confused about one thing. I am building a content driven website. The templates (such as

[PHP] Re: mySQL Query - comparing multiple values with one field

2001-08-22 Thread James Holloway
Hi Niklas, You can use || or OR. Secondly, huge list of values you say? Can this list be exploded by a common denominator, like a space or comma? If so, consider this: $list = // Huge list of words (array), separated by a comma. $words = explode(",", $list); $query = "SELECT * FROM table WHER

Re: [PHP] Re: if statement and imageline()

2001-08-22 Thread Hugh Danaher
Richard, No, the code was cut from the php file and displayed as is in my e-mail. I also tried to see if I could declare the two suspect variables in another IF() statement before the IF() statement that's fouling the execution of the .jpg construct, but no luck there too. Could I just be overbu

[PHP] imagemagick and file size

2001-08-22 Thread Ben-Nes Michael
Hi I decrease image size using imagemagick with the following command: function example() { $convert = "cat $userfile | /usr/X11R6/bin/convert - $type:-"; return `$convert`; } the returned binary value is uploaded to the DB. My main problem is that I don't know how to measure the decreased im

[PHP] Where do I get the DLL php_mssql70.dll?? Please help...

2001-08-22 Thread Phil
Hey everybody, I'm trying to connect a mssql db, but cant't even load the extension for mssql Where do I get the file php_mssql70.dll (php4)? Thanks everybody! Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP] Re: Where do I get the DLL php_mssql70.dll?? Please help...

2001-08-22 Thread Raphael Pirker
it should be inside C:\PHP\extensions if the file is not in there, then you should download the package again. also remember to specify the extension in your php.ini!! cheers raphael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] socket function

2001-08-22 Thread Boris
Does socket() function works on windows or not? Thanks Boris -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: PHP based auth -----------------

2001-08-22 Thread Alex Sofronie
Thanks a lot. And sorry about in my subject message but at a prior post on this list I managed to skip some responses due to the volume of this list. Thanks again, Alex Sofronie [EMAIL PROTECTED] - Original Message - From: "Sheridan Saint-Michel" <[EMAIL PROTECTED]> To: "Alex

[PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Zenith
I orginal have a function like the following... $fp = fopen ( $HTTP_SERVER_VARS['DOCUMENT_ROOT']."/log/debug_message.txt", "a" ); fputs ( $fp, "\nDebug message from : $PHP_SELF\n" ); fputs ( $fp, "\t$message\n\n" ); fclose ( $fp ); But I found that, the result is, all message is append t

RE: [PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Niklas Lampén
Use $fp = fopen($file, "r+"); PHP Manual would have told you this. Niklas -Original Message- From: Zenith [mailto:[EMAIL PROTECTED]] Sent: 22. elokuuta 2001 12:39 To: [EMAIL PROTECTED] Subject: [PHP] How can I insert the data into the begining of a text file I orginal have a function

[PHP] parsing .php files not only under root dir

2001-08-22 Thread helmutott
I would like the server on win2K to parse .php files whereever on the computer they are located. The server should run as service. What server allows this? Helmut

[PHP] Regex help

2001-08-22 Thread Stefen Lars
Hello all In the Apache config file, we have the following directive: SetEnvIfNoCase Referer "^http://www.oursite.com/"; local_ref=1 Order Allow,Deny Allow from env=local_ref We use this to prevent people from directly linking to .gif and .jpg files. This technique is covered here: htt

[PHP] Cant load dynamic library.... whats up?

2001-08-22 Thread Phil
Hey everybody, Im trying to tell php to search my extensions... I tried everything but it doesnt work... does anybody has an idea??? c:\windows\php.ini says: - extension=php_mssql.dll - extension=php_oci8.dll - extension=php_openssl.dll and - extension_dir = "c:\windows\system\" I even

[PHP] Re: our country

2001-08-22 Thread _lallous
Why LEBANON isn't listed? "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 036b01c12aa4$51b7fce0$6401a8c0@Lynchux100">news:036b01c12aa4$51b7fce0$6401a8c0@Lynchux100... > Check at http://www.phpusergroups.org to see if there's a User Group in your > area. > > -- > WARNING [EMAIL PROTECTED] add

[PHP] someone please explain weird getforeignkeys

2001-08-22 Thread alvarez
I need to look up a table's foreign keys using the unified ODBC-functions. 'odbc_foreignkeys()' requires me to pass seven parameters, each of them being mandatory, to archive this. Because the approach is not intuitive anyhow and there is no documentation available except of the PHP-manual's pr

[PHP] Web fetching script

2001-08-22 Thread Ben Quinn
Hi all I have a web fetching script that fetches text from an external URL and I would like to grab two lots of text at the same time - can anyone tell me why this isn't working? http://grabfile.html";; $GrabStart = "start"; $GrabEnd = "stop"; $file = fopen("$GrabURL", "r"); $rf = fread($file,

Re: [PHP] Why lynx don't work with cron?

2001-08-22 Thread Augusto Cesar Castoldi
Hi Rob, I gave up of lynx. Now I'm using "wget" and it's working great! try this with cron: "wget -q http://domain.com/script.php"; the "-q" option is to run on "quiet" mode. see you. Augusto --- Rob Hardowa <[EMAIL PROTECTED]> escreveu: > Hiya, > > I was waiting for someone to answer thi

Re: [PHP] Re: register_globals odd behaviour?

2001-08-22 Thread Sean C. McCarthy
Hi, Internally I use variables but I use the array to update the value since I have problems with the scope inside classes. So I update the value on the array just at the end of the script by registering an update function with register_shutdown_function(). What is the reason that I should not u

RE: [PHP] Web fetching script

2001-08-22 Thread Dave
What response are you expecting, and what response are you getting? assuming your regex is working as expected, you are running it twice to receive the same result into 2 different variables??? why not just copy the variable after additionally, $printing is filled with the matches of your regex

[PHP] convert 12:12:00 to seconds

2001-08-22 Thread nafiseh saberi
hi. how do I covert convert 12:12:00 to seconds ? I want to get time from system and covert it to seconds to do arithmetic work on it. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread Chris Lambert
$seconds = explode(":", $time); $seconds = $seconds[0] * 3600 + $seconds[1] * 60 + $seconds[2]; Or use www.php.net/mktime /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: naf

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread Andrey Hristov
Use gmmktime() or mktime() example : - Original Message - From: "nafiseh saberi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:30 PM Subject: [PHP] convert 12:12:00 to seconds > > hi. > how do I covert convert 12:12:00 to seconds ? > I want to get time

Re: [PHP] Web fetching script

2001-08-22 Thread Andrey Hristov
Try this: http://www.php.net/manual/en/ref.curl.php - Original Message - From: "Ben Quinn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 2:35 PM Subject: [PHP] Web fetching script > Hi all > > I have a web fetching script that fetches text from an externa

[PHP] Re: Regex help

2001-08-22 Thread Robin Vickery
[EMAIL PROTECTED] (Stefen Lars) writes: > In the Apache config file, we have the following directive: > > SetEnvIfNoCase Referer "^http://www.oursite.com/"; local_ref=1 > > > Order Allow,Deny > Allow from env=local_ref > > > We use this to prevent people from directly linking to .gif and

Re: [PHP] PHP/Apache configuration for Win NT

2001-08-22 Thread paul . eaton
Hi Julie, I realised that I had a case sensitivity issue with my script alias and corrected it. So far so good. I then retried it and got the following error message:- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Pl

Re[2]: [PHP] PHP/Apache configuration for Win NT

2001-08-22 Thread Julie Meloni
pegc> I then retried it and got the following error message:- pegc> Internal Server Error pegc> The server encountered an internal error or misconfiguration and was unable to pegc> complete your request. pegc> Please contact the server administrator, [EMAIL PROTECTED] and pegc> inform them of th

[PHP] Cannot get uploaded file by PUT request vith PHP4 and Apache1.3

2001-08-22 Thread Martin
I wanted to make a script to allow publishing from Netscape Composer using PUT request on my Apache server with PHP4. I have tried the example from manual. But i can not get the uploaded file. The $PHP_UPLOADED_FILE_NAME is not set and the $PHP_PUT_FILENAME allso is not set. Vhen I send the HT

[PHP] Re: problem with $HTTP_POST_FILES

2001-08-22 Thread bill
If they're empty but phpinfo displays them you're probably inside a function and haven't declared HTTP_POST_FILES as global. Jason Dulberg wrote: > I am working on an image upload script and I've tried to use the variables > from $HTTP_POST_FILES however it seems that no matter how I try to get

[PHP] resource xh in xslt functions

2001-08-22 Thread Jean-Charles Preaux
Hello i'm using Sablotron as a PHP module to generate XSLT transformation. (Debian "potato" release, Apache-1.3.20, sablot0.60, Expat-1.95.2, libxml2, Libc6) Have seen in main.c that the "ressource xh" returned by the xsl_create() functions is not implemented in another XSLT functions as xslt_err

Re: [PHP] Cannot get uploaded file by PUT request vith PHP4 and Apache1.3

2001-08-22 Thread Andrey Hristov
-=-=-=-=-=-=-=-=-=- or: - Original Message - From: "Martin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 5:26 PM Subject: [PHP] Cannot get uploaded file by PUT request vith PHP4 and Apache1.3 > I wanted to make a script to allow publishing from Ne

[PHP] Convert to int...?

2001-08-22 Thread Seb Frost
I didn't think php was this fussy, but the following code seems to not work because the numbers are floats. round() doesn't seem to help either: $siz=(72/160)*GetImageWidth($fileID); $offx=(8/160)*GetImageWidth($fileID); $offy=(1/2)*GetImageHeight($fileID); ImageTTFText ($im, $siz, 0, $offx, $o

[PHP] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Kurth Bemis
Thought this may be of interest to somebody. ~kurth >Delivered-To: [EMAIL PROTECTED] >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >List-Id: >List-Post: >List-Help: >List-Unsubscribe: >List-Subscribe:

[PHP] column_name

2001-08-22 Thread Jeremy Morano
Hi , I was wondering if there was a way to retreive a column_name instead of a value in a query? For example if my table has the fieldfirstname, lastname, telephone, movie1, movie2, movie3.. And my first record is JohnDoe 555- good bad bad My

RE: [PHP] Convert to int...?

2001-08-22 Thread Michael Geier, CDM Systems Admin
(int)$siz will give you what you are looking for. although with the math below, you are going to end up with 0. $siz = 72 / 160;//returns 0.45 echo round($siz); //returns 0 echo (int)$siz; //returns 0 -Original Message- From: Seb Frost [mailto:[EMAI

Re: [PHP] Convert to int...?

2001-08-22 Thread Andrey Hristov
- Original Message - From: "Andrey Hristov" <[EMAIL PROTECTED]> To: "Seb Frost" <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 6:20 PM Subject: Re: [PHP] Convert to int...? > Try > $a=7.50; > $a=(int) floor($a); > var_dump($a); > ?> > This returns on my machine: > int(7) > >

RE: [PHP] Re: Mem and variables

2001-08-22 Thread scott [gts]
amen. :-) > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Re: Mem and variables > > At any rate -- The right way to worry about perforance is to figure out > where your code is spending 90% of its time, and to optimize that. I'm > betting it ain'

[PHP] phpMyAdmin install error

2001-08-22 Thread Tom Beidler
I'm getting the following error with phpMyAdmin; Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/web/isp.com/public_html/dloc/admin/lib.inc.php on line 308 Error Any ideas where to start looking. All I've set in the config.inc.p

[PHP] HTTP headers and include()

2001-08-22 Thread Casteele/ShadowLord
I've written a separate function library for a cluster of web pages, and I then include("slib.php") in each of the web pages, instead of copying 12k of code to each page individually. Some of the pages require (simple) authentication or redirection headers, which some of the code in the library i

[PHP] php-counter

2001-08-22 Thread Gert Mellak
hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php-counter

2001-08-22 Thread John Meyer
At 05:49 PM 8/22/01 +0200, you wrote: >hi! > >do you know an easy-to-use-php-counter, which uses mysql to store the data? > >gert Not off hand, but I could probably program one within the day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] phpMyAdmin install error

2001-08-22 Thread Jay Paulson
I had the EXACT same problem... what you need to do is find where the 'mysql.sock' file is on your computer (sometimes it's at /var/lib/mysql.sock or some place like that).. then what you need to do is create the mysql.sock file in the /tmp directory (for some reason it wouldn't let me copy over t

[PHP] Script timeout

2001-08-22 Thread Julian Wood
I have a script which has to do a *lot* of work. In fact, it times out after 300 seconds, but is only about half done at that point. So I tried using set_time_limit(0) to no avail (php is *not* running in safe mode). So next I tried this directive in the apache config file: php_value max_exe

RE: [PHP] HTTP headers and include()

2001-08-22 Thread Andy
See if is there some kind of echo before header()s, or HTML sent to browser. You cannot do this Bla bla Why? Because there is already content sent to the browser. If some code uses header() place it before any output. As I said sometimes a simple echo() breaks all.

Re: [PHP] phpMyAdmin install error

2001-08-22 Thread Kurth Bemis
At 11:58 AM 8/22/2001, Jay Paulson wrote: the socket has to be made by the mysql deamon. Read the mysql docs on mysql.org search for mysql.sock. mysql will not work if that files is deletedif you run redhat or other distros make sure that /tmp and /var/tmp aren't cleaned at each reboot o

Re: [PHP] php-counter

2001-08-22 Thread Sheridan Saint-Michel
No, but I could throw one together in 10 minutes. Here is some 5 minute untested code to get you started where int count is in table counter. mailto:[EMAIL PROTECTED]\";>Administrator"; exit; } $count = mysql_result($dbq,0) echo "This page has been visited $count times!"; $query =

Re: [PHP] php-counter

2001-08-22 Thread Andrey Hristov
Here goes a sample code. The db interaction is throurh db abstraction layer but easily can be translated to used directly mysql_* functions. 'windows 95', 'windows 95'=>'windows 95', 'win98'=>'windows 98', 'windows 98'=>'windows 98', 'winnt'=>'windows nt 4.0', 'w

[PHP] help with php mysql and images...

2001-08-22 Thread Mike
Don't know if this is the place to ask this, but I'll find out soon. I'm trying to create a database in mysql that will hold information About users, it will hold the path to a picture, and it will resize Images on a page... sorry that's a really blunt description. A user will goto this certain p

RE: [PHP] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Tom Malone
This is not an issue if you're site is using Apache, correct? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: Kurth Bemis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 11:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Fwd: BadBlue v1.02 beta for Wind

Re: [PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Zenith
I have try this but, PHP just overwrite the prevoius content, and write the new message into the file. But I want to INSERT the new message into the head of a file. Or , I did a wrong thing again?? My code is like now. $fp = fopen ( $HTTP_SERVER_VARS['DOCUMENT_ROOT']."/log/debug_message.txt", "r+"

Re: [PHP] convert 12:12:00 to seconds

2001-08-22 Thread rm
maybe $time=12:12:00 $x=explode(":",$time); $sec=($x[0]*3600)+($x[1]*60)=$x[2]; rm --- nafiseh saberi <[EMAIL PROTECTED]> wrote: > > hi. > how do I covert convert 12:12:00 to seconds ? > I want to get time from system and covert it to > seconds to do > arithmetic work on it. > thanks

RE: [PHP] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Kurth Bemis
At 12:10 PM 8/22/2001, Tom Malone wrote: read the advisory - everything is explained. ~kurth >This is not an issue if you're site is using Apache, correct? > >Tom Malone >Web Designer >http://www.tom-malone.com > >-Original Message- >From: Kurth Bemis [mailto:[EMAIL PROTECTED]] >Sen

[PHP] how to disable the automated "userID/password" in Internet Explorer

2001-08-22 Thread Zhu George-CZZ010
Hi, all. Sorry, I know there is out of the topic, but you are highly possible to help on this. My browser --Internet Exporer will remember my userID and password, and the next time, after I type the first char of my user ID, it will automatically fill in the userID and password. Is there a

[PHP] Training Course Update - October 1-5

2001-08-22 Thread Michael Kimsal
Hello all: Just a quick reminder about our upcoming PHP training course. We'll be holding a 5 day, hands-on, instructor-led PHP training course October 1-5 in Ann Arbor, Michigan. We're gearing this more to newbies and medium-level PHPers than high-end advanced PHPers, because our previous clas

Re: [PHP] help with php mysql and images...

2001-08-22 Thread John Meyer
A couple of things: 1. ASP is not dumb. It was just written by Microsoft. Seriously, though I'd learn both, it would make you much more marketable. 2. First off, create the database. Then ask yourself what are the steps that you have to go through. What your probably looking at right now

[PHP] Newsgroup?

2001-08-22 Thread Christopher Raymond
Is this PHP listserve available as a newsgroup? I'm getting tired of managing this much mail everyday. I'd like it a bit simpler. If this list is not available, are there other equally busy newsgroups for PHP? Thanks, Christopher Raymond -- PHP General Mailing List (http://www.php.net/)

[PHP] functions and quotes

2001-08-22 Thread Kurth Bemis
i'm working on a site that is going to require some fancy image switching based on URL called...thats part isn't a problem...the problem comes in the way that i'm passing the HTML from the function. My main concern here is speed with the second being workload on the server. right now the funct

[PHP] Re: Newsgroup?

2001-08-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christopher Raymond) wrote: > Is this PHP listserve available as a newsgroup? I'm getting tired of > managing this much mail everyday. I'd like it a bit simpler. news.php.net -- CC -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Re: functions and quotes

2001-08-22 Thread Gabe da Silveira
Well, just off the top of my head, you seem to be mostly storing data. None of the strings you are storing contain any variable values, so they don't need to be double quoted. I would even take it a step further, and move all your HTML data into raw text files, then use the readfile() functi

[PHP] Re: Newsgroup?

2001-08-22 Thread Gabe da Silveira
Yup, connect your news client to news.php.net. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christopher Raymond) wrote: > Is this PHP listserve available as a newsgroup? I'm getting tired of > managing this much mail everyday. I'd like it a bit simpler. > > If this list is not available,

[PHP] Re: how to disable the automated "userID/password" in Internet Explor er

2001-08-22 Thread Gabe da Silveira
Just look through the preferences, disable forms auto-complete. That should take care of it for forms, I don't know about dialog boxes. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Zhu George-Czz010) wrote: > Hi, all. > >Sorry, I know there is out of the topic, but you are highly

Re: [PHP] Re: Mem and variables

2001-08-22 Thread rm
point taken...thanks > At any rate -- The right way to worry about > perforance is to figure out > where your code is spending 90% of its time, and to > optimize that. I'm > betting it ain't in variable lookups for most of us __ Do You Yahoo!? M

Re: [PHP] Need "Working..." pop up dialog (repost)

2001-08-22 Thread Ray Clouse
That's exactly what I needed! Thanks! Richard Lynch wrote: >You may just need a flush() call after the Starting UNZIP. > >http://php.net/flush > >PHP (Apache, actually) sends data to the browser when there's enough to >send, not right away. > >-- >WARNING [EMAIL PROTECTED] address is an endange

[PHP] Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Martin Hughes
Hi can anyone help me please!? I have a page that has a navigation table on the left with various links: Information Software Cars Dishwashers Paper Contact etc... (not the real links ;)) and I want the cell of the section I am in to be highlighted (ie if I am in "Cars" I want the "Cars" link

[PHP] RE: problem with $HTTP_POST_FILES

2001-08-22 Thread Jason Dulberg
Now I just feel like an idiot... that was the answer! I had all the other globals registered but that one. Thanks for your time! Jason. > If they're empty but phpinfo displays them you're probably inside > a function and haven't declared HTTP_POST_FILES as global. > > Jason Dulberg wrote: > >

[PHP] Urgent!!! Forum code

2001-08-22 Thread Emiliano Marmonti
Anybody knows a good & free PHP with Mysql code for implementing a forum? - Emiliano H.Marmonti Informático Módulo de Bibliotecas Programa SIU Ministerio de Educación de la Nación

RE: [PHP] Urgent!!! Forum code

2001-08-22 Thread Erik H. Mathy
There are many. Get thee to Freshmeat and search for: PHP mysql forum http://www.freshmeat.net Have fun, - Erik > -Original Message- > From: Emiliano Marmonti [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 3:26 AM > To: Lista PHP > Subject: [PHP] Urgent!!! Forum code > >

[PHP] Upgrading to Windows XP "Whistler"

2001-08-22 Thread Thomas Edison Jr.
I'm gonna be using windows XP "whistler" home edition. Can someone tell me if i'll be needing a different version of PHP4 to download & install and the installation instructions to go along. So far that i've heard is that it's the same as Windows 2000, but i'm muchly new at this thing so it'd be r

Re: [PHP] Urgent!!! Forum code

2001-08-22 Thread Jeff Lewis
Try the following: phpBB: http://www.phpbb.com/ Phorum: http://phorum.org/ Jeff Lewis - Original Message - From: "Emiliano Marmonti" <[EMAIL PROTECTED]> To: "Lista PHP" <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 4:26 AM Subject: [PHP] Urgent!!! Forum code Anybody knows a good

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Gabe da Silveira
Is the menu part of each page? Or is it a separate file/script that gets included in each page? Or is the navigation in a separate frame? If the menu is hard-coded into each page, then there's no reason to use PHP, because you have to modify each page ANYWAY, so you might as well just set eac

[PHP] session_write_close()

2001-08-22 Thread Gabor Gludovatz
Hello, I'm having problems with sessions. Since I use MySQL to store sessions, I always have to call session_write_close() at the end of every page, otherwise session variables don't get saved. If I use PHP's built-in 'files' method to store session vars, then everything works fine, I don't need

[PHP] strange error

2001-08-22 Thread Jeremy Morano
Hi, I get an error message which I can't figure out. Its a Parse error: on line 142 which is the last line of the page containing absolutly no code. The last line of code is simply ..Did anyone have a similar experience? Can anyone help me out please? -- PHP General Mailing List (http

[PHP] Re: strange error

2001-08-22 Thread Gijsbert te Riet
Hi Jeremy, > I get an error message which I can't figure out. > > Its a Parse error: on line 142 which is the last line of the page containing > absolutly no code. The last line of code is simply ..Did > anyone have a similar experience? Can anyone help me out please? I guess you haven't

Re: [PHP] strange error

2001-08-22 Thread Gabor Gludovatz
On Wed, 22 Aug 2001, Jeremy Morano wrote: > I get an error message which I can't figure out. > > Its a Parse error: on line 142 which is the last line of the page containing > absolutly no code. The last line of code is simply ..Did > anyone have a similar experience? Can anyone help me o

Re: [PHP] strange error

2001-08-22 Thread John Meyer
At 03:12 PM 8/22/01 -0400, you wrote: >Hi, > >I get an error message which I can't figure out. > >Its a Parse error: on line 142 which is the last line of the page containing >absolutly no code. The last line of code is simply ..Did >anyone have a similar experience? Can anyone help me out

RE: [PHP] strange error

2001-08-22 Thread Erik H. Mathy
Heya! All adive given so far is good. You might also want to check for a non-closed if { } statement. If you've got something like: - html 1 html2 - You'll get an error in the last line, where the resides. Hope this is a helpin' - Erik > -Original Message- > Fro

[PHP] sessions and sessionfiles

2001-08-22 Thread Danny
Hi there, well...I'm tired of searching so I'll drop a note here. I've been busy working with php (4.0.6) sessions lately for an online shopping cart, which works really great. Only problem is, the temporary session-files are not removed after a certain timeout occurs. The "session.gc_maxlifetime

Re: [PHP] sessions and sessionfiles

2001-08-22 Thread Jay Paulson
in the php.ini you can set the garbbage collection higher than 1 but that puts a bigger load on your computer... what garbage collection does is that it goes through and deletes all the session files that have expired due to the setting of the session.gc_maxlifetime.. so right now with the way you

[PHP] pointers in php

2001-08-22 Thread Christian Zonsius
Hi, I have a problem with pointers in php. In the following code the parent object should be a pointer to class Main ($this), but it's a copy ... Any ideas ? Thx Chris parent = &$parent; } function Modify($text) { $this->parent->B->text = $text; } } class Sub_B { var $text = "untouched";

[PHP] Re: force download in IE -- conclusion

2001-08-22 Thread David Minor
I ran some tests of different header configurations of 6 browser/platform combinations to find out what worked and what didn't. I didn't cover all of the platforms available, just those that my user-base uses, so this isn't complete. combinations tested was IE5.5, NN4, NN6 for Windows 98 and I

[PHP] Question

2001-08-22 Thread Gustavo Luis Pereira Verly
Hello, I have the next problem and I don't know how can I have the solution: I wan to read a socket output, and format the lines, but first: Can I make some kind o "sizeof" in the buffer that I'm receiving? That's because the read of the socket it's very slow; and if I read for example 256 for t

[PHP] Help alleviate the U.S. Nursing Shortage and Profit in the process

2001-08-22 Thread Jess Ragaza
My e-mail to cousin Bobby will be most informative. The details are in the indicated web site. --- To: "Bobby Lazam" Subject: Thank you for the second set of news

[PHP] More about forums

2001-08-22 Thread Emiliano Marmonti
Dear people: I have tested the address you have send me. I like one or two but thay are too complex, I don´t need registration, sessions, etc. Only I need a mail input line, a person line input and the text. Pretty simple but I can´t find anything like this. Could anybody help me? Thanks a

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Martin Hughes
OK here's the code in the page: Welcome Home Introduction Changes & Cuts Scores Orchestra Synthesizers Sound System Articles 21st Century Les Misérables Information Discussion Forums I am using this 1 page as the php 'template' with content added depending on the url. For example, to

Re: [PHP] Re: register_globals odd behaviour?

2001-08-22 Thread Richard Lynch
> What is the reason that I should not use the array? Is there any problem > doing it that way? They array is simply not designed for you to use as if it were your variable. What you want to do is this: You are changing $HTTP_SESSION_VARS['count'], but I'm betting the *GLOBAL* variable $count

[PHP] Random PowerBall Generator

2001-08-22 Thread Montz, James C. (James Tower)
More as an exercise to get back into the swing of PHP, I have created the PowerBall number generator. (for those of you un-aware, the powerball is at $200 mil). Took me a while to figure out using arrays, and the array_unique function. It also incorporate the imagepng function. Thanks to CC Zona

Re: [PHP] Re: force download in IE -- conclusion

2001-08-22 Thread pierre-yves
I worked on a script like yours for a looong time now! I need to force the download of various type of file, doc, pdf, zip, even html! Your script works fine on Opera 5.02 and netscape 4.76 on my win NT 4.0 box, but not on IE 5.5 On this one, it offers me to download the script file but

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Gabe da Silveira
Okay, well you could either put code like this into each td cell like this: > That is kind of ugly, however. A more elegant solution would be to make an array containing the links then do a loop kind of like this (I'm just typing the code off the top of my head, so there is likely to be some

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Hugh Bothwell
"Martin Hughes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK here's the code in the page: > > > > > > > Welcome > > Home > Introduction > Changes & Cuts > Scores > Orchestra > Synthesizers > Sound System > Articles > 21st Century Les > Misérables >

[PHP] MySQL trubs

2001-08-22 Thread Michael O'Neal
Hi. I've recently set up phpMyAdmin on an OS X 10.1 server. Everything was fine, and it set up great. I then restarted the Apache server and am getting this message: Warning: Access denied for user: 'root@localhost' (Using password: YES) in /Library/WebServer/Documents/Mangotest/phpMyAdmin/li

[PHP] Re: mysql_db_name not working (solved)

2001-08-22 Thread Peter Ostry
For those who might run into the same problem in the future: If functions like "mysql_db_name" are not working and you get no mysqlerr, then most likely your PHP installation is messed up. Maybe you see the same behavior than we: phpinfo shows old and wrong stuff in the first section, i.e. an

[PHP] Mac PHP'ers -> New PHP editor!

2001-08-22 Thread Michael O'Neal
Hi all. I just stumbled across this earlier this week. It's an app called "JaneBUILDER" that helps with some of the PHP tedium of connecting, selecting, and grabbing data from your MySQL db. I was amazed at how fast I put together an admin section for a client...3 minutes generated 10 pages!!!

[PHP] Creditcard checksum and identification

2001-08-22 Thread Peter Ostry
Has anyone a PHP Script for the checksum of Creditcards? And a Script which can identify card types based on their first numbers? (VISA, AMEX, MASTER, DINERS, JBC, DISCOVERY) There where a lot of JavaScript pages on the web some years ago, but I have lost my local copies and the pages are vanish

[PHP] Mcrypt: just a little tip:-)

2001-08-22 Thread Alex Piaz
Hi Folks! I am working on a project where I need to encrypt some data that will be decrypted later by a visual basic application and also receive encrypted data from that application and decrypt it on the webserver. To exchange the data, I did some xml and everything went fine, but I can't tel

[PHP] Executing perl scripts in a unix environment running php cgi-module

2001-08-22 Thread Shane Reid
Running the cgi-module trying to execute a perl script, dug through the archives found something that would at least return something: exec("/full/path/to/file.cgi", $results, $errorCode); while (list(,$line) = each($results)){ echo $line, "\n"; } if ($errorCode){ echo "OS Error: $errorCode\n

Re: [PHP] MySQL trubs

2001-08-22 Thread hunter
sounds like you need to make sure the password in phpMyAdmin and the MySQL for the user running the app are the same. You can reset the users password with mysqladmin -u username password new-password and then edit the phpMyAdmin config and make sure everything matchesalso, one small suggestio

[PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Georgie
1) Is there any PHP command that'll convert a MySQL database timestamp into a format that humans can read?!! For example, I want to change "20010822001245" into "00:12.45 on the 22-08-2001"? 2) This is the hard question. I have a script that gets values from a database and then includes a php pag

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Jason Murray
> 1) Is there any PHP command that'll convert a MySQL database > timestamp into a format that humans can read?!! For example, I want to > change "20010822001245" into "00:12.45 on the 22-08-2001"? \n"; return $unix; } ?> You could add a $dateformat input variable, and execute Date() i

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Kees Hoekzema
hey, > > 1) Is there any PHP command that'll convert a MySQL database > timestamp into > a format that humans can read?!! For example, I want to change > "20010822001245" into "00:12.45 on the 22-08-2001"? take a look at: http://www.php.net/manual/en/function.date.php > 2) This is the hard que

  1   2   >