[PHP] Content Management System in php

2002-06-18 Thread Olav Bringedal
I have been looking into some of the CMS' that the php community provides. Now I wonder what the common thoughts about these are. Are they fit for deployment into professtional organisations or simply still on a idealistic-website level? I made a trial installation of php-nuke and frankly i'm

RE: [PHP] Content Management System in php

2002-06-18 Thread Brian McGarvie
Indeed PHP-Nuke is not meant for Co-orporate sites... I have my own custom built 'bits' that I put together when doing site for a client. If you can't/don't have the luxury of being able to hire/contract a developer to develop a custom-designed solution for your needs then you are

RE: [PHP] Editor

2002-06-18 Thread Brian McGarvie
I have been using this for a couple of years and personally consider it the best all-round editor next to UltraEdit for codeing not just web-pages but other languages... It's extremely flexible plug-in modules are easy to develop if you need it to do something, and also has quite a few decent

[PHP] LDAP...

2002-06-18 Thread Brian McGarvie
I'm just experimenting with LDAP... [ Windows 2000 Server/IIS/php 4.2.1] I've uncommented the php_ldap.dll in my .ini... when I execute the following simple piece of code it gives me: Fatal error: Call to undefined function: ldap_connect() in E:\wwwshell\test\index.php on line 5 ? function

[PHP] sessions and temporary tables

2002-06-18 Thread Wilbert Enserink
hi all, i have this problem: 1) on the start of each script I call session_start() 2) on my search.php page I query an info-table, put the results in a temporary table called $SID(=session_id()), and display the results. As a check I also query the table $SID and voila: the results were

[PHP] Date Comparsion

2002-06-18 Thread Jack
Dear all I had a form which let user to input the leave_from and leave_to date into, the format of the date that user input is -mm-dd. Now i want to compare the leave_from and leave_to date to find out the number of days between! What should i do or any function in php can provide this

Re: [PHP] sessions and temporary tables

2002-06-18 Thread Jason Wong
On Tuesday 18 June 2002 17:21, Wilbert Enserink wrote: i have this problem: My Q: howcome mySQL is not able to find this temporary table anymore It seems to have destroyed this table when leaving the search.php page, but that's a rather odd idea, cause I thought it maintained while the

[PHP] Re: ORACLE!!!

2002-06-18 Thread Philippe Saladin
Which are the environment variables? (i.e. ORACLE_SID, ORACLE_HOME, etc) I've using this kind of code, but it doesn't connect me to the server. putenv(ORACLE_HOME=C:\Program Files\Ora81); -- Is this the home directory? putenv(ORACLE_SID=SID); Look in the windows registry to find what to put

Re: [PHP] sessions and temporary tables

2002-06-18 Thread W. Enserink
ok, that's clear, thx. but still, I'm not closing any connection AFAIK. at least not explicitly. are there then other ways which cause the closing of this connection? thx Wilbert - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18,

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

2002-06-18 Thread Nathan Taylor
- Original Message - From: Fargo Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 4:14 PM Subject: [PHP] How do I hide download link ... Hi, my customers go through a password authentication to access a link on my site to download a file. I want to prevent

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

2002-06-18 Thread Nathan Taylor
I don't believe it is possible to hide the physical link but it is plausibly easy enough to write a script that randomly changes the file name and location. Here's some psuedo code to get you started: //Step 1: Locate the file $query = select * from file_locations where file_name='secure.zip';

[PHP] session and temporary tables 2

