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

2001-08-22 Thread Martin Hughes
Thanks everyone for the help!!! Martin -- 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] Sorting IP Address Data

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 12:58, Chris Aitken wrote: > Hi all, > > Just a quick one, > > I am pulling a whole Class C list of IP addresses, and im trying to > sort them in order, but im getting it displayed > > 127.0.0.1 > 127.0.0.10 > 127.0.0.100 > 127.0.0.101 > 127.0.0.102 > > etc. Is there any other

Re: [PHP] Re: imagemagick and file size

2001-08-22 Thread Ben-Nes Michael
Yep, I know. I just wrote the function as a general description. thanks for the tip on strlen, thats what I need. - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 2:01 AM Subject: [PHP] Re: imagemagick and file size

[PHP] Scripts..flatfile

2001-08-22 Thread ReDucTor
Hello everyone, What scripts do you know of or have made that store all there information in a file(flatfile d/b), that use php, and will allow someone to setup a system for hosting these scripts(if its your script and you want your ads there, tell me), this is just so i can have a few examples,

Re: [PHP] who can give me a article about begining Regular expression?

2001-08-22 Thread Pavel Jartsev
liufeng wrote: > > thanks! > i want to learn Regular expression. http://www.php.net/manual/en/pcre.pattern.syntax.php -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Sablotron and remote URI's

2001-08-22 Thread Darron Froese
For some reason - this works just fine: $processor = xslt_create(); xslt_run($processor, 'diary.xsl', 'test.xml'); print xslt_fetch_result($processor); xslt_free($processor); While this doesn't work at all: $processor = xslt_create(); xslt_run($processor, 'diary.xsl', 'http://baby.froese.org/ba

[PHP] Sablotron configure options...

2001-08-22 Thread Darron Froese
Do I need to use "--enable-xslt" as this bug report seems to indicate? Or are these enough to enable Sablotron and get XSLT processing properly: --with-sablot --with-xslt-sablot --with-expat-dir=/usr It appears to be basically functional - transform

Re: [PHP] Sorting IP Address Data

2001-08-22 Thread Chris Fry
Chris, Understand the problem now. All you need to keep is the last octect of the IP Address. The following code snippet generates an array entry for each ip. The array is then sorted and the result prepended with the base IP. "; $aryIP[$i] = $strIP; } sort($aryIP); for ($i=0;$i<=255;$i++

Re: [PHP] Advanced Form Processing HELP

2001-08-22 Thread Egan
On Thu, 23 Aug 2001 05:24:17 -0700, "Arcadius A." <[EMAIL PROTECTED]> wrote: : >How could i make the values filled in the form remain unchanged even after >the user click on the browser "Refresh/Reload" button without submittingf >the form ? Until they submit the form, PHP has nothing to act

[PHP] Re: Advanced Form Processing HELP

2001-08-22 Thread Raphael Pirker
"Lang Sharpe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can't be done AFAIK. Because your webserver never receives the information > when the page is reloaded, you can't send it back to him when he reloads. only partly correct. it can't be done using PHP

Re: [PHP] GET method and forms....

2001-08-22 Thread Egan
On Thu, 23 Aug 2001 03:23:16 +0100, "Seb Frost" <[EMAIL PROTECTED]> wrote: >> how do I prevent getting &submit=shop%21 in the url window? > reason to use get, I want variables to become part of the url. Using a frameset prevents the GET url from appearing in the browser window, if that's all yo

[PHP] Re: GET method and forms....

2001-08-22 Thread Gregory
Use "button" element instead of "submit" like this: Gregory "Seb Frost" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > how do I prevent getting &submit=shop%21 in the url window? > > > Email address: > > > > - seb -- PHP General M

Re: [PHP] Re: COM

2001-08-22 Thread Lara J. Fabans
At 05:40 PM 8/22/2001 -0500, Richard Lynch wrote: > > I heard refs on using the COM interface to access MS Word files. > > > > Is this a procedure an interface that only works on Windows systems (as > > that is where Word runs)? > >Yes... > >Almost for sure... > >There *MIGHT* be some hack port of

[PHP] Re: Sorting IP Address Data

2001-08-22 Thread Gregory
That looks clumsy, but it will work : you could make a multidimensional hash (treat it like table) like ips["first"][x] ips["second"][x] etc it is like table "ips": first | second | third | etc - 127 |0 | 0 | 127. |0 | 1

