Re: [PHP] shtml problem

2002-06-18 Thread Analysis & Solutions
On Tue, Jun 18, 2002 at 12:40:40PM +0300, savaidis wrote: > > echo (' frameborder=0>'); Not that this is your problem, but rather a warning that you're heading in a bad direction... iframes don't work in Netscape 4 (at least when Java'Scrap is turned off). --Dan -- PHP classes

RE: [PHP] sessions trouble

2002-06-18 Thread Johnson, Kirk
Is your version of PHP new enough to support the new $_SESSION[] array? If it is not, use $HTTP_SESSION_VARS[]. > -Original Message- > From: Leston Drake [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 18, 2002 12:29 PM > To: Johnson, Kirk > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] ses

Re: [PHP] Crontabs

2002-06-18 Thread Analysis & Solutions
On Tue, Jun 18, 2002 at 08:55:54PM +0100, Matthew Ward wrote: > What do you mean by "appropriate #! at the top"? When you write a script that you want to be executable, you put in the pound bang at the top, telling the operating system which program to use to run the script. So, for example, a

Re: [PHP] Crontabs

2002-06-18 Thread Clay Loveless
He's referring to the script parser executable, ala: #!/bin/sh #!/usr/bin/perl In this case, you'd need the PHP "cgi" version installed, and do your script like this: #!/usr/bin/php -q Set the script to executable, then set up a crontab entry with the path to the script.

RE: [PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Steve
Link: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 12:37 PM To: [EMAIL PROTECTED] Subject: [PHP] linux: how can I check if php/mysql is working properly? i have so

Re: [PHP] __FILE__ and DOCUMENT_ROOT

2002-06-18 Thread Analysis & Solutions
On Mon, Jun 17, 2002 at 04:38:09PM -0500, Taylor York wrote: > The problem is, I am doing this to an include file, so SCRIPT_FILENAME would > just return the filename for the top file, not the include. So, use __FILE__ and strip out the unneeded directories. Also, please don't start multiple thr

Re: [PHP] Checking for NULL value in Database

2002-06-18 Thread Analysis & Solutions
On Mon, Jun 17, 2002 at 10:46:27AM -0400, Andre Dubuc wrote: > I'm tryiing to append entries in a db textarea field 'rbook'. Everything > works fine IF there is an existing entry. However, if no entries exist, it > nothing is written to the db. (PostgreSQL 7.2) I'm not familliar with PostgreSQL

Re: [PHP] Crontabs

2002-06-18 Thread Matthew Ward
What do you mean by "appropriate #! at the top"? "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Matthew: > > On Tue, Jun 18, 2002 at 08:48:19PM +0100, Matthew Ward wrote: > > > > Basically, I want to get a PHP script to run every set am

Re: [PHP] Crontabs

2002-06-18 Thread Analysis & Solutions
Matthew: On Tue, Jun 18, 2002 at 08:48:19PM +0100, Matthew Ward wrote: > > Basically, I want to get a PHP script to run every set amount of time, so > what do I have to type in the "Command" box to get a PHP script to run? If your script has the appropriate #! at the top, you can type in the pa

Re: [PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Tyler Longren
Just for future reference, you don't actually need to put the 'echo' before the phpinfo(). Calling phpinfo() by itself will print the desired info. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 18 Jun 2002 15:30:38 -0400 (EDT) Scott <[EMAIL PROTE

Re: [PHP] Perl inside PHP

2002-06-18 Thread Matthew Ward
See here: http://www.php.net/manual/en/function.virtual.php "Chris Knipe" <[EMAIL PROTECTED]> wrote in message news:064401c21654$310e4d40$[EMAIL PROTECTED]... > Yeah, urgh, not exactly what I was hoping on, but I'll give executing perl a > try... I want to stay as far away as possible from mod_pe

Re: [PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Scott
If you told RH to install PHP/MySQL/Apache then everything should be ok. I forget the default document root, but what happens if you put a test.php with this in it: Other than that it should work out of the box, just make sure you get the patches. On Tue, 18 Jun 2002, Phil Schwarzmann w

[PHP] Crontabs

2002-06-18 Thread Matthew Ward
I want to set up a crontab using my hosts control panel, and when i go to set one up there are boxes for how frequently you want the task to run, and one labelled "Command". Basically, I want to get a PHP script to run every set amount of time, so what do I have to type in the "Command" box to ge

RE: [PHP] New to PHP...preliminary question

2002-06-18 Thread Chris Guest
Thanks for the reply. Will the install of PHP put the necessary lines in the httpd.conf file for me? I looked in my conf file and see no references to php. Thanks, Chris -Original Message- From: Jerome Houston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 3:25 PM To: [EMAIL PR

[PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Phil Schwarzmann
i have some php files in /var/www/html/ and none of the php is working properly. all i've done so far is installed Linux Red Hat 7.2 and php/mysql/apache is supposedly already installed with Redhat. How do I get this stuff configured? Anyone have a nice link?

Re: [PHP] sql commnad in a for loop !

2002-06-18 Thread Analysis & Solutions
Uh, Mr Flesh: On Tue, Jun 18, 2002 at 05:54:21PM +0100, Septic Flesh wrote: > > for $day=1 until $day=31 > { > count how many records (rows) there are in the tracker table, > without counting rows that contain the same "user_id" value, > when the day=$day. > } What have you tried so far? Did y

Fw: [PHP] Session wierdness

2002-06-18 Thread Kevin Stone
I have experience similar "flakiness" using sessions but in every case discovered that it was my code that was at fault. In fact this happened to me recently while I was programming a fairly complex login script. I'd do print_r($_SESSION) at the top of every page after session_start(); See if y

Re: [PHP] New to PHP...preliminary question

2002-06-18 Thread Jerome Houston
Hi, >I am interested in setting up PHP on my web server. I have a RH 7.3 Linux >server that is running apache v1.3.19 with Frontpage v5.0 extensions. Will >the installation of PHP affect my current server...meaning will it kill >anything (web server stop working). I just don't want to start a

[PHP] Session wierdness

2002-06-18 Thread Rob Walls
Is it possible to use PHP sessions reliably? I get very inconsistent results. I register session vars after a password check. I use session_start at the top of every file. I watch the /tmp directory for session files. Within a few random page transitions the session data inside the registered vari

Re: [PHP] sql help ?

2002-06-18 Thread w . w . w
> or one line for each sess_id with only one row: > select * from tracker where count(sess_id)=1 and day='1' and month=' > ".$month." ' group by sess_id; sorry that was wrong! correct: select * from tracker where day='1' and month=' ".$month." ' group by sess_id having count(sess_id)=1; michi

Re: [PHP] Ascii Value

2002-06-18 Thread Kevin Stone
The functions you want are ORD() and CHR(). Search for them in the manual. -Kevin - Original Message - From: "James Drabb" <[EMAIL PROTECTED]> To: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 12:57 PM Subject: [PHP] Ascii Value > Hey *, > > In C I can cast a

[PHP] New to PHP...preliminary question

2002-06-18 Thread Chris Guest
Hi, I am interested in setting up PHP on my web server. I have a RH 7.3 Linux server that is running apache v1.3.19 with Frontpage v5.0 extensions. Will the installation of PHP affect my current server...meaning will it kill anything (web server stop working). I just don't want to start anythin

Re: [PHP] Ascii Value

2002-06-18 Thread Jerome Houston
http://www.php.net/manual/en/function.ord.php Original Message Follows From: "James Drabb" <[EMAIL PROTECTED]> Hey *, In C I can cast a char 'j' to an int and get it's ascii value. Is there a funciton in PHP to do this with a string containing a single char (i.e. "j")? I could writ

Re: [PHP] sql help ?

2002-06-18 Thread w . w . w
> select * from tracker where day='1' and month=' ".$month." ' XXX"; > > XXX = but donot return values with the same value in the "sess_id" field > > what should XXX be ? one line for each sess_id select * from tracker where day='1' and month=' ".$month." ' group by sess_id; or one

[PHP] sql help ?

2002-06-18 Thread Septic Flesh
select * from tracker where day='1' and month=' ".$month." ' XXX"; XXX = but donot return values with the same value in the "sess_id" field what should XXX be ? thanks in advance... -- Sapilas@/dev/pinkeye -- PHP General Mailing List (http://w

Re: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
Ok, tried that. No difference. At 12:49 PM 6/18/2002, you wrote: >Try using the fuction session_write_close() after your done setting the >session vars. > >dunno but it might work :) > >Rick >- Original Message - >From: "Leston Drake" <[EMAIL PROTECTED]> >To: "Johnson, Kirk" <[EMAIL PROT

Re: [PHP] using a variable stored in a variable.

2002-06-18 Thread Lowell Allen
> From: "Renaldo De Silva" <[EMAIL PROTECTED]> > > how can i use a variable stored in a vaiable in a if statement? > Check the manual info on variable variables: -- Lowell Allen -- PHP General Mailing List (http://www.php.net/)

[PHP] Ascii Value

2002-06-18 Thread James Drabb
Hey *, In C I can cast a char 'j' to an int and get it's ascii value. Is there a funciton in PHP to do this with a string containing a single char (i.e. "j")? I could write a big switch for all the chars of the alphabet, however I was hoping for a better approach? Jim Drabb -- -

Re: [PHP] sessions trouble

2002-06-18 Thread Rick Kukiela
Try using the fuction session_write_close() after your done setting the session vars. dunno but it might work :) Rick - Original Message - From: "Leston Drake" <[EMAIL PROTECTED]> To: "Johnson, Kirk" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 1:28 PM Subject

[PHP] using a variable stored in a variable.

2002-06-18 Thread Renaldo De Silva
how can i use a variable stored in a vaiable in a if statement? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
I have register_globals=Off (which is what I prefer to program for). But if I change register_globals to On, and use the session_register() function, it works. With register_globals Off, using $_SESSION doesn't work. I thought that $_SESSION would work regardless of whether register_globals was

[PHP] Re: phpmyadmin - moving data from one database to another

2002-06-18 Thread Taylor York
Just dump the data and structure to an SQL file, choose save as file, then run all the code in the file on the next server. Taylor York "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The lazy and worthless a-holes at www.infinitehost.com (

RE: [PHP] sessions trouble

2002-06-18 Thread Leston Drake
Actually, I've tried it both ways (register_globals=On and register_globals=Off). Same result with either setting. At 12:19 PM 6/18/2002, you wrote: >Check the register_globals setting in php.ini. It looks like it is "on" on >the problem server. If so, then you have two choices: >1. Turn it "of

RE: [PHP] sessions trouble

2002-06-18 Thread Johnson, Kirk
Check the register_globals setting in php.ini. It looks like it is "on" on the problem server. If so, then you have two choices: 1. Turn it "off" 2. Change your code to this style: session_start(); $node = 10.2; session_register('node'); echo $node; Kirk > -Original Message- > From: Les

Re: [PHP] cannot find mysql_connect; _pconnect

2002-06-18 Thread Rasmus Lerdorf
Well, check. rpm -ql php-mysql On Tue, 18 Jun 2002, Anthony 'Crash' Ciarochi wrote: > Nope, that's not it. 'extension=mysql.so' was already uncommented in > /etc/php.ini > > Where is this library supposed to live? I only see the client libraries in > /usr/lib/mysql/ (mysqlclient.so, etc.). >

Re: [PHP] cannot find mysql_connect; _pconnect

2002-06-18 Thread Anthony 'Crash' Ciarochi
Nope, that's not it. 'extension=mysql.so' was already uncommented in /etc/php.ini Where is this library supposed to live? I only see the client libraries in /usr/lib/mysql/ (mysqlclient.so, etc.). - AFC - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Anthony 'Cr

[PHP] Re: [PHP-DEV] static not working as expected

2002-06-18 Thread Purushotham Komaravolu
Thanks for your prompt answer.If that's the case then, how do I define a singleton class? Regards, Puru - Original Message - From: "Markus Fischer" <[EMAIL PROTECTED]> To: "Purushotham Komaravolu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 200

[PHP] Re: [PHP-DEV] static not working as expected

2002-06-18 Thread Markus Fischer
'statis' is ONLY used inside functions. You need the 'var' keyword to define class property. This is true for ZE1, I can't tell if ZE2 has static class properties, anyone else? - Markus On Tue, Jun 18, 2002 at 10:42:43AM -0700, Purushotham Komaravolu wrote : > > class Coun

[PHP] php server - ive installed linux red hat 7.2 — now what?!?

2002-06-18 Thread Phil Schwarzmann
okay, so I've installed linux red hat 7.2 and it's working well! ive heard that php/apache/mysql comes preinstalled with red hat. what do i need to do to get php/mysql up and running? also, how do i figure out my linux box's IP address? ipconfig doesn't work hehe. Thanks for your time!!!

Re: [PHP] Advanced User Authentication

2002-06-18 Thread George Whiffen
César aracena wrote: > I like very much the idea of using a "short" way. Actually, I did and > here's how: > > // After I queried the DB for a username & password match: > if (mysql_num_rows($result) > 0) > { > $row = mysql_fetch_array($result); > i

[PHP] sessions trouble

2002-06-18 Thread Leston Drake
Hello, I am unable to retrieve session variables on my local server. I'm using some code like this to test it (thanks to Ed): -- session_start(); echo ":" . $_SESSION["node"] . ""; $_SESSION["node"] = "10.2"; echo ":" . $_SESSION["no

Re: [PHP] error log apache over 250 mb after 2 weeks! undefinedvariable?

2002-06-18 Thread Michael Sweeney
It's nothing you have to worry about, but you need to edit your php.ini file and change the error reporting settings. Find the error_reporting directives (there will be several, all but one commented out) and uncomment the one that looks like: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING

[PHP] static not working as expected

2002-06-18 Thread Purushotham Komaravolu
counter; print "\n"; } } class SingletonCounter { static $m_instance = NULL; // throwing error here function Instance() { if (self::$m_instance == NULL) { self::$m_instance = new Cou

[PHP] variable declaration in class

2002-06-18 Thread Jens Lehmann
Can anyone explain me why the following code causes the parse error "... unexpected * ... " ? class test { var $a = 2*10; } Of course I know why there's a parse error, but I don't know the reason why PHP doesn't allow this multiplication, although it allows a statement like e.g. var $a = 20.

Re: [PHP] cannot find mysql_connect; _pconnect

2002-06-18 Thread Rasmus Lerdorf
You need to enable the mysql extension in your php.ini file: extension=mysql.so and then restart your server. -Rasmus On Tue, 18 Jun 2002, Anthony 'Crash' Ciarochi wrote: > I am having trouble connecting to my MySQL database: The error message I receive > in my browser is: > > Fatal error: C

[PHP] cannot find mysql_connect; _pconnect

2002-06-18 Thread Anthony 'Crash' Ciarochi
I am having trouble connecting to my MySQL database: The error message I receive in my browser is: Fatal error: Call to undefined function: mysql_connect() in ../results.php on line 21 The line in question is a simple db connection: $db = mysql_connect("localhost", "test", "test123"); Simila

[PHP] sql commnad in a for loop !

2002-06-18 Thread Septic Flesh
I wanna make the following sql query which looks a bit complicated., and put it in a for loop too for all days from 1 to 31. == for $day=1 until $day=31 { count how many records (rows) there are in the tracker table, without counting rows that con

[PHP] synchronize functions

2002-06-18 Thread w . w . w
Hi! Any idea, how to synchronize functions in php??? I also have access to perl - so if it isn't possible with php, perhaps with perl??? thanks for any hint, any idea or simple any mail!!! regards michael -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- PHP General M

Re: [PHP] server problems

2002-06-18 Thread Tom Ray
And what are the directory/file permissions where you are writing the archive files? - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Kris Vose" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 11:54 AM Subject: Re: [PHP] server problems > A

RE: [PHP] getting variables the hard way?

2002-06-18 Thread Rick Emery
$_POST[] $HTTP_POST_VARS[] - Original Message - From: "Renaldo De Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 3:21 PM Subject: [PHP] getting variables the hard way? how can i get variables posted from a form without calling then distinctly

[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Tim Gallagher
hey hey hey looks great to me. "can't we all just get along?" :) -timmyg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] linux redhat rpm packages

2002-06-18 Thread Chris Hewitt
Phil, The rpm stands for "RedHat Package Manager" and was written by them. They have allowed others to use it so the rpm is now meant to stand for something else. The rpm format allows for all dependencies, so it is likely to be less problematical than the tar.gzip versions (though it depends

[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Greg Beaver
This comment is inappropriate, unless you'd like to take on the website maintenance? He DID test it in 5.5, and it looked fine. What exact version and OS are you using? There are reported problems with Mac IE 5.0. There's a plan to fix the site at the end of this week. To test a website with

Re: [PHP] setting up a php/mysql server on linux

2002-06-18 Thread Chris Hewitt
Phil Schwarzmann wrote: >I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I >have some instructions to install php/mysql/apache and have a couple >questions... > > Fire away. > >Which is better, GNOME or KDE? I seem to like the feel of KDE better. > This is just for a use

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Christian Rellstab
i've seen this quite often and in my case, it always happens when you have en error in an "if" or similar sentence. then it always tells me theres an error on line 1 (ie 5.2 on mac os x). chris Am Dienstag den, 18. Juni 2002, um 17:12, schrieb Kevin Ruiz: > I'm sorry...I think I was unclear.

Re: [PHP] PHP to Excel?

2002-06-18 Thread 1LT John W. Holmes
In that case, here's a function I use to set an Excel header. ## # # Creates headers to send MS Excel file # ## function COM_ExcelHeader($filename = "download") { //MS Excel Headers header("Content-Typ

[PHP] getting variables the hard way?

2002-06-18 Thread Renaldo De Silva
how can i get variables posted from a form without calling then distinctly. i want to get the names of all the variables the form has poster automatically. can that be done and if it can how? Thanks Renaldo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Sessions and variables dum question

2002-06-18 Thread Justin French
When you're dealing with session variables, it's a good idea to refer to them using the new global variables. "; echo $_SESSION['pass'] . ""; } else { echo "not logged in"; } ?> Of course this is no where near production/secure code :D Justin on 19/06/02 1:54 AM, web

[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Markus Fischer
Hey, you should really teach your webmaser to fix the site. First I thought "okay, he doesn't like opera" but then .. It's even a mess in IE5.5. Only NS4.7 which I just had by chance renders it readable (yet it looks completely different layout-wise) ... um. Plain text wo

[PHP] Re: Date Comparsion

2002-06-18 Thread Lee Doolan
> "Jack" == Jack <[EMAIL PROTECTED]> writes: Jack> Dear all I had a form which let user to input the leave_from Jack> and leave_to date into, the format of the date that user Jack> input is "-mm-dd". Now i want to compare the leave_from Jack> and leave_to date to find ou

[PHP] Sessions and variables dum question

2002-06-18 Thread webmaster mbtradingco
Hi, maybe I'm doing something wrong but I can't figure out what. I have a little script that is supposed to handle two variables from a session, so when a user logs in: Session start() $user = "user" $pass = "pass"... redirects to another page. Now on the index page it reads Session start() G

[PHP] linux redhat rpm packages

2002-06-18 Thread Phil Schwarzmann
What exactly are these linux redhat rpm packages? Is this an 'easier' way to install mysql/php ??

[PHP] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Greg Beaver
June 18, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0rc2 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0rc2. This is a release candidate for 1.1.0 to ensure

RE: [PHP] PHP to Excel?

2002-06-18 Thread Chad Day
Annoying doesn't begin to describe it. I'm going with the HTML/Excel Header bit, since Biffwriter costs way too much for a for-profit business to use. Thanks anyway.. looks pretty neat, and I'll probably use it for some other projects I do. Thanks, Chad -Original Message- From: 1LT Joh

Re: [PHP] server problems

2002-06-18 Thread 1LT John W. Holmes
Are you sure display_errors is turned ON in php.ini on the new server? Do the two servers have different settings for register_globals in php.ini? ---John Holmes... - Original Message - From: "Kris Vose" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 11:12 AM Su

[PHP] setting up a php/mysql server on linux

2002-06-18 Thread Phil Schwarzmann
I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I have some instructions to install php/mysql/apache and have a couple questions... Which is better, GNOME or KDE? I seem to like the feel of KDE better. Does Apache or php or mysql already come preloaded on Linux Red Hat?

Re: [PHP] include statement errors -- something missing

2002-06-18 Thread Doug DeVries
I've tried a hundred different things -- YOURS WORKED! Thank you very much! -Doug - Original Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Monday, June 17, 2002 10:45 PM Subject: RE: [PHP] include statement errors -- something missing S

Re: [PHP] PHP to Excel?

2002-06-18 Thread 1LT John W. Holmes
The layout on that site is so annoying. Yeah, it looks pretty, but it's annoying. It's PHP2Excel BiffWriter that your looking for on that site. Should be one of the topics when you expand the central "dot" (after you close the "news' popup). annoying... Like someone else said, I just use HTML and

Re: [PHP] Re: phpmyadmin - moving data from one database to another

2002-06-18 Thread Scott
Can't he just dump the db to a file and then load it on the new server? I do that all of the time between my laptop and work. Dump the db into a sql file (choosing data and structure for the dump) Create a new db on the server then run: mysql -u xxx -p xxx -D (database name) < name_of_dump_fil

[PHP] Re: phpmyadmin - moving data from one database to another

2002-06-18 Thread BB
dump all the data to csv and read it in the other end! "Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The lazy and worthless a-holes at www.infinitehost.com (my host server) > are forcing me to move all my MySQL data from one server to anoth

AW: [PHP] PHP to Excel?

2002-06-18 Thread Martin Lucas
hi chad, on http://www.cnovak.com/ you'll find a php-class that generates native excel-files, even with cell formatings and other more or less useful things. greetings martin > -Ursprüngliche Nachricht- > Von: Chad Day [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 18. Juni 2002 16:

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Justin French
Your problem is undoubtably to do with the difference in line endings on mac/pc/unix. Basically, when PHP parses your file, it see's it all as one line, and is finding the error on LINE 1, which is correct. When the same file is saved on a unix or pc system, the line endings are different, and P

[PHP] exec() , shell_exec() , system() ???

2002-06-18 Thread prg
Hola/Hi , I'm having a problem when I tried to get a result from my script. I don't know how to fix it, I already read the on-line manual in php.net but still I have the same problem.. :( The "$result" (array) variable is empty. lenght = 0 I tried with: $result = shell_exec($cmdline); but it's

[PHP] phpmyadmin - moving data from one database to another

2002-06-18 Thread Phil Schwarzmann
The lazy and worthless a-holes at www.infinitehost.com (my host server) are forcing me to move all my MySQL data from one server to another because they are too dumb to fix it. I need to use phpmyadmin to move the data but i'm not %100 sure how to do it. There are some "view dump" commands. It

RE: [PHP] PHP to Excel?

2002-06-18 Thread J. Anderson Scarbrough
I often build simple reports using HTML tables and then add an Excel MIME header to the page which launches Excel. Since newer verions of Excell suport HTML natively, Excel can read the HTML tables and render them appropriately with all your formatting. I find this works well for simple repo

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Kevin Ruiz
I'm sorry...I think I was unclear. Even if my script has an error on say line 42 it still tells me that the error is on line 1. I've done some debugging and now that there's only one error on the page but it always tells me that the error is on line 1. Thanks. in article 1024412641.2218.2.cam

[PHP] server problems

2002-06-18 Thread Kris Vose
I just uploaded a php driven web site that use text files to archive data to a unix server. When I went to try and add another archive the script fails without a warning. It does not store the data in the text file and it does not add another archive. I wrote this application about 4 months

RE: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Andrew Hill
Kevin, This can either be set dynamically by the error_reporting() function, or changed in the php.ini file. http://www.php.net/manual/en/function.error-reporting.php http://www.php.net/manual/en/features.error-handling.php Best regards, Andrew Hill Director of Technology Evangelism OpenLink So

RE: [PHP] PHP to Excel?

2002-06-18 Thread Jay Blanchard
[snip] I'm trying to get data from my MySQL database into Excel using PHP. [/snip] [shameless plug] http://www.evolt.org/article/Using_MySQL_and_PHP_to_Present_Excel_Spreadshee ts/20/26896/index.html (watch wrap) [/shameless plug] HTH! Jay -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] PHP to Excel?

2002-06-18 Thread Adam Voigt
I may be completely off-base here, but I think thats more of an Excel compatible XML document thing, then a CSV which (I believe) is just data. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-18 at 10:52, Chad Day wrote: > I'm trying to get data from my MySQL database into Excel using PHP. I know

RE: [PHP] RE: ODBC for Informix

2002-06-18 Thread Andrew Hill
Hi Kevin, You can also obtain ODBC Drivers for Informix from OpenLink - http://www.openlinksw.com Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Virtuoso Universal Server -Original Message- From: Juraj Ha

[PHP] PHP to Excel?

2002-06-18 Thread Chad Day
I'm trying to get data from my MySQL database into Excel using PHP. I know and I am doing it right now by generating a CSV file, but is there any way I can do formatting, like make certain cells bold, etc etc? Is there a list of codes somewhere I can use to put before my field output to make a f

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Tyler Longren
Perhaps it was a typo, but "parse error on line 1" does state the line number. tyler On Tue, 2002-06-18 at 09:57, Kevin Ruiz wrote: > I'm running php 4 on a unix server and am experiencing a problem with error > reporting I'm getting on my mac. > > When I get a parse error it won't tell me what

Re: [PHP] Need help

2002-06-18 Thread Tyler Longren
If you don't have cURL Installed yet, you can get it for Win32 here: http://curl.haxx.se/download.html On Tue, 2002-06-18 at 09:30, Barbara wrote: > I want to know how I have to install cURL on my apache server. My apache server is >running on Windows ME. > Thanks for all. > Barbara Guillen. > S

[PHP] Error Reporing Questions with Mac

2002-06-18 Thread Kevin Ruiz
I'm running php 4 on a unix server and am experiencing a problem with error reporting I'm getting on my mac. When I get a parse error it won't tell me what line the error is on...it simply says "parse error on line 1". When I test the page on a pc I get an error message that I can use... "parse

[PHP] Need help

2002-06-18 Thread Barbara
I want to know how I have to install cURL on my apache server. My apache server is running on Windows ME. Thanks for all. Barbara Guillen. Spain

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Justin French
on 19/06/02 12:27 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote: > I thought we answered this question already! Hehe yup -- a different thread that I started :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking file downloads

2002-06-18 Thread 1LT John W. Holmes
See my posting I just made about "How do I hide the download link ..." You'll want to use a similar method with the download.php. You may not have to check for a session, but you can use the scirpt to keep track of what file was downloaded, increment it's counter in a database, or send an email,

Re: [PHP] Sessions : see also "Tracking file downloads"

2002-06-18 Thread 1LT John W. Holmes
You can do whatever you want, of course. Sessions just make your code easier and portable and more people will be able to understand what you're talking about. Sessions are just a way to pass a variable between pages. You assign a variable to the session, and you retrieve it on any other page th

Re: [PHP] How do I hide download link ...

2002-06-18 Thread 1LT John W. Holmes
I thought we answered this question already! It's simple. On your login page or whatever, you start a session and set a variable saying that the user is logged in. Now, the most secure way to protect your files is to place them above your web root. Then no one can ever get to them through a br

Re: [PHP] find replace quotes with single quotes

2002-06-18 Thread Dan McCullough
Here is the snippet of code I'm working with. htmlMsg = displayMsg.replace(/"\""/gi,newHTML); --- Adam Voigt <[EMAIL PROTECTED]> wrote: > Hope this helps ya: > > str_replace("\"","'",$data); > > Adam Voigt > [EMAIL PROTECTED] > > On Tue, 2002-06-18 at 09:54, Dan McCullough wrote: > > I need to

Re: [PHP] find replace quotes with single quotes

2002-06-18 Thread Stuart Dallas
On Tuesday, June 18, 2002, 2:54:31 PM, Dan McCullough wrote: > I need to strip out the double quotes and replace it with single quotes. > Any help would be appreciated. $dest = str_replace("\"", "'", $source); -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] find replace quotes with single quotes

2002-06-18 Thread Adam Voigt
Hope this helps ya: str_replace("\"","'",$data); Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-18 at 09:54, Dan McCullough wrote: > I need to strip out the double quotes and replace it with single quotes. > Any help would be appreciated. > > __ >

[PHP] find replace quotes with single quotes

2002-06-18 Thread Dan McCullough
I need to strip out the double quotes and replace it with single quotes. Any help would be appreciated. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.ne

Re: [PHP] sessions and temporary tables

2002-06-18 Thread 1LT John W. Holmes
Temporary tables only exist for the duration of your script, with or without using mysql_pconnect(). If you want a MySQL table to remain, then don't make it temporary. Make it a regular table and then create a cron script that goes through and deletes tables that are more than X minutes/hours old.

Re: [PHP] mysql_num_rows always returns 1?

2002-06-18 Thread Eugene Mah
At 13:00 18-06-02 +0100, Mark Colvin wrote: >The function below works when I pass in a valid username and password and >returns '1'. When I pass a username and password that is not in the database >it still returns '1'. I have put some echo statements in for debugging and >the value of $numresult

[PHP] Re: Sessions : see also "Tracking file downloads"

2002-06-18 Thread BB
This really is like life, PHP Sessions aren't particularly secure, just make a form to post PHPSESSID of a true session to one of ya pages and you can "steal" a session! Its possible to check IPs and so on, PHP's sessions use text files (by default), and pre-populate $_SESSION/$HTTP_SESSION_VARS

RE: [PHP] mysql_num_rows always returns 1?

2002-06-18 Thread Niklas Lampén
Try $query = "select count(*) as Lines from users where " and then check the value of Lines. Or then do something like $query = "select ID from users where " and now your mysql_num_rows($result) should return right kinda value. Niklas -Original Message--

[PHP] Sessions : see also "Tracking file downloads"

2002-06-18 Thread PHPCoder
HI While waiting for responses on my first question, I've done some reading on sessions, and came up with the following questions: First, I have been coding with PHP for a while without knowing about sessions, and have completed a couple of rather large projects without using sessions as such,

[PHP] mysql_num_rows always returns 1?

2002-06-18 Thread Mark Colvin
The function below works when I pass in a valid username and password and returns '1'. When I pass a username and password that is not in the database it still returns '1'. I have put some echo statements in for debugging and the value of $numresult is always '1'. Does mysql_num_rows retain result

<    1   2   3   >