[PHP] transfer tables to another database?

2001-08-22 Thread nafiseh saberi
hi. I want to transfer tables to another database. how?? thanks. -- 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]

[PHP] time

2001-08-22 Thread nafiseh saberi
hi. how do I can wrk with time: 11:56:23 - 10:00:45 = thanks. -- 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] transfer tables to another database?

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 16:07, nafiseh saberi wrote: hi. I want to transfer tables to another database. how?? thanks. Without knowing what DB package you are using - use whatever tool you have (in mysql it's mysqldump) to dump the data, then use ? to reload it into the new database; assuming

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

2001-08-22 Thread Niklas Lampén
What I need to do is to compare if one field matches a value from a huge list of values. Do I need to query like SELECT * FROM table WHERE field LIKE '%value1%' || field LIKE '%value2%' or can I do it something like this SELECT * FROM table WHERE field LIKE ('%value1%' || '%value2%')? Niklas

[PHP] re:transfer tables to another database?

2001-08-22 Thread nafiseh saberi
hi and thanks. I work with postgres with php. best regards. love your enemies that cause to work harder. I am from IRAN. thanks again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] time

2001-08-22 Thread speedboy
hi. how do I can wrk with time: 11:56:23 - 10:00:45 = Don't ask this again. Date: Mon, 20 Aug 2001 19:14:41 +1000 (EST) From: speedboy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] time in php hi. how I compare two times with php? 12:23:50 - 13:12:00 = ??? Convert

[PHP] Re: time

2001-08-22 Thread Raphael Pirker
convert both to a timestamp... check http://www.php.net/manual/en/function.mktime.php for more info -- 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

Re: [PHP] transfer tables to another database?

2001-08-22 Thread speedboy
hi. I want to transfer tables to another database. how?? Have you read the documentation on backing up and restoring databases/tables in postgresql? http://www.ca.postgresql.org/users-lounge/docs/7.1/admin/backup.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] thanks

2001-08-22 Thread nafiseh saberi
thanks for time and pg_dump. nafiseh. -- 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] time

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 16:11, nafiseh saberi wrote: hi. how do I can wrk with time: 11:56:23 - 10:00:45 = thanks. Have a look at the date and time functions - convert the time to seconds and do the calculation (mktime) then turn it back to whatever format you like. -- David Robley

[PHP] Problems benchmarking php Scripts

2001-08-22 Thread Jens Kisters
Hello together, I have been trying to benchmark the backend scripting for a flash online game, for this purpose i wrote another PHP Script that uses fopen to make exactly the same requests the flash movie would make with the same timing, and writes a log of the game session into a database. I

[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:

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; echo a

[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 WHERE

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

[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

[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,

[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

[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 to the

[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 FilesMatch .(gif|jpg) Order Allow,Deny Allow from env=local_ref /FilesMatch We use this to prevent people from directly linking to .gif and .jpg files. This

[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] address is

[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

[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? ? $GrabURL = http://grabfile.html;; $GrabStart = start; $GrabEnd = stop; $file = fopen($GrabURL, r); $rf =

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

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

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:

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

2001-08-22 Thread Andrey Hristov
Use gmmktime() or mktime() example : ?php echo gmmktime(12,12,0,1,1,1970); // format(hour,minute,second,month,day,year) // counting starts from 1/1/1970 so if you set this day you will receive the secongs // gmmktime accoring GMT or mktime() accoring you local time (mine is GMT+3) // so 12:12:00

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 external URL

[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 FilesMatch .(gif|jpg) Order Allow,Deny Allow from env=local_ref /FilesMatch We use this to prevent people from

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.

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 the

[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

[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

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

2001-08-22 Thread Andrey Hristov
form ENCTYPE=multipart/form-data method=post name=form action=?php echo $PHP_SELF;? input type=file name=new_file class=textfield /form -=-=-=-=-=-=-=-=-=- ?php var_dump($HTTP_POST_FILES);? or: ?php if (preg_match('/(http:\/\/.*)/', $HTTP_POST_FILES['new_file']['name'], $matches)){ echo

[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,

[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: vuln-dev.list-id.securityfocus.com List-Post: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Unsubscribe: mailto:[EMAIL

[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

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

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't in

[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

[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 is

[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

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

[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

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 html head Bla bla ?php header(Location : any_script.php\n\n);? /head body /body /html Why? Because there is already content sent to the browser. If some code uses header() place

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

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. ?php $dblink = mysql_pconnect(localhost,username,password); mysql_select_db(DB); ? !-- HTML PAGE -- ?php $query = Select count from counter; if(

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. ?php include 'db.lib.php'; include 'webstats.lib.php'; class ClientBrowser{//-=-=-=-=-=--==-=-=-=--==-=-=-=-=-=-=-=-=-=-=-=-class

[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

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

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]] Sent:

[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

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

[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()

[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, are

[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!? Make

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 endangered

[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 to

[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: I

[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

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 free

[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

[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

[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 /HTML..Did anyone have a similar experience? Can anyone help me out please? -- PHP General Mailing List

[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 /HTML..Did anyone have a similar experience? Can anyone help me out please? I guess you

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 /HTML..Did anyone have a similar experience? Can anyone help me

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 /HTML..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 ? if(isset($foo)) {? html 1 ? } else { ? html2 /html - You'll get an error in the last line, where the /html resides. Hope this is a

[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

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

[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 ?php class Sub_A { // constructor function Sub_A($parent) { $this-parent = $parent; } function Modify($text) {

[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

[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

[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

[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

[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: !-- Start Navigation -- div id=navbar table class=navtable width=160 cellpadding=4 !-- Navigation Bar Heading -- tr td class=navheadWelcome/td /tr trtd class=navtext id=sela href=Home/a/td/tr trtd class=navtexta href=Introduction/a/td/tr trtd class=navtexta

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: ?php # Beginning of script: session_start(); session_register('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

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: td class=navtext ?php if (sect == 5) print id=\sel\; ? 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

[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: !-- Start Navigation -- div id=navbar table class=navtable width=160 cellpadding=4 !-- Navigation Bar Heading -- tr td class=navheadWelcome/td /tr trtd

[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

[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

  1   2   >