RE: [PHP] Agh! Driving me crazy!

2003-06-18 Thread Michael Sweeney
', '$place[0]', '$inmb', '$ides', '$iicp', '$cases', '$place[1]', '$iice', '$isgs'); I keep getting: Query failed: You have an error in your SQL syntax near '' at line 1 Query was: 1064 exiting. -- Michael Sweeney [EMAIL PROTECTED] Verisity Design, Inc -- PHP General Mailing List

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Michael Sweeney
Joe, I mostly agree with your opinion. But remember that a method in an object that has output doesn't have to print the output - it can return it instead and the calling function can then either display the output or do something else with it. And if it makes sense to have a method return HTML,

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Michael Sweeney
Look at http://www.php.net/strtotime ..micahel.. On Thu, 2003-05-29 at 09:21, Anthony wrote: I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do this? Do I have to

Re: [PHP] Isset

2003-03-21 Thread Michael Sweeney
be false), isset() seems to work. Should I change all my $ != to isset()s, or are there other factors I should check? Conversely, what about empty(). Is that a better test for if a value could be 0 or 1 or 2 or ABC? -- Michael Sweeney [EMAIL PROTECTED] Verisity Design, Inc -- PHP General

Re: [PHP] Select value for driopdown box

2003-01-22 Thread Michael Sweeney
= select name=\state\ class=Pgtext $option_block /select ? tr td width=258 class=Pgtext height=21State/td td width=259 height=21? echo $display_block; ?/td /tr -- Michael Sweeney [EMAIL PROTECTED] Verisity Design, Inc -- PHP General Mailing List (http

Re: [PHP] Looking for advice on a non-profit site development

2003-01-13 Thread Michael Sweeney
Check out phpnuke.org - content management system that seems to answer most of the criteria you've set out here. ..michael.. On Mon, 2003-01-13 at 13:46, White Wolf wrote: Hi All, I am a C++ guy, who plans to do a site about C++ Idioms. I would like to make it into a community site with

Re: [PHP] Text editors

2003-01-07 Thread Michael Sweeney
jEdit. www.jedit.org. On Tue, 2003-01-07 at 01:59, Karl James wrote: Hello guys, Right now im using dreamweaver mx I was wondering if anyone knew of any good free text editors that has line counts And is good for php…. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Double entry into MySQL..

2003-01-07 Thread Michael Sweeney
...; $query = INSERT INTO track_dl (dldate, email, file) VALUES ('$today', '[EMAIL PROTECTED]', 'file.ext'); $result = mysql_query($query); if(!$result) echo Can't execute query: . mysql_error(); header(Content-type: application/pdf); readfile(file.pdf); exit(); ? -- Michael Sweeney

Re: [PHP] Error installing

2002-12-20 Thread Michael Sweeney
If you are trying to load a PHP-Nuke site, your problem is that the page can't access your mysql server. Either the server is not running, or the hostname/username/password is not correct so the program is unable to successfully connect to the mysql server. ..michael.. On Fri, 2002-12-20 at

Re: [PHP] libcrypt.a and solaris 8

2002-12-20 Thread Michael Sweeney
I've recently compiled PHP (4.2.3) with openssl support on a Solaris 8 system. openssl does not have a libcrypt.a library - it does have libcrypto.a. How did you install openssl and what is your configuration line for PHP? I've found it to be best to configure openssl so that it installs somewhere

Re: [PHP] preg_match()

2002-12-02 Thread Michael Sweeney
,Epost); preg_match_all( '/?/', $Epost, $result); foreach ($result[0] as $loop_result) sturle -- Michael Sweeney [EMAIL PROTECTED] Verisity Design, Inc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Set Variable to Multiple Lines

2002-08-29 Thread Michael Sweeney
What you're looking for seems to be called the 'here document' syntax. I've always seen it used with print and there's a reference to it in the print function (okay, construct) PHP documentation, but a quick test shows that you can also use it to assign to variables. As follows: $var = END

Re: [PHP] Undefined index error

2002-08-19 Thread Michael Sweeney
If you try to access a form variable that hasn't been set, you get an undefined index. Try checking with something like if(isset($_POST['SortBy'])) { // do something with 'SortBy' } In any case, you'll get the undefined index warning anytime you try to read an array index that hasn't been

Re: [PHP] HELP with forms

2002-08-02 Thread Michael Sweeney
What do you mean, return it to a php variable? The closest I can come to understanding your question is that you want the form input in your bottom frame to be sent to another frame in your top window for submission. If that's any place close to correct, you need a javascript solution. In any

Re: [PHP] Need help to choose hosting!

2002-08-02 Thread Michael Sweeney
I just moved my domain over to phpwebhosting.com. The transfer went very smoothly and so far I've been satisfied. The only hitch I can see in your requirements might be the background processes (bots, what?). But it's probably worth asking them about. ..michael.. On Thu, 2002-08-01 at 23:31,

Re: [PHP] Help with fopen please.

2002-08-01 Thread Michael Sweeney
Shane, You haven't told us what the problem is, only that you're having trouble making it work. How is it not working? One other question: I have to assume that the script is running on a different server than the one your are trying to write to (otherwise, why use ftp?) - are you sure that the

Re: [PHP] Inserting Processed Data from One Table 2 Another!

2002-07-24 Thread Michael Sweeney
You might want to consider a slightly different approach - that being to use your php code to generate a delimited file of your data and use either mysqlimport from the command line if you can, or the LOAD DATA INFILE sql statement to load the file into your database. That's going to be a lot

