RE: [PHP] .htpasswd login

2004-05-28 Thread Jami
Your looking for this: $_SERVER['PHP_AUTH_USER'] When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user. See Reserved Variables: http://www.php.net/reserved.variables Jami Moore LightSPARK Digital Designs

[PHP] How can I filter options?

2004-05-28 Thread dunj
Hi, every one. I am now caught in a difficulty. I create a form to query the database. There are two 'select' items in the form. For example, I refer to the first 'select' item as $province and the second as $city. When I select a item of $province, I wish $city contains only the cities of

[PHP] Re: Aspect Oriented Programming PHP

2004-05-28 Thread Bert Slagter
Michael Lauzon wrote: Since PHP5 is going to feature OOP (Object Oriented Programming), will that mean PHP6 will feature AOP (Aspect Oriented Programming)...so far it seems AOP is only being used for Java at the moment; but hopefully general programming and scripting languages will start using

[PHP] aquestion about php extensions

2004-05-28 Thread php
Hello, i compile c file with vc++ (php extension). is there any possibility to execute php script in this extension? [php code will be in one string] --- ... //this is mod.c code ZEND_FUNCTION(my_function) { for(i=0;i5;i++) { zend_execute_php_script( //is any

[PHP] Identifying spam text

2004-05-28 Thread Merlin
Hi there, I am running a community site in php, where members can be contacted through a web form. Yesterday a guy contacted about 50 of those members with a spam text. Now I am trying to find a way to identify spam text via php. This looks like a common task to me, so I hope that I have not to

[PHP] Re: How can I filter options?

2004-05-28 Thread Merlin
Hello Dunj, first query the db for all provinces. Then let the user select his province and make the select field an automated jump field (onselct=document.location.href='xxsite') Then query the db again with the province and display the cities. However think about it how many cities you might

Re: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread PHP4web
ok let say that you have 2 or more variables with same name but there are difference in numbering And Values like this : $var1 = 1 ; $var2 = 12 ; // etc .. now you must now how much of number of this varibles before you deal with it or you must store it on array to know how to count it in the

[PHP] Re: Identifying spam text

2004-05-28 Thread Merlin
ok.. I came up with something by myself. Here is the code in case someone is interested in a spam filter. Regards, Merlin ### # Check for spam $stmt= SELECT keyword, weight FROM Table

[PHP] Playing with globals

2004-05-28 Thread Ciprian Trofin
Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ ? function test() { $GLOBALS['test'] = 1; $test = 2; } test(); echo $test; ?

Re: [PHP] Identifying spam text

2004-05-28 Thread Steve Edberg
At 9:31 AM +0200 5/28/04, Merlin wrote: Hi there, I am running a community site in php, where members can be contacted through a web form. Yesterday a guy contacted about 50 of those members with a spam text. Now I am trying to find a way to identify spam text via php. This looks like a common

Re: [PHP] Playing with globals

2004-05-28 Thread Steve Edberg
At 11:52 AM +0300 5/28/04, Ciprian Trofin wrote: Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ ? function test() { $GLOBALS['test'] = 1; $test = 2; } test(); echo $test;

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Steve Edberg
At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: Thanks for the reply Denis, Let me elaborate a bit. I have a php page which I want to pass a series of variables via a url string. eg myPage.php?dataPoint1=10dataPoint2=20dataPoint3=30 The thing is I won;t know until runtime how many dataPoints

RE: [PHP] Update Multiple Records From Form

2004-05-28 Thread Ford, Mike [LSS]
On 28 May 2004 04:47, Albert Padley wrote: I feel I'm so close. I have a form with multiple database records with a checkbox to indicate which records to update set up like so: $name = ed[ . $row['id'] . ]; input type=\checkbox\ name=\ . $name . \ value=\Y\ Each text input is set up

[PHP] Communication

2004-05-28 Thread Jakes
I'm looking at distributing PHP applications to desktops, using SQLite as the database. All information that is updated in the application will be local on the machine, until published to the webserver. My question is, what would be the best way to update the webserver sitting at a service

