Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread sundogcurt
Have you double and triple checked to be sure your form elements are nested properly? [EMAIL PROTECTED] wrote: >Hi, > >I'm developing a website for multiple browsers. In Netscape 4.xx (both >Win98 and Linux versions), the php-scripts display the select boxes in >my forms only as plain text. I c

Re: [PHP] Using a HTML button

2002-01-11 Thread sundogcurt
JAVASCRIPT VERSION mytitle function multiply(x){ var myresult = 2 * x; document.write(myresult); } PHP VERSION mytitle if($mybutton){ $myresult = 2 * $mybutton; pr

[PHP] mysql_fetch_row win32 to Linux

2002-01-12 Thread sundogcurt
Hi everybody, I have some scripts running on win32 Apache mySQL and they all run great. I have copied the entire application to my Linux box which I think I have running pretty smoothly now. The database is there and I can access it just fine etc etc. Here is the hitch (there's always a hitch)

Re: [PHP] help with include

2002-01-12 Thread sundogcurt
I think you can use a URL when you specify your value in the include statement, can you not? [EMAIL PROTECTED] wrote: >Hi, I need some help with the include function. >I have a phpBB script and want to put the config.inc.php file in a password >protected directory, Easy peasy you might say, and

Re: [PHP] mysql_fetch_row win32 to Linux

2002-01-13 Thread sundogcurt
Like this $myquery = "SELECT * FROM xpackage"; print "myquery = $myquery"; $myresult = mysql_query($myquery); while($myrowz = mysql_fetch_row($myresult)){ print "" . $myrowz[0] . ""; } [EMAIL PROTECTED] wrote: >on 1/12/02 11:45 AM, sundogc

[PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread sundogcurt
Hi! I'm storing a date in this format : 2002-01-13 11:08:40 -mm-dd hh:mm:ss This is great because it gives me the date and the time, which I need. I want to compare this date from the database to the current DAYOFYEAR() but when I do this select DAYOFYEAR('2002-01-13 11:08:40') I get this

Re: [PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread sundogcurt
I am a dork! And you answered that almost before I sent it, you're like Mighty Mouse on Ginseng! [EMAIL PROTECTED] wrote: >This doesn't appear to be a PHP question. Are you sure you are on the >right list? > >On Sun, 13 Jan 2002, sundogcurt wrote: > >>Hi! I&

Re: [PHP] PHP as a cron job

2002-01-16 Thread sundogcurt
I know this is a total hack job but could you say, set the location of the script as your default page in a browser, then open the browser via cron and it would run it as the page opens? I am interested in this too, I am VERY new to Linux and have only just started to look at cron, any li

Re: [PHP] RTFM

2002-01-19 Thread sundogcurt
I've been (sorta) following this thread for the last little while and I have to say that I'm on the side of "one list for all!". The problem with splitting the list is the different levels of "newbie-ism" on different subjects, There are things that advanced users can learn from new comers to

Re: [PHP] RTFM

2002-01-19 Thread sundogcurt
s like to struggle. The >mailing list is awesome; I've never really posted a question because the >answers are in the archive. > >- Original Message - >From: "sundogcurt" <[EMAIL PROTECTED]> >To: "GENERAL PHP LIST" <[EMAIL PROTECTED]> >

[PHP] ftp functions

2002-01-21 Thread sundogcurt
Before I get flamed for not reading the manual or trying on my own, I would just like to say that I have been working on this for a few days and have read the manual and looked at quite a few examples, all of which seem to elude me. I want to upload an image, and I want to use the ftp functi

Re: [PHP] ftp functions

2002-01-21 Thread sundogcurt
do, ftp will not work. > >Jim Lucas >- Original Message - >From: "sundogcurt" <[EMAIL PROTECTED]> >To: "GENERAL PHP LIST" <[EMAIL PROTECTED]> >Sent: Monday, January 21, 2002 10:47 AM >Subject: [PHP] ftp functions > > >> >>

Re: [PHP]Upload file to system

2002-01-27 Thread sundogcurt
http://www.php.net/manual/en/features.file-upload.php http://www.faqts.com/knowledge_base/view.phtml/aid/988 : ) [EMAIL PROTECTED] wrote: >I want to make something like when you are attaching something to an >email in hotmail. I want to make something that searches your own >computer for files

Re: [PHP]Upload file to system

2002-01-27 Thread sundogcurt
les no bigger >then 100 kb? I have changed the MAX_FILE_SIZE to 10. Also, I can't >change the php.ini, coz the webserver isn't mine.. what to do now?? > >Sundogcurt wrote: > >>http://www.php.net/manual/en/features.file-upload.php >>http

Re: [PHP]Upload file to system

2002-01-28 Thread sundogcurt
Is that a bad word? \ : [EMAIL PROTECTED] wrote: >Did someone say hosting fees? > >- Original Message - >From: "sundogcurt" <[EMAIL PROTECTED]> >To: "GENERAL PHP LIST" <[EMAIL PROTECTED]> >Sent: Monday, January 28, 2002 3:32 PM >Su

Re: [PHP] Date function

2002-01-28 Thread sundogcurt
Is this date stored in mysql by anychance? [EMAIL PROTECTED] wrote: >Hi All, > >Is there any function in PHP4.X or in Oracle8i to calculate number of >Business days ( excluding Saturday and Sunday) between two given dates? > >Thanks in advance. >Sridhar. > >-Original Message- >From: qar

[PHP] upload permission denied!

2002-01-28 Thread sundogcurt
I'm not sure if this is a problem I can overcome with PHP or if I have to go directly to the Linux box to fix (I hope not). I have moved my development from a win32/apache/mysql box to a Mandrake/apache/mysqly box and have only one problem (that I know of) to overcome. When I try to upload an

Re: [PHP] upload permission denied!

2002-01-28 Thread sundogcurt
[EMAIL PROTECTED] wrote: > >At least give us the error you get. > >And it sounds like I'd need to see your code too. > >bvr. > >On Mon, 28 Jan 2002 15:23:50 -0800, sundogcurt wrote: > >>I'm not sure if this is a problem I can overcome

Re: [PHP] upload permission denied!

2002-01-28 Thread sundogcurt
the directory permissions are set to 777 / 0777 any user, any group, etc. at least that is how I understand it. if i'm wrong please correct me, I do appreciate the help thank you. [EMAIL PROTECTED] wrote: >On Tuesday 29 January 2002 11:10, sundogcurt wrote: > >>Like so? &

Re: [PHP] upload permission denied!

2002-01-28 Thread sundogcurt
;On Tuesday 29 January 2002 11:48, sundogcurt wrote: > >>the directory permissions are set to 777 / 0777 any user, any group, >>etc. at least that is how I understand it. if i'm wrong please correct >>me, I do appreciate the help thank you. >> > >If they're

[PHP] funny unlink problem

2002-01-30 Thread sundogcurt
unlink(); help the file I would like to delete (actual path) /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg path I am feeding to unlink function /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg error I get when I try to delete the file Warning: Unli

Re: [PHP] funny unlink problem

2002-01-30 Thread sundogcurt
AARHHH!!! thank you! (man I hate that...) [EMAIL PROTECTED] wrote: >I see 55jpg NOT 55.jpg > >--Tony > >On Wed, 2002-01-30 at 12:40, sundogcurt wrote: > >>unlink(); help >> >>the file I would like to delete (actual path) >>/home/gruesom

Re: [PHP] PHP and listbox multiple selections

2002-01-31 Thread sundogcurt
Notice the "[ ]" at the end of the select box name, this prompts php to treat the values as an array. $myrow[1]"; } } ?> When the form is submitted I fire this code $mycount = count($options); // get the number of elements in the array (selected in the drop down) while($myc

[PHP] loading Arrays

2002-02-28 Thread sundogcurt
Do I have to fully load up an array when I declare it or can I assign more values to it later? What I want to do is something like this : // create empty array $samplearray = array(); // add value to array if($flag == "true"){ $samplearray => $samplevalue; } This doesn't work, can anybody

[PHP] passed val compare to array val

2002-04-12 Thread sundogcurt
Hi guys, like every other problem I have this one is SURE to be painfully simple to fix and make me look g0ofy again. I have an edit user form with checkboxes like the one below : > When the form loads I grab the users relevant information and display it, I am having trouble checking checkbox

[PHP] passing array from one page to itself?

2002-04-12 Thread sundogcurt
Hi again guys, I'm having trouble finding documentation on passing an array. Here is what I am doing. I have one page that calls itself, I want to pass an array that is setup the first time it's called to itself the second time it's called. I'm running out of both time AND hair (both of which a

Re: [PHP] passing array from one page to itself?

2002-04-12 Thread sundogcurt
could do something like the following: > >$array = array("value1","value2","value3"); >for($i=0;$iecho ""; >} >-- > >On Fri, 12 Apr 2002 17:14:14 > sundogcurt wrote: > >>Hi again guys, I'm having trouble finding document

[PHP] Date help (no not that kind)

2001-11-10 Thread sundogcurt
I am trying to determine if todays date ($today) is within a week ($startcheck) of a given date ($dob). This is what I have so far. $todaydate = (date("Y-d-m")); $today = strtotime($todaydate); // $today prior to strtotime = 2001-10-11 $startcheck = strtotime(2001-08-11); $dob = strtotime(2001-1

[PHP] take date and convert to day of year

2001-11-13 Thread sundogcurt
Hi guys, I know that you can take todays date and display it as the numeric day of the year, 1 - 365 / 0 - 364 etc. But can you take a date such as (November-30-1971) and convert that to the numeric day of the year? I have been trying to do this but have had no joy, I don't think my code is ev

Re: [PHP] take date and convert to day of year

2001-11-13 Thread sundogcurt
;]; >print $dobnum; > >Notice I changed the format of the date, when I tried using the original >format, strtotime() complained, saying it couldn't convert it. > >Martin T > >-Original Message- >From: sundogcurt [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, November

Re: [PHP] silly question

2001-11-13 Thread sundogcurt
Take care to be sure that you make the update, before the rest of the page loads, things happen in order, so it's almost like creating your page backwards (I just had that problem). I can elaborate if you like. (C: [EMAIL PROTECTED] wrote: >Hi list, > >I have PHP code to insert the result of

Re: [PHP] take date and convert to day of year fixed!

2001-11-14 Thread sundogcurt
> >- Original Message - >From: "Martin Towell" <[EMAIL PROTECTED]> >To: "GENERAL PHP LIST" <[EMAIL PROTECTED]> >Sent: Wednesday, November 14, 2001 3:19 AM >Subject: RE: [PHP] take date and convert to day of year > > >>I&#x