[PHP] $HTTP_REFERER problem

2001-08-22 Thread pekesan
I know that some browsers doesn't gives support to $HTTP_REFERER variable ( lynx in example). I am thinking on checking the browser ident (with HTTP_USER_AGENT) and managing $HTTP_REFERER as a session var in those cases who doesn't give support. But it would be great that if somebody found ano

[PHP] Re: Sorting IP Address Data

2001-08-22 Thread Raphael Pirker
> 127.0.0.1 > 127.0.0.10 > 127.0.0.100 > 127.0.0.101 > 127.0.0.102 well, this looks pretty sorted to me :) you wanted them sorted by numeric value, right?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] Problems compiling with Apache 2.0 Alpha 22

2001-08-22 Thread The Doctor
Can anyone explain what I am getting this? Script started on Wed Aug 22 21:34:29 2001 doctor.nl2k.ab.ca//usr/source/php-4.0.6$ config2phpdso loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes ch

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

2001-08-22 Thread Hugh Danaher
Richard, Thanks for your help. I'll try the error_log() and see what comes out. Hugh - Original Message - From: Richard Lynch <[EMAIL PROTECTED]> To: Hugh Danaher <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 1:21 PM Subject: Re: [PHP] Re: if statement and imageline() > No. 150

[PHP] Re: Advanced Form Processing HELP

2001-08-22 Thread Lang Sharpe
Can't be done AFAIK. Because your webserver never receives the information when the page is reloaded, you can't send it back to him when he reloads. Lang Sharpe Arcadius A. wrote: > Hello ! > I have a simple form ("feedback.php") that could allow users to send me > seedbacks... the form is pro

Re: [PHP] Sorting IP Address Data

2001-08-22 Thread Chris Fry
Chris, What order are you trying to achieve? These look to be in order? Chris Chris Aitken wrote: > Hi all, > > Just a quick one, > > I am pulling a whole Class C list of IP addresses, and im trying to sort > them in order, but im getting it displayed > > 127.0.0.1 > 127.0.0.10 > 127.0.0.100 >

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

2001-08-22 Thread Elias Santiago
Not necessarily an answer but on my work (a computer center for medical students) we use a propietary Perl web-based course software and when doing attachments on email messages on the system's bulletin board, the system sends a header with "appplication/octet-stream" and IE 5.5 "attaches" the .ht

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

2001-08-22 Thread Elias Santiago
You need to go to: Tools -> Internet Options -> Content (tab) -> Autocomplete -> clear the box beneath "User names and passwords on forms" also press "Clear Passwords" if you're concerned about passwords being remembered. Just check/uncheck the options you need. "Gabe Da Silveira" <[EMAIL PROTE

[PHP] Sorting IP Address Data

2001-08-22 Thread Chris Aitken
Hi all, Just a quick one, I am pulling a whole Class C list of IP addresses, and im trying to sort them in order, but im getting it displayed 127.0.0.1 127.0.0.10 127.0.0.100 127.0.0.101 127.0.0.102 etc. Is there any other way to sort this thinking they are numbers, rather than text ? Than

[PHP] Advanced Form Processing HELP

2001-08-22 Thread Arcadius A.
Hello ! I have a simple form ("feedback.php") that could allow users to send me seedbacks... the form is processed(email is sent ) by the script "confirm.php". My question is : How could i make the values filled in the form remain unchanged even after the user click on the browser "Refresh/Relo

Re: [PHP] Re: The future of PHP

2001-08-22 Thread Thomas Deliduka
On 8/22/2001 10:52 PM this was written: > I don't know if you refer to this list or other one, but I've been a > webmaster since 1993 and in computers in general since 1988 and I also > consider myself of the "advanced" type. It definitely wasn't this list. It's another one. -- Thomas Deliduk

[PHP] Looking for PHP job in US

2001-08-22 Thread Gregory
Hi! The company, I was working for, cut 30% of it's power in one day. So, I'm looking for a PHP related job in US. My major experience is PHP/Perl/C++/JavaScript/DHTML front-end and back-end development using various DBMS like MySQL, PosgreSQL, Oracle and other. Here is my short resume. If you'

Re: [PHP] The future of PHP

