[PHP] PHP Calendar script

2006-03-01 Thread Robin Hastings
I have been trolling through hotscripts.com and google all night and have tried out a couple of promising-looking PHP-based calendar scripts with no luck, so I'm turning to the collective wisdom of the list to help me out. I'm looking for a calendar script that I can plug into a web site that can s

[PHP] url of code pasted

2006-03-01 Thread Remember14a
Here is the url http://pastebin.com/579621

Re: [PHP] Php Setup Question

2006-03-01 Thread Chris
Christopher Taylor wrote: I am trying to setup a webserver for testing at home. I can execute php scripts fine, but I cannot include local files like include (test.php). The page comes up with a permission denied. The url is http://mojo.hst-percussion.com/index.php. The phpinfo is http://mojo

[PHP] Php Setup Question

2006-03-01 Thread Christopher Taylor
I am trying to setup a webserver for testing at home. I can execute php scripts fine, but I cannot include local files like include (test.php). The page comes up with a permission denied. The url is http://mojo.hst-percussion.com/index.php. The phpinfo is http://mojo.hst-percussion.com/test.php

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread Pat
Thanks to all who helped. The answer...drumroll arrays for each entry: load routine (partial): print "name='imageqty[]' size='5' value='$qty'>"; print "value='".$row[cialbum]."'>"; print ""; print "value='".$row[ciimage]."'>"; print "value='".$row[cisize]."'>"; retrieval rou

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: Below is the detailed code and error this is giving, *Warning*: usort(): The argument should be an array in */home2/wwwabcde/public_html/search/searchfuncs.php* on line *311* *---* *Once I enter for examp

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Robert Cummings
On Wed, 2006-03-01 at 22:26, [EMAIL PROTECTED] wrote: > Is there a good reason for why you're clogging the mailing list with your fancy shmancy HTML emails? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.c

Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Remember14a
    Below is the detailed code and error this is giving,   Warning: usort(): The argument should be an array in /home2/wwwabcde/public_html/search/searchfuncs.php on line 311 --- Once I enter for example,law at    http://www.abcdefg.us/s

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-03-01 Thread Chris
Chris Lott wrote: Thanks for the advice-- I've run Linux without a GUI for a long time, so I'm quite familiar with hand compilations-- but I always wondered if I was just missing something with packaging systems that it seemed to REQUIRE hand-compilation to get a workable development LAMP system

[PHP] Re: preg_replace problem