Re: [PHP] Script Testing Portal Connections...

2002-07-23 Thread Michael Sweeney
Um...did you happen to modify this to have a valid IP address or host name for $host and a valid port number for $port? It would also help to have a valid path for $command that is going to talk to a daemon on the port you specify (ie. making a connection to port 80 and asking for

RE: [PHP] Re: does this mean ....

2002-07-23 Thread Michael Sweeney
popen() opens a named pipe to a program - you can read and write to it if the program you're piping to supports that kind of interactivity (mostly you just read the output from the command). However, in this case, I don't think you want either popen() or fopen() (certainly not fopen() - that just

Re: [PHP] HELP !!! : Sablotron and not good HTML

2002-07-08 Thread Michael Sweeney
The way out is to write standards compliant markup (meaning 'good' HTML). Read the RFCs, use a validator, Sablotron will stop complaining. (eg: img src=path/to/image / ) - (note method to close an image tag) ..mike.. On Mon, 2002-07-08 at 16:52, Markas wrote: Sablotron seems not to like, when

Re: [PHP] User Enviroment Vars

2002-07-02 Thread Michael Sweeney
Ask them. Seriously, PHP is a server-side platform. The only information about the client that you're possibly going to be able to get is what is passed to you either through the headers of a request (basically just the remote address and some browser information), or what the user tells you

Re: [PHP] does a form submit from a http page to a https ensuresecure data?

2002-07-02 Thread Michael Sweeney
Your form action parameter has an absolute url specifying an https protocol. When the browser submits the form, it uses the url you specify which is https. So the request is going to be encrypted. You might consider serving the form page from https as well to kind of tighten things up a little,

Re: [PHP] PHP and Apache

2002-07-02 Thread Michael Sweeney
No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Michael Sweeney
First, run a php script that calls phpinfo() and make sure that the php module in your server is running against the php.ini file you think it is. Verify the name and path of the log file. Second, make sure that errors are being reported, meaning check your php.ini file for the error_reporting

Re: [PHP] Passing URL as variable

2002-06-20 Thread Michael Sweeney
You need to run the link value through urlencode() before you stick it in the url. When you need to read it as a legal url again, pass it through urldecode(). ..michael.. On Thu, 2002-06-20 at 11:20, Lisi wrote: I have the following link in my code:

RE: [PHP] Include/require

2002-06-20 Thread Michael Sweeney
Be careful not to get confused between a chrooted environment like the web server or ftp server and php include paths. PHP handles the include and require parameters either as absolute (eg /inc/filename is an absolute path from / - it is not relative to the web docroot.) or relative to the

Re: [PHP] Escaping escaped chars

2002-06-20 Thread Michael Sweeney
Just escape the \ with a single escape character. eg. your string '\0P Z\0Îê˜Úµ' would end up as '\\0P Z\\0Îê˜Úµ' - each \ simply escapes the backslash following it. If you add two backslashes, you end up with one too many which is what the error is referring to. ..micahel.. On Thu,

Re: [PHP] Can I be an ASP with PHP?

2002-06-20 Thread Michael Sweeney
On Thu, 2002-06-20 at 11:29, René Fournier wrote: And this is the trick: Can PHP somehow fetch MySQL data over the Internet? Is this possible? If so, is it necessary for me to resort to new, unknown technologies like XML or SOAP, or can I do it with PHP alone? PHP can fetch (and

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

Re: [PHP] Editor

2002-06-13 Thread Michael Sweeney
I've been using jEdit (www.jedit.org) for months under Linux - very effective for PHP (as well as Java and many other languages). Perhaps comparable to TextEdit in the Windows universe, complete with 'snippet' insertion. Many plugins available, very extensible, very capable editor. ..michael..

Re: [PHP] Run php function with user click

2002-05-31 Thread Michael Sweeney
On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way to run a

Re: [PHP] php, javascript

2002-05-31 Thread Michael Sweeney
On Friday 31 May 2002 13:18, Gerard Samuel wrote: Just a general question. Is it possible to embed php in pure javascript/dhtml code?? I tried but it didn't work, not sure if it was me or its not possible. Thanks... As long as you enclose the PHP code in script delimiters (?php ... ?) and

[PHP] SQL question, getting error and not sure why

2002-05-30 Thread Michael Sweeney
My following query : insert into acteursenc (nuacteur,nomacteur) (select AA, BB from (select max(nuacteur)+1 AA from acteursenc), (select 'Michael Sweeney' BB from acteursenc)) produces an ORA-1: unique constraint error

[PHP] Re: SQL question, getting error and not sure why

2002-05-30 Thread Michael Sweeney
s:[EMAIL PROTECTED]... Maybe it does in Oracle - you should check your documentation though... BTW, please post your replies to the list rather than me personally :-) -Original Message- From: Michael Sweeney [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 15:58 To: Michael Davey Sub

[PHP] Trouble with PHP XMLRPC on Solaris

2002-05-30 Thread Michael Sweeney
I'm trying to get some xmlrpc connectivity working through PHP. Current configuration is Apache 1.3.22/PHP 4.2.0 on Solaris 7. I've linked to the current expat libraries. Configure and compile don't show any problems and other PHP scripts (including phpinfo) work fine. The problem is that an

[PHP] Newbie question about PHP and Oracle

2002-05-27 Thread Michael Sweeney
a VERY newbie question, just how do I get data into a listbox? In mysql it was pretty easy with mysql_fetch_row, but for oracle I am totally lost. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php