2001-08-22 Thread Elias Santiago
Just by looking at M$ history we all know that their only interest is $$money$$. Even if the product is not fully tested/bug-free and if 20% of it works, they spit it out and leave the dirty work (and headaches) to the system administrators and everyone else who's not a "plain non-technical user"

Re: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread Elias Santiago
I have learned (and used) both PHP and ASP. However, when I was beginning with PHP, I always made it first on ASP then re-implemented on PHP. I always found PHP to be easier, shorter (but more powerful) logic (scripts are shorter than ASP). I guess it has served me well, I have learned to do it

Re: [PHP] The future of PHP

2001-08-22 Thread Rasmus Lerdorf
> So, the jist is, what does PHP have to offer to the web in the future? I > think it's still a viable option that will be around for at least another > 6-7 years. This kid thinks it's shelf life is another 3. What do ya'll > think? Personally I would be a hell of a lot more worried if I was in

RE: [PHP] Re: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Don Read
On 22-Aug-2001 Jay Paulson wrote: > I've checked and the ROOT user has access to everything... but still no > luck.. when i run the mysql -u root -p < 'all_databases.sql' it gets to the > first table and tries to insert some information into it and says "blah > table is read only" and it stops...

RE: [PHP] Re: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Don Read
On 22-Aug-2001 Jay Paulson wrote: > I've checked and the ROOT user has access to everything... but still no > luck.. when i run the mysql -u root -p < 'all_databases.sql' it gets to the > first table and tries to insert some information into it and says "blah > table is read only" and it stops...

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

2001-08-22 Thread Don Read
On 22-Aug-2001 Jess Ragaza wrote: > > It would seem like the nursing shortage here would be for years to come. No doubt. I'll check with Mom, but I don't think i've nursed in some 40 years. -- Don Read [EMAIL PROTECTED] -- It's always darkest before

[PHP] who can give me a article about begining Regular expression?

2001-08-22 Thread liufeng
thanks! i want to learn Regular expression.

[PHP] Re: The future of PHP

2001-08-22 Thread Elias Santiago
"Thomas Deliduka" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > A little background... Skip to "THE JIST" if you wanna make this quick. > > I am on this webmaster's list where most of the people are fairly new > webmasters. They're just getting the hang of thi

[PHP] The future of PHP

2001-08-22 Thread Thomas Deliduka
A little background... Skip to "THE JIST" if you wanna make this quick. I am on this webmaster's list where most of the people are fairly new webmasters. They're just getting the hang of things. I am probably one of the only advanced ones on there (not to toot my own horn really) and I'm one of t

Re: [PHP] using PHP to browse and select a file on a local machine

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 11:11, Don wrote: > Hi, > > I am running PHP 4.01 in a FreeBSD environment with Apache server. Is > there a way I can use PHP to browse the users PC and choose a file > (choose = placing it in a text box)? > > Thanks, > Don Forrtunately , no. I wouldn't want someone wandering

RE: [PHP] GET method and forms....

2001-08-22 Thread Seb Frost
But I have good reason to use get, I want all the other variables to become part of the url. - seb -Original Message- From: ERISEN, Mehmet Kamil [mailto:[EMAIL PROTECTED]] Sent: 23 August 2001 03:10 To: Seb Frost; [EMAIL PROTECTED] Subject: Re: [PHP] GET method and forms instead of

Re: [PHP] path to php

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 11:05, ReDucTor wrote: > does anyone know all the possible paths to php...because i can't seem > to find it on my current host...i have tried using the following > > php /path/to/script.php > /usr/php /path/to/script.php > /usr/local/bin/php /path/to/script.php > /usr/bin/php /

Re: [PHP] GET method and forms....

2001-08-22 Thread ERISEN, Mehmet Kamil
instead of method="GET" use method="POST" --- Seb Frost <[EMAIL PROTECTED]> wrote: > how do I prevent getting &submit=shop%21 in the url > window? > > > Email address: size="20"> > name="submit"> > > > - seb > > -- > PHP General Mailing List (http://www.php.net/) > T

[PHP] GET method and forms....

2001-08-22 Thread Seb Frost
how do I prevent getting &submit=shop%21 in the url window? Email address: - seb -- 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:

[PHP] Re: strange upload/db-insert problem with ie5.5

2001-08-22 Thread Serge Adamowsky
hey, thanks for the reply, richard yes, most is done in one script, the very last step was because i had to reuse the code and didn't want to forcefully merge it into my script. btw, i solved my inital problem, i had to revisit the designer's html-code, duh ;) next time i will be more attentiv

