[PHP] sort by date

2005-05-05 Thread William Stokes
Hello, I made a mistake and stored date information to DB as varchar values (dd.mm.yyy). When I read the DB is it still possible to sort the data by date with SQL query (ORDER BY date ASC)? Or is it nessessary to have the date information to be stored as a date in the DB? Will it work or is the

Re: [PHP] multi dimensional array

2005-05-05 Thread Richard Lynch
On Thu, May 5, 2005 2:08 am, Angelo Zanetti said: [sorry for the double-post...] > the other server. Its running Apache 1 and the server that works is > running Apache 2. Are you sure it's not the broken server running Apache 2?... And possibly PHP 5? And MySQL 4.1? Which means you need mysqli

Re: [PHP] Function shall receive Pointer to Array

2005-05-05 Thread Richard Lynch
On Wed, May 4, 2005 3:29 pm, Fred Rathke said: > how can a function get a pointer to an array? This does not work. I use > PHP4. Technically, in PHP, they are references, not pointers. There are no pointers in PHP. The difference is too subtle for me to understand it, but there is apparently som

Re: [PHP] Socket connection reset by pear

2005-05-05 Thread Richard Lynch
On Thu, May 5, 2005 5:20 am, Martín Marqués said: > I'm trying to build some communication aside of the server thin client > stuff, > with a socket daemon and a socket client. > > The daemon is the same that everybody can find in the PHP docs (example > 1). > The client simply opens a connection to

Re: [PHP] multi dimensional arraySOLVED

2005-05-05 Thread Richard Lynch
On Thu, May 5, 2005 3:37 am, Angelo Zanetti said: > this is quite weird but apparently on the one server if you user $user > as a variable name thats what causes the problem. > I simply renamed my variable to something else and it worked, I find it > strange that it worked on 1 server and not the o

Re: [PHP] How do I link to the root directory of the server?

2005-05-05 Thread Richard Lynch
You could just use relative links, or use a full path link, without the http://www.mydomain.com part. Or, you could change application.php to use data from $_SERVER to figure out what URL you should be using. and pick through that data. Somewhere in there you will find what you need to set up

Re: [PHP] PHP based project management

2005-05-05 Thread bala chandar
hi On 5/6/05, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > Hi, > > Look for phpcollab. along with this also look for dotproject! > > zareef ahmed > > On 5/4/05, Neal Carmine <[EMAIL PROTECTED]> wrote: > > Hi, > > > > There are a lot of open source project management packages. .Project, > > netof

Re: [PHP] html hyperlink and PHP