2006-03-01 Thread Rafael
e_ini_file($file, 1); $newValue = $getOldValue[$today] + 1; $oldDate = $today . " = ". $newValue; $newDate = preg_replace('/(\d+\s\=\s)(\d+)/ie', 'incDate("$1","$2")', $oldDate); file_put_contents($file, $newDate . "\n"); This works with one fi

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-03-01 Thread John Meyer
Chris Lott wrote: > Thanks for the advice-- I've run Linux without a GUI for a long time, > so I'm quite familiar with hand compilations-- but I always wondered > if I was just missing something with packaging systems that it seemed > to REQUIRE hand-compilation to get a workable development LAMP

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread tedd
Pat: I would suggest changing to: http://.../chkout.php?imagename=NATURE-1.jpg&count=6&continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually "getting" try: echo (""); echo (""); echo ("GET info:\n"); print_r($_GET); echo("");

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-03-01 Thread Chris Lott
Thanks for the advice-- I've run Linux without a GUI for a long time, so I'm quite familiar with hand compilations-- but I always wondered if I was just missing something with packaging systems that it seemed to REQUIRE hand-compilation to get a workable development LAMP system. Anytime I tried us

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: *If I put this *code $res = array(); while($row = mysql_fetch_assoc($query_result)) { before usort($res, "cmp"); give this error ** ** *Parse error*: parse error, unexpected $ in */home2/wwwabcde/public_html/search/searchfuncs.php* on line *316* ** *even * put

Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Remember14a
If I put this code   $res = array();while($row = mysql_fetch_assoc($query_result)) {   before   usort($res, "cmp"); give this error     Parse error: parse error, unexpected $ in /home2/wwwabcde/public_html/search/searchfuncs.php on line 316   even  putting this code before     $res[$i]['size'] =

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: I have done as per your instructions, and put var_dump($res); BEFORE usort($res, "cmp"); Please, go again to http://www.abcdefg.us/search/search.php Enter law we get this output. NULL *Warning*: usort(): The argument should be an array in */home2/wwwabcde/pub

Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Remember14a
I have done as per your instructions, and put   var_dump($res);BEFOREusort($res, "cmp");   Please, go again to http://www.abcdefg.us/search/search.php   Enter law we get this output.   NULL Warning: usort(): The argument should be an array in /home2/wwwabcde/public_html/search/searchfuncs.php on

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread Pat
tedd wrote: I have a list from a MYSQL database that I am dumping to a screen. I'd like the user to be able to change the quantity on the form for any record on the screen, then post that information back so the user can review it, and I can then update the database. Simple checkout routine.

Re: Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: let me give you more details to understand problem with the said code. go to this link, please. http://www.abcdefg.us/search/search.php in search enter, Justice, you get response without an error. Now enter law, you get error, pasted below, *Warning*: usort()

Re: [PHP] image in memory to mySQL

2006-03-01 Thread Chris
tedd wrote: Hi: I know how to upload an image from a file into a BLOB in mySQL, but how do you place an image that's in memory into mySQL? For example, if I create an image via resampling another image or create a new image, how do I get that image into mySQL? I know I can save it as a fil

Fwd: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Remember14a
let me give you more details to understand problem with the said code.   go to this link, please.   http://www.abcdefg.us/search/search.php   in search enter, Justice, you get response without an error.   Now enter law,   you get error, pasted below, Warning: usort(): The argument should be an a

Re: [PHP] Re: How can I stop PHP from resolving symlinks?

2006-03-01 Thread Chris
Roy Souther wrote: It is and the key word here is "Follow" as in resolve the real file location before parsing. This is clearly an Apache problem. I have asked this question on a few Apache forums and lists now and have not had any response. Is there any way to make Apache parse the files wh

[PHP] image in memory to mySQL

2006-03-01 Thread tedd
Hi: I know how to upload an image from a file into a BLOB in mySQL, but how do you place an image that's in memory into mySQL? For example, if I create an image via resampling another image or create a new image, how do I get that image into mySQL? I know I can save it as a file and load it

Re: [PHP] subtract dates

2006-03-01 Thread tedd
Benjamin: I'm trying subtract to dates the user enters in and get the days between. Dates are stored as date('mdY') is there a built in function to subtract to dates is this format? Try this for starters: There are other examples at: http://www.weberdev.com/get_example-3646.html http://w

Re: [PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Chris
[EMAIL PROTECTED] wrote: You have written, Now do a var_dump($res) and see what *is* in $res or do print_r(). Can you precisely mention where you want me to put this piece of code. Please include your original post so we can all see it so we don't have to search to find what you're talkin

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-03-01 Thread Chris
Aleksandar Skodric wrote: Hi, I have changed the directory to the same disk. Results are _much_ better! So nothing to blame on PHP, only my lack of knowledge about *nix-like system *blush* Thank all for the advice and help! It's not *nix systems - it's all operating systems. When you move a

Re: [PHP] binding adodb

2006-03-01 Thread Chris
Raúl Castro Marín wrote: I got a little question, I just start to use binding adodb but I got a problem: my primary query on Oracle is: $query = "SELECT munici_mun, UPPER(nombre_mun) FROM MUNI WHERE departa_dpt = ? AND munici_mun <= 994"; It is execute with any problem, but when I add anot

Re: [PHP] preg_replace problem

2006-03-01 Thread Chris
= ". $newValue; $newDate = preg_replace('/(\d+\s\=\s)(\d+)/ie', 'incDate("$1","$2")', $oldDate); file_put_contents($file, $newDate . "\n"); This works with one file but with multi lines I'm having trouble: if the file has: 20060301 = 34 2006030

Re: [PHP] leading slash in SCRIPT_NAME variable

2006-03-01 Thread Chris
Roman Rumisek wrote: Hi, i have configured apache 2.0.50 with mod_php 4.4.2 and $_SERVER['SCRIPT_NAME'] beginning with /// (three slash). Where have i a error ? (probably configuration) Application apache configuration: Alias /trsklad/ /.../projects/akce/src/html/ AllowOverride All

[PHP] image in memory to mySQL

2006-03-01 Thread tedd
Hi: I know how to upload an image from a file into a BLOB in mySQL, but how do you place an image that's in memory into mySQL? For example, if I create an image via resampling another image or create a new image, how do I get that image into mySQL? I know I can save it as a file and load it

Re: [PHP] internal error when mailing...

2006-03-01 Thread Chris
Gustav Wiberg wrote: - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 9:57 PM Subject: Re: [PHP] internal error when mailing... Gustav Wiberg wrote: Here's my code if (strtoupper(substr(PHP_OS,0,3)=

[PHP] Re: usort(): The argument should be an array

2006-03-01 Thread Remember14a
You have written, Now do a var_dump($res) and see what *is* in $res or do print_r(). Can you precisely mention where you want me to put this piece of code.

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-03-01 Thread Aleksandar Skodric
Hi, I have changed the directory to the same disk. Results are _much_ better! So nothing to blame on PHP, only my lack of knowledge about *nix-like system *blush* Thank all for the advice and help! Cheers, Aleks PS. defining of php_value in virtual host of apache did not work, so I changed

Re: [PHP] subtract dates

2006-03-01 Thread tedd
Benjamin: I'm trying subtract to dates the user enters in and get the days between. Dates are stored as date('mdY') is there a built in function to subtract to dates is this format? Try this for starters: There are other examples at: http://www.weberdev.com/get_example-3646.html http://w

Re: [PHP] subtract dates

2006-03-01 Thread John Nichel
Benjamin Adams wrote: I'm trying subtract to dates the user enters in and get the days between. Dates are stored as date('mdY') is there a built in function to subtract to dates is this format? Thanks Built in, not that I'm aware of. However, if you're the one storing the dates, you could s

[PHP] subtract dates

2006-03-01 Thread Benjamin Adams
I'm trying subtract to dates the user enters in and get the days between. Dates are stored as date('mdY') is there a built in function to subtract to dates is this format? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] internal error when mailing...

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 9:57 PM Subject: Re: [PHP] internal error when mailing... Gustav Wiberg wrote: Here's my code if (strtoupper(substr(PHP_OS,0,3)=='WIN')): $eol="\r\n";

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "Jim Moseby" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, March 01, 2006 9:17 PM Subject: RE: [PHP] Mailto members..? > This type of email may be more susceptible to bei

[PHP] Re: fopen failing, permission denied

2006-03-01 Thread Dan Baker
(SOLVED, see below) "Dan Baker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Chris" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dan Baker wrote: >>> I have the following code snippet: >>> $h = fopen("$path/file.txt", 'x+'); >>> >>> And it generates the foll

Re: [PHP] internal error when mailing...

2006-03-01 Thread John Nichel
Gustav Wiberg wrote: Here's my code if (strtoupper(substr(PHP_OS,0,3)=='WIN')): $eol="\r\n"; elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')): $eol="\r"; else: $eol="\n"; endif; //Message Subject $emailsubject="Stammis Internet nyhetsbrev " . date("Y/m/d H:i:s"); //Message Body ob_start(); r

[PHP] binding adodb

2006-03-01 Thread Raúl Castro Marín
I got a little question, I just start to use binding adodb but I got a problem: my primary query on Oracle is: $query = "SELECT munici_mun, UPPER(nombre_mun) FROM MUNI WHERE departa_dpt = ? AND munici_mun <= 994"; It is execute with any problem, but when I add another clause with keyword: AN

[PHP] internal error when mailing...

2006-03-01 Thread Gustav Wiberg
Here's my code if (strtoupper(substr(PHP_OS,0,3)=='WIN')): $eol="\r\n"; elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')): $eol="\r"; else: $eol="\n"; endif; //Message Subject $emailsubject="Stammis Internet nyhetsbrev " . date("Y/m/d H:i:s"); //Message Body ob_start(); require("emailbody.php"