2002-06-18 Thread Wilbert Enserink
Jason, this is a piece of code i include in every file. I thinbk this is the piece of code which kills my connection. do you have any tips for me how to maintain the connectoin open? thx Wilbert session_start(); $global_dbh = mysql_connect($hostname,

RE: [PHP] sessions and temporary tables

2002-06-18 Thread Brian McGarvie
unless you open a persistent connection, connections are closed automatically at the end of execution of a script. -Original Message- From: W. Enserink [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] sessions and temporary tables

[PHP] Don't send the reciept

2002-06-18 Thread Nathan Taylor
Please do not click yes when it asks you to send the reciept on the email about hiding a download link, I hadn't realized the reciept function was on and it's really getting annoying. Cheers, Lakario -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2002-06-18 Thread Bret L Conard
Start a session on the sign in page, and check for the session before displaying the page with the link. The it does not matter if the link page URL is distributed. In my situation; 1. Sign in page goes to a validation script. 2. Check for form fields. (1st of Nested loops) if

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

2002-06-18 Thread Nathan Taylor
if (!session_is_registered(SESSION)){ print (You must Log-In to access this page\n); print (a href='sign_in.php'); print (Click here to Log In); } print (a href='sign_in.php'); should be: print(a href='sign_in.php'Sign-in/a); // or something like that But anyways, I

[PHP] shtml problem

2002-06-18 Thread savaidis
I use a search.shtml script to pass with a form some vars (user's IP) to a PHP script to keep it in a MySQL record. When I run the search.shtml directrly , I have no problem all vars pass and are keept OK. But when I run it from a frame then the IP var is undefuned (null).

Re: [PHP] session and temporary tables 2

2002-06-18 Thread Marek Kilimajer
Use mysql_pconnect($hostname, $username, $password); Wilbert Enserink wrote: Jason, this is a piece of code i include in every file. I thinbk this is the piece of code which kills my connection. do you have any tips for me how to maintain the connectoin open? thx Wilbert

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

2002-06-18 Thread Brian McGarvie
if you want to hide it fromthe browser you cound do: a href=# onclick=javascript:document.location='sign_in.php'click here/a or you could over write the status text: a href=sign_in.php onMouseOver=window.status='Some text...'; return true;click here/a or a combination... Also note... this

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

2002-06-18 Thread Nathan Taylor
Open your browser, right click and hit properties on any page. - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: Nathan Taylor [EMAIL PROTECTED]; Bret L Conard [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 6:46 AM Subject: RE: [PHP] How do I hide

[PHP] Tracking file downloads

2002-06-18 Thread PHPCoder
Hi I would like to know any ideas on tackling the following: I would like to have people give me their details via a form and then allow them to download files from the server, and I would also like to keep track/record of the files that are downloaded. The record doesn't need to be kept,

[PHP] Can php-files have DOS-format?

2002-06-18 Thread Knut Olsen-Solberg
We have the php-processor running on an Unix-machine with Apache webserver. Many html-files contains php-code, and are written in MSWindows environment. Is it important to convert these textfiles to Unix format (line breaks with only ascii 10 instead of 13/10) when they are published? Regards

[PHP] Small CGI Serve

2002-06-18 Thread BB
I am trying to write a small CGI webserver. Having finally found out how to pass the Environment vars onto PHP, I am stumpted to find that PHP wasn't reading them and putting them in their place (GET vars). I tried changing the exe from the php-cli to just php. This now brings up a security

[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

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

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

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

[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

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. __ Do You

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 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 strip out the

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. ? session_start(); //check username and password //if good... $_SESSION['logged_in'] = 1; ? Now, the most secure way to protect

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

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

[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

[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

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

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 line

[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

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

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

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

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

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

[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

[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

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

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

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

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)

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

[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

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

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

[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

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

[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 out the number

[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

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. ? //start.php session_start(); $_SESSION['user'] = bob; // register the session var $_SESSION['pass'] = secret; // register the session var header(Location: p2.php); ? ? //

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

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

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

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

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

[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

[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

[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); Similar

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

[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] 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] 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] . br; $_SESSION[node] = 10.2; echo : . $_SESSION[node] . br;

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); if

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

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

[PHP] static not working as expected

2002-06-18 Thread Purushotham Komaravolu
?php class Counter { var $counter = 0; function increment_and_print() { print ++$this-counter; print \n; } } class SingletonCounter { static $m_instance = NULL; // throwing error here

[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 : ?php class

[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, 2002 10:58 AM

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

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 off 2.

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

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

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

[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] 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: http://www.php.net/manual/en/language.variables.variable.php -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To

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

[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

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

  1   2   3   >