2005-05-05 Thread bala chandar
Hi, On 5/6/05, Oscar Andersson <[EMAIL PROTECTED]> wrote: > If i do like this. > if u do like above u might have to use $_GET['action'] > How does the webbrowser send this? With post or get or ..? > Shall i get the action with $_POST or $_GET? > ex. > @$action = $_POST['action']; > if(!$ac

Re: [PHP] downloading files

2005-05-05 Thread Greg Donald
On 5/5/05, Cima <[EMAIL PROTECTED]> wrote: > i've uploaded some files into my postgresql db, via a php script, and now > id like to give a user the posibility to download these files via a php > script. what would be the best way to do this bearing in mind that the files > are 'integrated' into th

Re: [PHP] html hyperlink and PHP

2005-05-05 Thread Greg Donald
On 5/5/05, Oscar Andersson <[EMAIL PROTECTED]> wrote: > If i do like this. > > > How does the webbrowser send this? With post or get or ..? get > Shall i get the action with $_POST or $_GET? $_GET or $_REQUEST > ex. > @$action = $_POST['action']; > if(!$action) > @$action = $_GET['act

Re: [PHP] file uploads and sizes

2005-05-05 Thread Greg Donald
On 5/5/05, Cima <[EMAIL PROTECTED]> wrote: > i have the following code that works except when the file i'm trying to > upload excedes the upload_max _filesize and post_max_size defined in the > php.ini file. > what happens when the file is smaller than the max sizes mentioned > previously, the if (

Re: [PHP] html hyperlink and PHP

2005-05-05 Thread Richard Lynch
You could have tried it in the time it took you to post... It's GET. On Thu, May 5, 2005 7:28 pm, Oscar Andersson said: > If i do like this. > > > How does the webbrowser send this? With post or get or ..? > Shall i get the action with $_POST or $_GET? > ex. > @$action = $_POST['action']; >

Re: [PHP] PHP based project management

2005-05-05 Thread Zareef Ahmed
Hi, Look for phpcollab. zareef ahmed On 5/4/05, Neal Carmine <[EMAIL PROTECTED]> wrote: > Hi, > > There are a lot of open source project management packages. .Project, > netoffice and others. Does anyone have a recommendation on the best overall > project management software for tracking bi

Re: [PHP] Flash&PHP Issue

2005-05-05 Thread disguised.jedi
> How I can get the width and height of a swf file with php? http://www.php.net/ming -- [EMAIL PROTECTED] PHP rocks! "Knowledge is Power. Power Corrupts. Go to school, become evil" Disclaimer: Any disclaimer attached to this message may be ignored. However, I must say that the ENTIRE content

[PHP] html hyperlink and PHP

2005-05-05 Thread Oscar Andersson
If i do like this. How does the webbrowser send this? With post or get or ..? Shall i get the action with $_POST or $_GET? ex. @$action = $_POST['action']; if(!$action) @$action = $_GET['action']; processRequest($action); If i do like this How do i get the action in my php pag

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when th

[PHP] one-time password (OTP) authentication

2005-05-05 Thread james
Two-factor authentication (authenticating user with something they know AND something they possess) is becoming more and more popular due to increasing security requirements and the prevalence of spyware software. However, in open source projects, solutions such as RSA securID, smartcards, etc.

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when th

[PHP] downloading files

2005-05-05 Thread Cima
hi all, i've uploaded some files into my postgresql db, via a php script, and now id like to give a user the posibility to download these files via a php script. what would be the best way to do this bearing in mind that the files are 'integrated' into the db and are referenced by an oid. the tab

Re: [PHP] to pass session from one websever to another webserver

2005-05-05 Thread Rory Browne
In that case you're probably best to have a single source for the session data, and simply pass the SessionID as a $_GET variable in the URL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/osx and firebird

2005-05-05 Thread Lester Caine
James wrote: "To enable InterBase support configure PHP --with-interbase[=DIR], where DIR is the InterBase base install directory, which defaults to /usr/interbase." I've tried to add: --with-interbase=/Library/Frameworks/Firebird.framework/Resources to my php.ini and it didn't work. That does no

Re: [PHP] php/osx and firebird

2005-05-05 Thread Gabriel Guzman
James wrote: I've attempted to access a firebird database living on an osx/apache/php machine. How do I enable those functions? I've looked at the php documentation (http://uk2.php.net/manual/en/ref.ibase.php ) "To enable InterBase support configure PHP --with-interbase[=DIR], where DIR is th

Re: [PHP] Flash&PHP Issue

2005-05-05 Thread Chris
Khorosh Irani wrote: Hello How I can get the width and height of a swf file with php? Thanks http://www.php.net/getimagesize -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Oh, you just clued me in... I wonder if [EMAIL PROTECTED] might be able to shed some like on this. I'm using TBS as my template engine for this site. And yes, it does use nl2br in the "meth_Html_Conv" function. I'll probably need to add the "htmlconv=no" option to all of the "textarea" fields.

Re: [PHP] form variables

2005-05-05 Thread Ryan Faricy
A hidden INPUT would be better... ... "Bala Chandar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hi On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote: > Can anyone tell me how a submit button can be used to send set a variable > so > there is only a button --no textfield. use valu

Re: [PHP] OO toturial

2005-05-05 Thread Brent Baisley
I've been looking and reading for a while now. What I've discovered is that you really should learn the concepts rather than how php implements the concepts. PHP4 lacks the capability to do (at least do well) a lot of object stuff (i.e. multiple inheritance), PHP5 has far better support for obj

Re: [PHP] if then else statement not working

2005-05-05 Thread Rasmus Lerdorf
Anasta wrote: > What am i doing wrong here, the output is always 'empty' > > $result = mysql_query("SELECT username FROM users > WHERE seatnum='seat1'") or die(mysql_error()); > > if (seatnum == seat1) { > echo username; > } else { > echo 'empty'; > } > ?> That doesn't even look like PHP cod

Re: [PHP] if then else statement not working

2005-05-05 Thread Philip Hallstrom
What am i doing wrong here, the output is always 'empty' if (seatnum == seat1) { echo username; } else { echo 'empty'; } ?> Just guessing since I'm not sure what you're trying to do, but... $result = mysql_query("SELECT username FROM users WHERE seatnum='seat1'") or die(mysql_error());

Re: [PHP] control-M

2005-05-05 Thread Marek Kilimajer
David Christensen wrote: I am? That news to me??? I just did a 'grep nl2br form.php' and I don't any output with nl2br. I'm not sure this is what's going on. I did see that function in the "Strings" section of the manual, but it didn't do anything for me. Well, php isn't making it up, it has to

Re: [PHP] if then else statement not working

2005-05-05 Thread Gabriel Guzman
Anasta wrote: What am i doing wrong here, the output is always 'empty' if (seatnum == seat1) { echo username; } else { echo 'empty'; } ?> mysql_query() returns a resource, not the results themselves. read: http://us3.php.net/manual/en/function.mysql-query.php especially the 2nd example to see

[PHP] Re: if then else statement not working

2005-05-05 Thread Matthew Weier O'Phinney
* Anasta <[EMAIL PROTECTED]>: > What am i doing wrong here, the output is always 'empty' > > $result = mysql_query("SELECT username FROM users > WHERE seatnum='seat1'") or die(mysql_error()); > > if (seatnum == seat1) { What are you comparing? is seatnum a constant? is seat1 a constant? or is

Re: [PHP] Tracking what has been changed

2005-05-05 Thread Jason Barnett
Mark Rees wrote: -Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal

Re: [PHP] if then else statement not working

2005-05-05 Thread bala chandar
On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote: > What am i doing wrong here, the output is always 'empty' > > $result = mysql_query("SELECT username FROM users > WHERE seatnum='seat1'") or die(mysql_error()); > > if (seatnum == seat1) { you must use if (seatnum == "seat1") { > echo userna

Re: [PHP] joining in php development

2005-05-05 Thread Jason Barnett
Bala Chandar wrote: Hey On 5/5/05, Angelo Zanetti <[EMAIL PROTECTED]> wrote: well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? i want to develop some functions that is built in to the php. how to contribute or join in its development/? Fix

[PHP] Re: pear - make install fails (php5)

2005-05-05 Thread Jason Barnett
Gerold Kathan wrote: ... Installing PHP CLI binary:/usr/local/php5/bin/ Installing PHP CLI man page: /usr/local/php5/man/man1/ Installing PEAR environment: /usr/local/php5/lib/php/ make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 => it sea

[PHP] Re: OO toturial

2005-05-05 Thread Jason Barnett
Khorosh Irani wrote: hello Can anyone tell me the url of a good toturial about object and php that contain: polymorphism,Delegation,...? Thanks Google for "Gang of Four Programming" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] calling a derived static method from a base class

2005-05-05 Thread Mike Johnson
From: news [mailto:[EMAIL PROTECTED] On Behalf Of > >class Base { > > static function f() { > self::g(); > } > > static function g() { > print("Base\n"); > } >} > >class Derived extends Base { > static function g() { >

[PHP] Re: if then else statement not working

2005-05-05 Thread Jason Barnett
Anasta wrote: What am i doing wrong here, the output is always 'empty' if (seatnum == seat1) { I think maybe you mean this: if ($seatnum == 'seat1') { Heck from the code above you won't even have a $seatnum variable, you'll have a $result variable with some MySQL information in it. Read this:

Re: [PHP] PHP mail

2005-05-05 Thread bala chandar
Hi On 5/5/05, Aaron Gould <[EMAIL PROTECTED]> wrote: > Eustace wrote: > > I am relatively new to PHP and could use some help. I have a form, which is > > basically in an email format, from, subject, and message. How do I then send > > this to an email? I know a bit about the mail function, somebo

Re: [PHP] form variables

2005-05-05 Thread bala chandar
hi On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote: > Can anyone tell me how a submit button can be used to send set a variable so > there is only a button --no textfield. use value="" in the button html component -- bala> balachandar muruganantham blog> lynx http://chandar.blogspot.com web> http:

Re: [PHP] form variables

2005-05-05 Thread Petar Nedyalkov
On Thursday 05 May 2005 17:46, Anasta wrote: > Can anyone tell me how a submit button can be used to send set a variable > so there is only a button --no textfield. Use hidden input fields. -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.or

[PHP] Flash&PHP Issue

2005-05-05 Thread Khorosh Irani
Hello How I can get the width and height of a swf file with php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Objects in Arrays (without the READ prompt)

2005-05-05 Thread Jason Petersen
Hi, I think you need to serialize your objects. http://us3.php.net/manual/en/language.oop.serialization.php Jason On 5/5/05, Stuart Nielson <[EMAIL PROTECTED]> wrote: > Sorry to everyone about the stupid READ notification on the posting. I > completely forgot that it was enabled. This one s

[PHP] OO toturial

2005-05-05 Thread Khorosh Irani
hello Can anyone tell me the url of a good toturial about object and php that contain: polymorphism,Delegation,...? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] control-M

2005-05-05 Thread David Christensen
I am? That news to me??? I just did a 'grep nl2br form.php' and I don't any output with nl2br. I'm not sure this is what's going on. I did see that function in the "Strings" section of the manual, but it didn't do anything for me. Thanks for your help, Dave On Thu, 2005-05-05 at 16:11 +0200

[PHP] Re: Objects in Arrays (without the READ prompt)

2005-05-05 Thread Mathieu Dumoulin
Stuart Nielson wrote: Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username, userty

Re: [PHP] PHP mail

2005-05-05 Thread Philip Hallstrom
I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! See the example here: http://us2.php.net/manual/en/func

[PHP] if then else statement not working

2005-05-05 Thread Anasta
What am i doing wrong here, the output is always 'empty' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Objects in Arrays (without the READ prompt)

2005-05-05 Thread Stuart Nielson
Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username, usertype, etc. I want to

Re: [PHP] PHP mail

2005-05-05 Thread Aaron Gould
Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace Everything you need to know shou

[PHP] calling a derived static method from a base class

2005-05-05 Thread Christopher J. Bottaro
class Base { static function f() { self::g(); } static function g() { print("Base\n"); } } class Derived extends Base { static function g() { print("Derived\n"); } } Derived::f(); I want that to print

[PHP] php/osx and firebird

2005-05-05 Thread James
I've attempted to access a firebird database living on an osx/apache/php machine. When I'm running the following script, ini_set("magic_quotes_sybase", "On"); $host = 'localhost:/Library/Frameworks/Firebird.framework/Resources/examples/employee.fdb'; $username = "sysdba"; $password =

Re: [PHP] control-M

2005-05-05 Thread Marek Kilimajer
David Christensen wrote: Actually, I forgot to also mention that the browser is changing the control-M (^M) from the query when it sets the default value for the textarea to "". I guess that is the HTML representation of the ^M. you are using nl2br() on the input, that funcion adds '' before all

[PHP] form variables

2005-05-05 Thread Anasta
Can anyone tell me how a submit button can be used to send set a variable so there is only a button --no textfield. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP mail

2005-05-05 Thread Mathieu Dumoulin
Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace I'll show you how we do it here

Re: [PHP] joining in php development

2005-05-05 Thread Angelo Zanetti
best is to get hold of the guys at www.php.net bala chandar wrote: >Hey > >On 5/5/05, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > >>well your statement doesnt make any sense >> >>bala chandar wrote: >> >> >> >>>hi, >>> >>>how to join in php development??? >>> >>> > >i want to de

[PHP] PHP mail

2005-05-05 Thread Eustace
I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace

Re: [PHP] joining in php development

2005-05-05 Thread bala chandar
Hey On 5/5/05, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > well your statement doesnt make any sense > > bala chandar wrote: > > >hi, > > > >how to join in php development??? i want to develop some functions that is built in to the php. how to contribute or join in its development/? > > >

Re: [PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-05 Thread bala chandar
hey On 5/5/05, Oscar Andersson <[EMAIL PROTECTED]> wrote: > I have made a instal of the latest mySQL and PHP 5 on my computer. > I have made the following changes to my php.ini file > > extension=php_mysql.dll > extension_dir = "c:\php\" > > and i have put the php_mysql. and libmysql.dll in c:\p

Re: [PHP] is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Prathaban look carefully, we are here to give acurate info and you are giving mistaken information. The "$id" thing is wrong, you'll actually create a parse error X| ... Prathaban Mookiah wrote: It should be "$id". Note that missing " Prathap -- Original Message --- From: "Ross"

Re: [PHP] need help on .htaccess

2005-05-05 Thread Greg Donald
On 5/5/05, Mathieu Dumoulin <[EMAIL PROTECTED]> wrote: > We have here at work a simple .htaccess that redirects all requests to > an index page which works fine so far. I'll show you the code of the > .htaccess you can use it if you can't to, it works perfectly fine. > > AddType application/x-http

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Joe, not sure you "str_replace" will work. I think I need a way to represent the ^M with an ASCII code. The ^M character is a single character. If you type ^M that is 2 characters, caret + M. They are not equal ASCII-wise. Dave On Thu, 2005-05-05 at 03:11 -0400, Joe Wollard wrote: > David, >

[PHP] Re: Linking to the Root Dir - LAMP

2005-05-05 Thread Mathieu Dumoulin
Shaun wrote: Hi, I have a file called application.php and this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG->wwwroot = http://www.mydomain.com; $CFG->dirroot = "/usr/home/myaccount/public_html"; $CFG->admindir = "$CFG->wwwroot/admin"; $CFG

[PHP] Re: How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Sorry for double posting, these took an hour to appear in my newsreader and I thought there was a problem with the first one I sent "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a file called application.php and in this file I define all of the > directori

Re: [PHP] control-M

2005-05-05 Thread David Christensen
These aren't text files, there form fields from a browser and fields from query. I don't think dos2unix will be of much help with this. Dave On Thu, 2005-05-05 at 09:07 +0300, Petar Nedyalkov wrote: > On Thursday 05 May 2005 06:13, David Christensen wrote: > > I know I'm missing something, but

Re: [PHP] joining in php development

2005-05-05 Thread Angelo Zanetti
well your statement doesnt make any sense bala chandar wrote: >hi, > >how to join in php development??? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Actually, I forgot to also mention that the browser is changing the control-M (^M) from the query when it sets the default value for the textarea to "". I guess that is the HTML representation of the ^M. I'm currently using: $_POST[$field] = str_replace("\r\n", "\n", $_POST[$field]);

[PHP] Re: is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Ross wrote: Am trying to do an update of a record... Is this the correct syntax.. $query= "UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id"; R. Technically this is right as long as your variables are giving out the real intented values. For extra knowledge, your $query sho

[PHP] Socket connection reset by pear

2005-05-05 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
I'm trying to build some communication aside of the server thin client stuff, with a socket daemon and a socket client. The daemon is the same that everybody can find in the PHP docs (example 1). The client simply opens a connection to the daemon and writes data using the socket Object from PEA

Re: [PHP] is this the correct syntax

2005-05-05 Thread Prathaban Mookiah
It should be "$id". Note that missing " Prathap -- Original Message --- From: "Ross" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 12:09:18 +0100 Subject: [PHP] is this the correct syntax > Am trying to do an update of a record... > > Is this the cor

[PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-05 Thread Oscar Andersson
I have made a instal of the latest mySQL and PHP 5 on my computer. I have made the following changes to my php.ini file extension=php_mysql.dll extension_dir = "c:\php\" and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windows to Now i try this in my php-file $con = mysql_con

[PHP] Linking to the Root Dir - LAMP

2005-05-05 Thread Shaun
Hi, I have a file called application.php and this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG->wwwroot = http://www.mydomain.com; $CFG->dirroot = "/usr/home/myaccount/public_html"; $CFG->admindir = "$CFG->wwwroot/admin"; $CFG->claimsdi

[PHP] How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Hi, I have a file called application.php and in this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG->wwwroot = http://www.mydomain.com; $CFG->dirroot = "/usr/home/myaccount/public_html"; $CFG->admindir = "$CFG->wwwroot/admin"; $CFG->claim

Re: [PHP] Question about acessing databases and formatting output

2005-05-05 Thread The Doctor
On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: > hi, > > On 5/5/05, The Doctor <[EMAIL PROTECTED]> wrote: > > This is probably easy, but how does > > one access a database, mysql or oracle or postgresql, > > and > > present the data in a tabular format? > > > > -- > > Member - Libe

[PHP] Re: Error suppression operator (@)

2005-05-05 Thread Rory Browne
ditto everyone who said use it if you don't care about errors, but don't use it in places where you expect errors. Also don't use it in places where it can be avoided with minimal cost. For example if you have an optional field, and people usually fill it in, and rarely leave it empty, then you c

[PHP] joining in php development

2005-05-05 Thread bala chandar
hi, how to join in php development??? -- bala> balachandar muruganantham blog> lynx http://chandar.blogspot.com web> http://www.chennaishopping.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help on .htaccess

2005-05-05 Thread Mathieu Dumoulin
We have here at work a simple .htaccess that redirects all requests to an index page which works fine so far. I'll show you the code of the .htaccess you can use it if you can't to, it works perfectly fine. AddType application/x-httpd-php .html RewriteEngine on RewriteBase / RewriteRule ^$ - [QS

RE: [PHP] insert not working

2005-05-05 Thread Mark Rees
-Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 10:16 To: php-general@lists.php.net Subject: [PHP] insert not working $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_in

Re: [PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Rory Browne
Next time you double post(I'm assuming by accident), could you reply to one, of the posts declaring it void, and point people to the other, so that you don't have two people answering the same question in two different threads. On 5/5/05, Ryan Faricy <[EMAIL PROTECTED]> wrote: > > "Jon M." <[EMAI

Re: [PHP] insert not working

2005-05-05 Thread bala chandar
Hi, On 5/5/05, Ross <[EMAIL PROTECTED]> wrote: > $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, > street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES > ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', > '$postcode', '$c

Fwd: [PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Rory Browne
Otherwise you can 'declare' them by assigning them a null/zero/empty value. $my_number = 0; $my_string = "" $my_array = array(); The main reason for 'declaring' variables in PHP, is so that you can use them in functions without raising an E_NOTICE. On 5/5/05, Ryan Faricy <[EMAIL PROTECTED]> wro

Re: [PHP] multi dimensional array

2005-05-05 Thread bala chandar
hi, On 5/5/05, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a problem where I use a multi dimensional array on one server and > now have moved it to another server and it just doesnt work: > > $result2 = $userdb->listUsers($clubID); > $i=0; > > while (

[PHP] re: insert not working

2005-05-05 Thread Ross
Just a type error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is this the correct syntax

2005-05-05 Thread Ross
Am trying to do an update of a record... Is this the correct syntax.. $query= "UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id"; R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] insert not working

2005-05-05 Thread Prathaban Mookiah
Did you check for proper permissions in the user and db tables in the user database? Prathap -- Original Message --- From: "Ross" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 10:15:52 +0100 Subject: [PHP] insert not working > $query = "INSERT INTO she

Re: [PHP] [SOLVED] Function shall receive Pointer to Array

2005-05-05 Thread Fred Rathke
Thanks, Chris. You have been right. It worked already. I still remove all my typing errors in the original version. For this list I wrote a new version of it. Should have tried it first. Sorry. Greatings *I should not work after midnight* Liebe Grüße Fred Rathke [EMAIL PROTECTED] http://communic

Re: [PHP] insert not working

2005-05-05 Thread Marek Kilimajer
Ross wrote: $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city', '$telephone', '$mobile', '$fax', '$

Re: [PHP] select statement

2005-05-05 Thread Prathaban Mookiah
Maybe the query should be select user_balance FROM users WHERE user_id="$uname"; Prathap -- Original Message --- From: "Anasta" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 16:10:35 +0800 Subject: [PHP] select statement > Why doesnt this work, it shows

Re: [PHP] multi dimensional arraySOLVED

2005-05-05 Thread Angelo Zanetti
this is quite weird but apparently on the one server if you user $user as a variable name thats what causes the problem. I simply renamed my variable to something else and it worked, I find it strange that it worked on 1 server and not the other, is it possible that the different apache versions ar

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Jon M.
OK, thanks everyone. (BTW -I actually meant to say 'var $varName;' in PHP and 'var varName;' in JavaScript -doh!) Anyway, my question has been thoroughly answered, and I completely understand now. I did try the "var $varName;" outside a class, just to see what happened, and found out it

Re: [PHP] XSL:FO + PHP

2005-05-05 Thread rouvas
On Wednesday 04 May 2005 22:30, Dan Rossi wrote: > On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote: > > Dan, > > > > I have done this before, but it was only a proof-of concept excercise > > for me, so my procedure may not work for you. My test was against an > > Amazon web service and generat

[PHP] Re: Thanks, I understand now

2005-05-05 Thread Jon M.
OK, thanks everyone. My question has been thoroughly answered, and I completely understand now. I did try the "var $varName;" outside a class, just to see what happened, and found out it does indeed throw a parse error, so I'll just use a comment as suggested. I wonder why "Beginning PHP 5

Re: [PHP] select statement

2005-05-05 Thread bala chandar
On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote: > Why doesnt this work, it shows the username but not the balance of the users > money.here is the mysql table: > > CREATE TABLE `users` ( > `user_id` int(11) NOT NULL auto_increment, > `username` varchar(15) NOT NULL default '', > `password` varc

[PHP] insert not working

2005-05-05 Thread Ross
$query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city', '$telephone', '$mobile', '$fax', '$email', '$we

[PHP] Re: php5-mysqli

2005-05-05 Thread Ryan Faricy
"Nsk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > which config files are responsible for loading mysqli in apache/php5 ? php.ini ;; Old MySQL support extension=mysql.so ;; New MySQL support. extension=mysqli.so -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] multi dimensional array

2005-05-05 Thread Angelo Zanetti
Hi guys, I have a problem where I use a multi dimensional array on one server and now have moved it to another server and it just doesnt work: $result2 = $userdb->listUsers($clubID); $i=0; while ( $row2 = mysql_fetch_array($result2) ) { //echo $row2['f

[PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Ryan Faricy
"Jon M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I just found a place here: > > http://us2.php.net/manual/en/language.oop.php > > That has this example: > > /* This is how it should be done. */ > class Cart { > var $todays_date; > var $name; > var $owner; > var $items

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Ryan Faricy
"Jon M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I know it's not necessary, but I still want to know how. > > > I know in JavaScript, that you declare vars like so: > > var = variableName; > > So I'm assuming that in PHP you do it like this: > > var = $variableName; > > But t

RE: [PHP] Tracking what has been changed

2005-05-05 Thread Mark Rees
-Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal information. Wh

[PHP] pear - make install fails (php5)

2005-05-05 Thread gerold kathan
hi - i am running into troubles: i have a linux (Redhat ES3) system running php4.3.11 * trying to build apache2/php5.0.4 (= run php4 OR php5) = PREFIX : /usr/local/php5 i can do it as long i compile php5 with option "--without-pear" if i try to build with pear it compiles fine but when doing "m

  1   2   >