Re: [PHP] Failed to open stream

2006-03-01 Thread John Nichel
tedd wrote: > Please review (this works): http://www.webbytedd.com/examples/rank.php > However, this doesn't: http://www.xn--ovg.com/rank.php > Any idea as to what is wrong? Yes. You're violating google's terms of service. Okay, so one is violating google's terms of service and

Re: [PHP] Failed to open stream

2006-03-01 Thread Robin Vickery
On 01/03/06, tedd <[EMAIL PROTECTED]> wrote: > > In any event, considering the Google Police here, I've removed the > offending code. > Google Police? Aye, right! You asked why your script was failing. It's failing because they detected you were breaking their terms. Couldn't care less myself; it

RE: [PHP] Mailto members..?

2006-03-01 Thread Jim Moseby
> > This type of email may be more susceptible to being caught > in spam traps. > > Check with your webhost to learn of any limits to the > number of recipients > > per message, and number of messages per day/hour/etc. > > > > JM > > Aha.. that's a reason good enough for me for not using this me

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "Marcus Gnaß" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, March 01, 2006 7:29 PM Subject: RE: [PHP] Mailto members..? > Gustav Wiberg schrieb: >> while ($dbArray = my

Re: [PHP] Failed to open stream

2006-03-01 Thread tedd
> Please review (this works): http://www.webbytedd.com/examples/rank.php > However, this doesn't: http://www.xn--ovg.com/rank.php > Any idea as to what is wrong? Yes. You're violating google's terms of service. Okay, so one is violating google's terms of service and failing while

Re: [PHP] Mailto members..?

2006-03-01 Thread John Nichel
Gustav Wiberg wrote: - Original Message - From: "Marcus Gnaß" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 5:29 PM Subject: Re: [PHP] Mailto members..? Gustav Wiberg schrieb: while ($dbArray = mysql_fetch_array($querys)) { ...sendmail (fr

RE: [PHP] Mailto members..?

2006-03-01 Thread Jim Moseby
> > Gustav Wiberg schrieb: > >> while ($dbArray = mysql_fetch_array($querys)) { > >> ...sendmail (from, to, htmltext...)... > >> } > > Why let PHP do all the work? If the body is all the same for all > > recipients you could send only one mail with all recipients in the > > BCC-field and only on

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Marcus Gnaß" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 5:29 PM Subject: Re: [PHP] Mailto members..? Gustav Wiberg schrieb: while ($dbArray = mysql_fetch_array($querys)) { ...sendmail (from, to, htmltext...).

Re: [PHP] About date & time...

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Marcus Gnaß" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 5:24 PM Subject: Re: [PHP] About date & time... Gustav Wiberg schrieb: function currenttime() { $t = date('h\:\ i\:\ s'); $returnTime = str_replace

[PHP] preg_replace problem

2006-03-01 Thread Benjamin Adams
preg_replace('/(\d+\s\=\s)(\d+)/ie', 'incDate("$1","$2")', $oldDate); file_put_contents($file, $newDate . "\n"); This works with one file but with multi lines I'm having trouble: if the file has: 20060301 = 34 20060302 = 3 the file after sc

Re: [PHP] Failed to open stream

2006-03-01 Thread Robin Vickery
On 01/03/06, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have two *identical*l routines residing on two difference hosts -- > one works and the other doesn't. > > Please review (this works): > > http://www.webbytedd.com/examples/rank.php > > However, this doesn't: > > http://www.xn--ovg.com/ra

RE: [PHP] Failed to open stream

2006-03-01 Thread jblanchard
[snip] I have two *identical*l routines residing on two difference hosts -- one works and the other doesn't. [/snip] Is safe mode 'on' on one and not the other? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Failed to open stream

2006-03-01 Thread tedd
Hi gang: I have two *identical*l routines residing on two difference hosts -- one works and the other doesn't. Please review (this works): http://www.webbytedd.com/examples/rank.php However, this doesn't: http://www.xn--ovg.com/rank.php Any idea as to what is wrong? I can provide code if

[PHP] Re: fopen failing, permission denied

2006-03-01 Thread Dan Baker
"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dan Baker wrote: >> I have the following code snippet: >> $h = fopen("$path/file.txt", 'x+'); >> >> And it generates the following error: >> Warning: fopen(/home/./myarea/file.txt): failed to open stream: >> Permission deni

RE: [PHP] Mailto members..?

2006-03-01 Thread Kevin Davies - Bonhurst Consulting
Others here have mentioned the use of a mailer class I can't remember the name of (phpmailer maybe?). PHPMailer is really good for sending HTML/Text/Both emails - I'm using it on a few different sites. Link: http://phpmailer.sourceforge.net/ Also, if you're going to use PHPMailer an excellent

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Kevin Davies - Bonhurst Consulting" <[EMAIL PROTECTED]> To: "'Jim Moseby'" <[EMAIL PROTECTED]>; "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "'PHP General'" Sent: Wednesday, March 01, 2006 4:32 PM Subject: RE: [PHP] Mailto members..? Others here have mentione

Re: [PHP] ftp_get from an IBM Mainframe z/vm system ?

2006-03-01 Thread Barry
Robin Vickery wrote: On 01/03/06, Nils Reimann <[EMAIL PROTECTED]> wrote: $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"); $download = ftp_get($conn_id, "$locale", "TEST EXEC", FTP_ASCII); ftp_quit($conn_id); connection workd, but th

Re: [PHP] ftp_get from an IBM Mainframe z/vm system ?

2006-03-01 Thread Robin Vickery
On 01/03/06, Nils Reimann <[EMAIL PROTECTED]> wrote: > > $conn_id = ftp_connect($ftp_server); > $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"); > $download = ftp_get($conn_id, "$locale", "TEST EXEC", FTP_ASCII); > ftp_quit($conn_id); > > connection workd, but the download d

RE: [PHP] Mailto members..?

2006-03-01 Thread Jim Moseby
> Hi guys! > > Anyone knows of something like this, but for free? > http://www.webscriptsdirectory.com/PHP/E-Mail-Systems/Php-News > letter-Script-L1237/ > > All I want to do is to send "a html mail" to all my members at > http://www.stammis.com/ (swedish site for pedigrees). It would be a > in

[PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
Hi guys! Anyone knows of something like this, but for free? http://www.webscriptsdirectory.com/PHP/E-Mail-Systems/Php-Newsletter-Script-L1237/ All I want to do is to send "a html mail" to all my members at http://www.stammis.com/ (swedish site for pedigrees). It would be a informative letter t

[PHP] ftp_get from an IBM Mainframe z/vm system ?

2006-03-01 Thread Nils Reimann
Hi, i got a realy special problem with a little php work. i need some files from a z/vm ftp server over an php script. z/vm is a virtualization operating system for the ibm mainframe. my php script runs on a linux os, mountet on a z/vm guest. to test if an ftp transfer is possible i've maked some

RE: [PHP] PDO Changes from 5.0.x To 5.1.x

2006-03-01 Thread Jared Williams
Hi, Only way I know is to import them into the global scope with define() If (!defined(PDO_FETCH_ASSOC)) define('PDO_FETCH_ASSOC', PDO::FETCH_ASSOC); As for further differences, I'm not aware of any. Jared > > According to documentation, PDO globals constants in 5.0.3+ > were changed to cl

Re: [PHP] Dynamic Form List - how to change values

2006-03-01 Thread tedd
I have a list from a MYSQL database that I am dumping to a screen. I'd like the user to be able to change the quantity on the form for any record on the screen, then post that information back so the user can review it, and I can then update the database. Simple checkout routine. Or so I thoug

[PHP] leading slash in SCRIPT_NAME variable

2006-03-01 Thread Roman Rumisek
Hi, i have configured apache 2.0.50 with mod_php 4.4.2 and $_SERVER['SCRIPT_NAME'] beginning with /// (three slash). Where have i a error ? (probably configuration) Application apache configuration: Alias /trsklad/ /.../projects/akce/src/html/ AllowOverride All Order deny,allow

[PHP] PDO Changes from 5.0.x To 5.1.x

2006-03-01 Thread Chris Drozdowski
According to documentation, PDO globals constants in 5.0.3+ were changed to class constants in 5.1. Does anyone have a suggestion for portability of constants between the 5.0.x branch and the 5.1 branch without having to rewrite code. Besides the constants, what other differences exist in P