[PHP] using PHP to browse and select a file on a local machine

2001-08-22 Thread Don
Hi, I am running PHP 4.01 in a FreeBSD environment with Apache server. Is there a way I can use PHP to browse the users PC and choose a file (choose = placing it in a text box)? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

[PHP] path to php

2001-08-22 Thread ReDucTor
does anyone know all the possible paths to php...because i can't seem to find it on my current host...i have tried using the following php /path/to/script.php /usr/php /path/to/script.php /usr/local/bin/php /path/to/script.php /usr/bin/php /path/to/script.php but i still can't seem to get it to

[PHP] using PHP to browse and select a file on a Windows machine

2001-08-22 Thread Don
Hi, I am running PHP 4.01 in a FreeBSD environment with Apache server. Is there a way I can use PHP to browse the users PC and choose a file (choose = placing it in a text box)? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread Dave
I would say that depends on what platform you wish to market yourself on. Being of *nix mind... PHP works beautifully for virtually all aspects of Web based scripting, and personally i use it for a vast majority of server scripting as well. And if not, it isn't a far cry from Perl syntax and tr

Re: [PHP] insert hyperlink to mysql query result

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 10:56, Andras Kende wrote: > Hello, > > I have a mysql query with addresses , trying to insert a link to a map > > line 51 > echo " href=http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1=$amyrow["addr >ess"] &city1=$amyrow["city"]&stnm1=CA&zipc1=&cnty1=4>Map"; > echo ""; > >

Re: [PHP] insert hyperlink to mysql query result

2001-08-22 Thread ReDucTor
echo "http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1=".$amyrow["address "]." &city1=".$amyrow["city"]."&stnm1=CA&zipc1=&cnty1=4>Map"; echo ""; - Original Message - From: "Andras Kende" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 11:26 AM Subject: [PHP]

[PHP] Re: php-counter

2001-08-22 Thread Raphael Pirker
http://php.resourceindex.com/Complete_Scripts/Access_Counters/ -- 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] insert hyperlink to mysql query result

2001-08-22 Thread Andras Kende
Hello, I have a mysql query with addresses , trying to insert a link to a map line 51 echo "http://www.expedia.com/pub/agent.dll?qscr=mcst&strt1=$amyrow["address";] &city1=$amyrow["city"]&stnm1=CA&zipc1=&cnty1=4>Map"; echo ""; Error Message: Parse error: parse error, expecting `T_STRING' or `T

RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer
At 01:29 AM 8/23/01 +0100, you wrote: >Ah ha, but am I better off becoming a PHP guru or a >jackofalltrades-notverygoodatanyofthem kind of person ;-) I don't know. I've learned both PHP and ASP, and neither of them have decreased the other in terms of learning. The fact is, you are going to le

RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread Jack Dempsey
Seb, I think the answer, tho it may not be a great one, is to become a jackofalltrades-verygoodatallofthem kind of person if you truly want to make yourself stand out... Whether you love php or not, you have to respect the power it gives you and the ease with which you can develop with it. Howev

Re: [PHP] HTTP headers and include()

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 10:06, Casteele/ShadowLord wrote: > Andy <[EMAIL PROTECTED]> wrote in article > <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>... > > > See if is there some kind of echo before header()s, or HTML sent to > > browser. > > No, I've been extremely careful to avoid that. The following a

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

2001-08-22 Thread Richard Lynch
> - extension_dir = "c:\windows\system\" Try / instead of \ -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP Genera

[PHP] Re: Move recordset to first record problems...

2001-08-22 Thread Richard Lynch
> How to move recordset to the first record (i use to connect to database > using ODBC). http://php.net/manual/en/function.odbc-fetch-row.php "To step through the result more than once, you can call odbc_fetch_row() with row_number 1, and then continue doing odbc_fetch_row() without row_number t

[PHP] Re: COM

2001-08-22 Thread Richard Lynch
> I heard refs on using the COM interface to access MS Word files. > > Is this a procedure an interface that only works on Windows systems (as > that is where Word runs)? Yes... Almost for sure... There *MIGHT* be some hack port of COM objects to Un*x, but you'd be better off using a doc2xxx ut