[PHP] Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
Hi all, Easy question (I hope). My brain seems not be working today, so could someone help me with this one? I have a while loop outputting part of an html form which inputs track information for CDs: $countything = 1; while ($countything !=31) { echo tr td$countything./td

[PHP] zlib compatibility

2004-05-28 Thread Francis Mak
Hi, What I am trying to do: - in VB, compress a string - save it as a file - use php to open it, then gzuncompress it I am using a vb wrapper in: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=42297ln gWId=1 I am sure that the above program works,

[PHP] Send HTML/plain text email using PHP

2004-05-28 Thread Matt MacLeod
I've been having a little trouble configuring a script to send a multipart email using PHP. The script send the message, but when I recieve the email it doesn't display the HTML version and I have to tell my mail client to displlay the plain text version (Mail on OS X 10.3.3). Here's the

[PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Easy question (I hope). My brain seems not be working today, so could someone help me with this one? I have a while loop outputting part of an html form which inputs track information for CDs: $countything = 1;

[PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Torsten Roehr
Maybe you could use a ready-made package such as PEAR's Mail_Mime: http://pear.php.net/package/Mail_Mime Regards, Torsten Roehr Matt Macleod [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been having a little trouble configuring a script to send a multipart email using PHP.

RE: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread I.A. Gray
Thanks, Torsten. That clears things up quite a bit. I do find the PHP manual a little heavy going sometimes. Does this mean then that I have to do this: $tempcomposer = 'composer' . $countything; $tempsubheading = 'subheading' . $countything; $tempmovementno = 'movementno' . $countything;

Re: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks, Torsten. That clears things up quite a bit. I do find the PHP manual a little heavy going sometimes. Does this mean then that I have to do this: $tempcomposer = 'composer' . $countything; $tempsubheading =

[PHP] Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, I am generating a mysql statement and then printing it to a formatted field. Here is my code: $sql=SELECT * from tablename where name in ('Web','HTML','PHP') group by name; $mysql_rslt1 = mysql_query($sql, $mysql_bconn) or die (Could not get data); while ($rec1 = mysql_fetch_array

[PHP] Re: Mysql Problem

2004-05-28 Thread Torsten Roehr
Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am generating a mysql statement and then printing it to a formatted field. Here is my code: $sql=SELECT * from tablename where name in ('Web','HTML','PHP') group by name; You are missing the closing quote here!

RE: [PHP] Re: Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, Yes that was my mistake. But even with the code, it still doesnt display the last one. If i didnt put a it wouldnt work at all. Thanks, Ian -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 13:56 To: [EMAIL PROTECTED] Subject: [PHP] Re: Mysql

[PHP] PHP as CGI becomes a zombie when loaded too often

2004-05-28 Thread Florian Effenberger
Sorry for posting this again and again, but I still experience this problem and there seems to be no way for me to solve it. I've got confirmation from others that this problem is not only mine, so please take the time to read this. I've tried Apache 1.3 and 2.0, both on Linux 2.4. I've tried

RE: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Ford, Mike [LSS]
On 28 May 2004 12:30, Torsten Roehr wrote: I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Easy question (I hope). My brain seems not be working today, so could someone help me with this one? [...] How can I get the value to change in each form? The

Re: [PHP] Identifying spam text

2004-05-28 Thread Scot L. Harris
On Fri, 2004-05-28 at 03:31, Merlin wrote: Hi there, I am running a community site in php, where members can be contacted through a web form. Yesterday a guy contacted about 50 of those members with a spam text. Now I am trying to find a way to identify spam text via php. This looks like

Re: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Curt Zirzow
* Thus wrote Steve Edberg ([EMAIL PROTECTED]): At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: However, most of what you can do with them can be done more simply with arrays. In your example above, use myPage.php?dataPoint[]=10dataPoint[]=20dataPoint[]=30 I'd also suggest to

[PHP] PHP doesn't work under SSL for Apache

2004-05-28 Thread Bryan Waters
I have an Apache 1.3.27 server configured with SSL, PHP and so on... My problem is that PHP doesn't work under the SSL virtual host...it works under other named virtual hosts and the main site, but it simply doesn't work under the _default_:443 virtualhost for some reason...on any other non-ssl

Re: [PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Matt MacLeod
OK, I managed to find a script that appears to work (at least for me and a few other people, anyway). The only thing is that if you look at the raw source of the email it comes out as nonsense. eg: CgoKRU1BSUwKCgoKCgoKCgoKCgpMb25kb24gMjEgTmV3c2xldHRlcgpGT1IgQUNUSU9OIElO IFRI

Re: [PHP] PHP doesn't work under SSL for Apache

2004-05-28 Thread R'twick Niceorgaw
Quoting Bryan Waters [EMAIL PROTECTED]: I have an Apache 1.3.27 server configured with SSL, PHP and so on... My problem is that PHP doesn't work under the SSL virtual host...it works under other named virtual hosts and the main site, but it simply doesn't work under the _default_:443

[PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the results are displayed and I want to be able to use that same drop down and just force the

Re: [PHP] Send HTML/plain text email using PHP

2004-05-28 Thread Curt Zirzow
* Thus wrote Matt MacLeod ([EMAIL PROTECTED]): ... $headers .= Reply-To: [EMAIL PROTECTED]; $nonhtml = strip_tags($emailsend); // This is the important part! // This content type identifies the content of the message. // The boundary delimits the plain text and html sections. // The value

Re: [PHP] making selection in drop down

2004-05-28 Thread Miguel J. Jiménez
Use HTML attribute selected in the option field you want to set as default... Alex Hogan wrote: Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the

RE: [PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
Use HTML attribute selected in the option field you want to set as default... Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm missing your point please excuse me. I'm a little brain dead this

Re: [PHP] making selection in drop down

2004-05-28 Thread Torsten Roehr
Alex Hogan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Use HTML attribute selected in the option field you want to set as default... Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm

Re: [PHP] making selection in drop down

2004-05-28 Thread Tristan . Pretty
I use a javascript to help me with bigger dropdowns... script function get_links() { document.all[field_name].value='?echo$field_name; ?' /script Torsten Roehr [EMAIL PROTECTED] 28/05/2004 16:12 To [EMAIL PROTECTED] cc Subject Re: [PHP] making selection in drop down Alex

[PHP] fsockopen() throwing errors

2004-05-28 Thread Phil Ewington - 43 Plc
Hi All, How can I stop fsockopen() throwing an error and killing my script when it cannot connect? I have tried the following: $this-_Socket = fsockopen($s_server, $this-_Port, $i_errno, $s_errstr, $this-_Timeout); if (!$this-_Socket) { ... code to handle connection failure } and ...

[PHP] Unable to load pages with errors

2004-05-28 Thread peter a
I have stumbled on something that is new for me. Usually when I get a PHP error I print them on the page, but suddenly pages with errors don't load at all, in IE I get the usual The page cannot be displayed and in Lynx I get Alert!: Unable to access document. I run PHP 4.3.2 and Apache 2.0.47

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 8:29 AM said: I have stumbled on something that is new for me. Usually when I get a PHP error I print them on the page, but suddenly pages with errors don't load at all, in IE I get the usual The page cannot be displayed and in Lynx

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Thanks, but that didn't take me anywhere. My browser still seems to hang itself or load a part of the page. I suppose it could be any of my http-processes that freezes up.. but I don't seems like it and I don't know why it would. Doesn't matter which browser I use either. /peter Chris W.

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:06 AM said: Thanks, but that didn't take me anywhere. My browser still seems to hang itself or load a part of the page. I suppose it could be any of my http-processes that freezes up.. but I don't seems like it and I don't know

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
Nothing complicated at all. It loops out some values from a MySQL database with not more than 20 entries. It's not that.. /peter Chris W. Parker wrote: peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:06 AM said: Thanks, but that didn't take me anywhere. My browser still seems to

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:12 AM said: Nothing complicated at all. It loops out some values from a MySQL database with not more than 20 entries. It's not that.. well unless it's a server thing (in which case i'd have no ideas towards a solution) your next

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
It not just that page.. it is all pages the will generate some sort of PHP error. Instead of the usual error output I get nothing. /peter Chris W. Parker wrote: peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:12 AM said: Nothing complicated at all. It loops out some values from

Re: [PHP] Identifying spam text

2004-05-28 Thread jon
An easy thing to do might be to limit the number of submissions a single IP address can submit in a given period of time. That way, an occasional spam will get through, but its effect will be limited. Also, if this web form has a standard url -- like you got it from a major script site like

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a mailto:[EMAIL PROTECTED] on Friday, May 28, 2004 9:17 AM said: It not just that page.. it is all pages the will generate some sort of PHP error. Instead of the usual error output I get nothing. hmm... sounds like a php configuration thing. i.e. a server thing. in which case i'm all

Re: [PHP] Update Multiple Records From Form

2004-05-28 Thread Albert Padley
On May 28, 2004, at 3:50 AM, Ford, Mike [LSS] wrote: On 28 May 2004 04:47, Albert Padley wrote: I feel I'm so close. I have a form with multiple database records with a checkbox to indicate which records to update set up like so: $name = ed[ . $row['id'] . ]; input type=\checkbox\ name=\ . $name .

Re: [PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread jon
Yeah... gotta agree with that -- the PEAR package makes dealing with mime mail incredibly easy. I love that thing. -- jon -- jon roig web developer phone: 888.230.7557 email: [EMAIL PROTECTED] Torsten Roehr wrote: Maybe you could use a ready-made package such as PEAR's Mail_Mime:

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Michael Sims
peter a wrote: It not just that page.. it is all pages the will generate some sort of PHP error. Instead of the usual error output I get nothing. Sounds to me like the apache process is segfaulting when PHP's error handler is invoked. You say it used to work for you, what changed recently?

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
No the file is there. I see it in the access logs for apache (even though last night it didn't even show up there.. ), but it refuses to load. Every time I get a PHP error the page freezes up and my browser tries to load it forever or I get The page cannot be dispalyed. The file is there.. it

[PHP] how to redirect with post method

2004-05-28 Thread Ral Castro
Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header(location:information.php?cod1=$cod1cod2=$cod2...codn=$codn); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks.

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
PHP configuration has not been changed though... so it's just strange.. I read something about a similiar trouble if you SSL on the server, I have SSL installed but this site is not under https. Anybody now anything about that? /peter Chris W. Parker wrote: peter a mailto:[EMAIL

Re: [PHP] Unable to load pages with errors

2004-05-28 Thread peter a
I have not changed my configuration lateley, what I know of. There is another guy working on the server, but he said he had changed nothing either. I've been running this configuration for a couple of months now and it has never caused me any troubles. /peter Michael Sims wrote: peter a

Re: [PHP] how to redirect with post method

2004-05-28 Thread John Nichel
Ral Castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header(location:information.php?cod1=$cod1cod2=$cod2...codn=$codn); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. Easy way, JavaScript. More

Re: [PHP] how to redirect with post method

2004-05-28 Thread raditha dissanayake
Ral Castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header(location:information.php?cod1=$cod1cod2=$cod2...codn=$codn); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. In fact if you redirect from

[PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread Bryan Waters
I've asked this question in 4 different places and in each place i've not received a single response...is that because its too hard or too esoteric? I need to get this resolved and i'm stumped... Please help! thanks again -bryanw -Original Message- From: Bryan Waters [mailto:[EMAIL

Re: [PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread John Nichel
Bryan Waters wrote: I have an Apache 1.3.27 server configured with SSL, PHP and so on... My problem is that PHP doesn't work under the SSL virtual host...it works under other named virtual hosts and the main site, but it simply doesn't work under the _default_:443 virtualhost for some reason...on

Re: [PHP] RE: PHP doesn't work under SSL for Apache

2004-05-28 Thread raditha dissanayake
Bryan Waters wrote: I've asked this question in 4 different places and in each place i've not received a single response...is that because its too hard or too esoteric? I need to get this resolved and i'm stumped... and earlier: What am i missing? If i didn't include enough information, my

[PHP] nl2br problem

2004-05-28 Thread Gerben
If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace(\n, , nl2br($text)); but I don't like it that much and I don't know if nl2br

Re: [PHP] how to redirect with post method

2004-05-28 Thread Daniel Clark
I don't believe you can sent those post variables on the URL. Either as GET variables on the URL. Set Session variables and read on the next page. Or setup a FORM with hidden post variables populated with the $post variables, and JavaScript to auot submit onload. Hello, I have a webpage that

[PHP] Re: how to redirect with post method

2004-05-28 Thread Justin Patrin
Ral castro wrote: Hello, I have a webpage that I'm redirecting to other page with header command, for instance: header(location:information.php?cod1=$cod1cod2=$cod2...codn=$codn); I need send all vars (cod1, cod2, ..codn) on POST method, How Can I do this? thanks. If you really need to redirect

[PHP] Re: nl2br problem

2004-05-28 Thread Justin Patrin
Gerben wrote: If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace(\n, , nl2br($text)); but I don't like it that much and I don't

Re: [PHP] Re: Changing environment variables ? (stupid question)

2004-05-28 Thread Harry Sufehmi
On 27/05/2004 at 12:55 Jason Barnett wrote: Oooh, wish you'd said Windows, I coulda given you a walkthru there. The environment variable that you want to set cannot (AFAIK) be changed by Apache. You'll need to change the variable in Solaris itself. So sayeth google:

[PHP] Re: nl2br problem

2004-05-28 Thread Gerben
my indentation is screwed up when I use nl2br(); Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gerben wrote: If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl

RE: [PHP] Re: nl2br problem

2004-05-28 Thread Vail, Warren
Sounds like you have tab characters and blanks controlling your indentation and html will display only one blank between text characters, has nothing to do with nl2br. This does not happen when you use pre/pre tags, but then the br doesn't work either. Warren Vail -Original Message-

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Tim Winters
Steve!!! This is great! I had no idea you could use arrays in url variables. That makes everything much easier. Thanks very much Tim At 06:26 AM 28/05/2004, Steve Edberg wrote: At 2:01 AM -0300 5/28/04, [EMAIL PROTECTED] wrote: Thanks for the reply Denis, Let me elaborate a bit. I have a php

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben [EMAIL PROTECTED] wrote: does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. $foo = str_replace('\n', 'br /', $foo); Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook -

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben [EMAIL PROTECTED] wrote: does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. $foo = str_replace('\n', 'br /', $foo); Make that \n to interpret the newline correctly. Sorry about that. Chris = Chris Shiflett - http://shiflett.org/ PHP

[PHP] Playing RealAudio files on the fly!

2004-05-28 Thread hamidhossain
Hi, I want to play realaudio files without showing their location in my site. That means I have to use php header() function to change the MIME type of the page to audio/x-pn-realaudio which looks to me the correct MIME to paly real files. Unfortunately, I did not success in playing those files.

[PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
hi all - this is probably straight forward, but i'm learning and would appreciate any insight. i'm using the datetime type in mysql and have been able to successsfully pull the data records's date, but it's failing out and giving me the current time [as in what it says on my system's clock]

Re: [PHP] datetime formatting problem

2004-05-28 Thread Daniel Clark
Isn't date a reserved word? hi all - this is probably straight forward, but i'm learning and would appreciate any insight. i'm using the datetime type in mysql and have been able to successsfully pull the data records's date, but it's failing out and giving me the current time [as in what

[PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Chris Jernigan
Hi everyone, Ok, I need serious help. I have been handed a project by my boss to convert an existing site that was built using ColdFusion / SQL into a site that will use PHP / mySQL. The site relies heavily on calls to the database for everything from site content, to an admin area where you can

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread John Nichel
Chris Jernigan wrote: Hi everyone, Ok, I need serious help. I have been handed a project by my boss to convert an existing site that was built using ColdFusion / SQL into a site that will use PHP / mySQL. The site relies heavily on calls to the database for everything from site content, to an

[PHP] PHP5 CGI with Apache2

2004-05-28 Thread Gerard Samuel
I installed php5 RC2 on winXP with Apache 2 on my dev box. I started with the sapi module and it worked great there. I edited apache's httpd.conf file to try out php as a CGI, (as mentioned in the install file), and I keep getting server 500 errors -- Internal Server Error The server

RE: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Jay Blanchard
[snip] Tell your boss it's an unrealistic goal. Even for a seasoned PHP programmer with a firm grasp on MySQL, something of this scope is unrealistic for a single person. Scoping out the db schema alone could take a week or more (depending on the size of your db). That doesn't even take

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
I've used Cold Fusion for years. However one week at 100 hours might not be enough time to covert everything to PHP and mySQL. Hi everyone, Ok, I need serious help. I have been handed a project by my boss to convert an existing site that was built using ColdFusion / SQL into a site that

Re: [PHP] datetime formatting problem

2004-05-28 Thread Torsten Roehr
Daniel Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Isn't date a reserved word? date and dateTime are not reserved in MySQL and can be used as column names. hi all - this is probably straight forward, but i'm learning and would appreciate any insight. i'm using

[PHP] Re: ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Ammar Ibrahim
Tell your boss to get a life :) I'm working on converting a large web application from ColdFusion/MsSQL to PHP/MySQL. This web app is almost around 3 million lines of code :| I was wondering if there exists a tool similiar to ASP2PHP to convert ColdFusion code to PHP. But anyway, the way

Re: [PHP] datetime formatting problem

2004-05-28 Thread Jordan S. Jones
[snip /] Hi Matt, try this: function formatDate($val) { $timestamp = strtotime($val); return date('M d, Y g:i A', $timestamp); } strtotime possibly will not work if your date is 01/01/1970. [snip /] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
thanks a bunch torsten. it worked like a charm and i'm off to read up some more on strtotime. best, m. -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] datetime formatting problem Daniel Clark

RE: [PHP] datetime formatting problem

2004-05-28 Thread Matt Newell
appreciate the headsup, but all times will be from when record is inserted which will not be possible before today. thanks, m. -Original Message- From: Jordan S. Jones [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:20 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] datetime

[PHP] Re: ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Stephen Lake
Yeah tell your boss to get stuffed and that your not old enough yet to have a stroke ;) There is absolutely no way no one knowlegable and experienced in both languages can do it in a week no less a non programmer either -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] datetime formatting problem

2004-05-28 Thread Stephen Lake
Try strftime it allows you to take a timestamp created by time() and format it as required. heres the man page for it: http://www.php.net/manual/en/function.strftime.php Matt Newell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks a bunch torsten. it worked like a charm and i'm

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Travis Low
Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days left. Oh wait -- you will probably have to work the weekend for this one. So you have six days left.

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Curt Zirzow
* Thus wrote Chris Jernigan ([EMAIL PROTECTED]): Hi everyone, What's the problem? I have one week to do this. Oh, and did I mention that I know VERY little about PHP / mySQL. I know NOTHING about ColdFusion or MSSQL. And to top it off, the site in question contains over 300 .cfm files!

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Tim Traver
Oh my god...I'm crying... what the heck is a bacon stretcher ? t At 03:52 PM 5/28/2004, Travis Low wrote: Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
That's funny Travis ! Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days left. Oh wait -- you will probably have to work the weekend for this one. So you