[PHP] Re: someone please explain weird getforeignkeys

2001-08-22 Thread Richard Lynch
> 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. Yes. > Because the approach is not intuitive anyhow and there is no documentation > available except of the P

Re: [PHP] Concept of Templates

2001-08-22 Thread Richard Lynch
> Does the link itself send any > information someplace that tells the server what information is needed and > how it has to be performed or placed? By definition, this must be true. (Short of some stupid JavaScript hack that would really suck...) You'll have to design your system such that eve

[PHP] Re: Problems benchmarking php Scripts

2001-08-22 Thread Richard Lynch
>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 run this script

[PHP] Re: column_name

2001-08-22 Thread Richard Lynch
> 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

[PHP] Re: imagemagick and file size

2001-08-22 Thread Richard Lynch
> 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 image size > while its stored in the variable. Use http://p

[PHP] "Email this page to a friend"

2001-08-22 Thread Seb Frost
How can I implement this in php? -seb -- 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] Any point in learning ASP/JSP etc?

2001-08-22 Thread Seb Frost
Ah ha, but am I better off becoming a PHP guru or a jackofalltrades-notverygoodatanyofthem kind of person ;-) Well I've never used scripting of any sort before PHP, just c++ really. I'll stick to php i guess (for now). - seb -Original Message- From: John Meyer [mailto:[EMAIL PROTECTED]]

Re: [PHP] HTTP headers and include()

2001-08-22 Thread Casteele/ShadowLord
Andy <[EMAIL PROTECTED]> wrote in article <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>... > See if is there some kind of echo before header()s, or HTML sent to > browser. No, I've been extremely careful to avoid that. The following are the two test files I've been using to try to solve this.. (s

Re: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer
At 01:10 AM 8/23/01 +0100, you wrote: >Or is PHP the be-all and end all? > >I know its strong points, but what are the WEAK points of PHP? > >- seb PHP isn't default on Microsoft systems You have to learn a new language for PHP: ASP is basically either VBScript or JScript around some objects. T

[PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread Seb Frost
Or is PHP the be-all and end all? I know its strong points, but what are the WEAK points of PHP? - seb -- 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: [E

RE: [PHP] Creditcard checksum and identification

2001-08-22 Thread Jason Murray
Here's what I pulled from px.sklar.com and modified to suit my own devious ends... :) http://www.analysisandsolutions.com/code/ccvs-ph.htm // Checks the 1st 4 digits for validity, then checks // that the card number is the right length, and checks // the mod10 test, and finally ch

Re: [PHP] Creditcard checksum and identification

2001-08-22 Thread Egan
On Thu, 23 Aug 2001 00:22:28 +0200, Peter Ostry <[EMAIL PROTECTED]> wrote: >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

RE: [PHP] Random PowerBall Generator

2001-08-22 Thread Jerry Lake
if array_unique does what I think, The biggest problem with that is that Powerball being a reasonable semblance of random, does allow non-unique series to be selected. i.e. the powerball can be the same as one of the other five. Jerry Lake Interface Engineering Technician -Original Messa

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Matthew Loff
1) strftime("%T on the %D", strtotime($yourdate)); Should produce: 00:12:45 on the 08-22-2001 You can check the manual page for strftime() to see different ways to format the time to your liking: http://www.php.net/manual/en/function.strftime.php 2) The way you're trying to do that sound

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

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

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

[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] 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] 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] 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] 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: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Gabe da Silveira
I know nothing about this, but did you investigate 'SHOW TABLE STATUS' for any clues? In article <018601c12b3c$2c2970b0$6e00a8c0@webdesign>, [EMAIL PROTECTED] (Jay Paulson) wrote: > I've checked and the ROOT user has access to everything... but still no > luck.. when i run the mysql -u root -p

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

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

[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] 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] 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] 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] 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";

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

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

[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

[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: [PHP-DB] restoring mysql db after mysqldump

2001-08-22 Thread Jay Paulson
I've checked and the ROOT user has access to everything... but still no luck.. when i run the mysql -u root -p < 'all_databases.sql' it gets to the first table and tries to insert some information into it and says "blah table is read only" and it stops... jay - Original Message - From: "

[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

  1   2   >