[PHP] ranking product based on votes in a given week

2005-02-22 Thread Ryan Schefke
I am trying to echo the ranking of votes (highest to lowest) that a product received in a given week. See example of desired output. In the query below, It's working great and outputs ID, votes, and week; however, I can't figure out how to get the ranking for a given week. In the example below

[PHP] backslashes

2004-08-27 Thread Ryan Schefke
Hi, I have a jump box that sends the following value to the page. Show Thank You Notes "Not Sent" Then, the below query is run: $query = "SELECT name, event, description, cash, action, thankyou FROM gifts WHERE customerID='$passid' $sort"; My problem is with the \'No

[PHP] Uploading a directory of files

2004-07-16 Thread Ryan Schefke
Does anyone have a script to upload a directory full of files? .something like a recursive upload. Thanks, Ryan

RE: [PHP] Re: Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
om"); print "test1 = $test1"; print "test2 = $test2"; And this will give you the results: test1 = http://www.google.com test2 = http://www.google.com Good luck! -Frank "Ryan Schefke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi,

[PHP] Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi, Can someone help me write a short code snippet to format a string to add: http://www -- if the string is "google.com" and doesn't have http://www in front of it http:// -- if the string is "www.google.com" and doesn't have http:// in f

[PHP] Double parenthesis crisis

2004-07-07 Thread Ryan Schefke
In the below code the variable $thecomments might have some quotations in it. Like: $thecomments = how you "like me now" I'm trying to display the value of that variable in an input box using the value=" " as shown below; however, the double quotations are screwing me up. Can someone pleas

RE: [PHP] Crontab PHP Script

2004-06-27 Thread Ryan Schefke
nute on my linux box -Original Message- From: Tim Traver [mailto:[EMAIL PROTECTED] Sent: Sunday, June 27, 2004 1:17 AM To: Ryan Schefke; Php-General-Help; [EMAIL PROTECTED] Subject: Re: [PHP] Crontab PHP Script Not sure if this is different in linux, but usually the first parameter is the minutes, and

[PHP] Crontab PHP Script

2004-06-26 Thread Ryan Schefke
Hi, Can someone please give me some guidance. I'd like to run a php script every minute (in reality every night, but just testing). I've done some reading and found that a crontab is the best way to go (I think). I'm using Plesk 7 on a Linux box and I have root access. I made a quick php

[PHP] Help with eregi

2004-06-22 Thread Ryan Schefke
Could someone please help me with an eregi statement. I have a string that can vary as such: client1/album/album_121-2132_IMG.JPG client2/album/album_121-2132_IMG.JPG client59/album/album_121-2132_IMG.JPG client499887/album/album_121-2132_IMG.JPG I want to select whatever comes after

[PHP] Please Send MIME Script

2004-06-21 Thread Ryan Schefke
Could someone please send me a function for MIME mail. I've been searching for the past 3 hours and haven't come across anything that is solid and works for me. I need the following: 1 - send MULTIPLE attachments 2 - send message in html and text. Thanks, Ryan

RE: [PHP] http to https

2004-06-18 Thread Ryan Schefke
earched php.ini for "ssl" and "https" and didn't find anything though > > > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 17, 2004 8:26 PM > To: Ryan Schefke > Subject: Re: [PHP] http to https > > Just a t

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
";); exit;} // $redirect = "https://www.tgwedding.com/payment6.php";; //header ("Location: $redirect"); } = -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
ser http is working fine. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 8:01 PM To: Ryan Schefke; [EMAIL PROTECTED] Subject: Re: [PHP] http to https Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AO

[PHP] http to https

2004-06-17 Thread Ryan Schefke
I'm getting some strange behavior when trying to go from http to an https script. After clicking a form submit button the script will execute the two lines below. It does this and sends it to the correct page without the https, only http. What is strange is when I go back on my browswer and

[PHP] Resolving a warning

2004-06-16 Thread Ryan Schefke
Hi All, I've built my own shopping cart and use a library supplied by USAePay. The library is accessed via an include statement in my code. Because of theirs a desire to keep this library outside of my public web file directory USAePay recommended using: include "/usr/local/lib/php/usaepa

RE: [PHP] PHP & MySQL DATE comparison

2004-06-16 Thread Ryan Schefke
ution. -Original Message- From: Ryan Schefke [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:43 PM To: Php-General-Help Subject: [PHP] PHP & MySQL DATE comparison Hello, I'm pulling a date in the "datetime" format via a MySQL query. Using PHP I would like to che

[PHP] PHP & MySQL DATE comparison

2004-06-16 Thread Ryan Schefke
Hello, I'm pulling a date in the "datetime" format via a MySQL query. Using PHP I would like to check if that date is prior to today's date. Can someone please help with this quick question. Thanks, Ryan

[PHP] Help with an objective

2004-06-14 Thread Ryan Schefke
All, I would like to use php to email a picture (as an attachment) that is on my server (linux), without manually attaching/uploading one. Is this possible? If so, how can it be done? Thanks, Ryan

RE: [PHP] Fatal Error Help

2004-06-03 Thread Ryan Schefke
: Thursday, June 03, 2004 12:48 PM To: Ryan Schefke Cc: Php-General-Help Subject: Re: [PHP] Fatal Error Help Ryan Schefke wrote: > Can someone verify that the solution to this problem is to change my php.ini > file's "memory_limit = 8M;" line to "memory_limit = 16M;"?

[PHP] Fatal Error Help

2004-06-03 Thread Ryan Schefke
Can someone verify that the solution to this problem is to change my php.ini file's "memory_limit = 8M;" line to "memory_limit = 16M;"? My script was working fine (file uploading) before. Then, last night I upgraded to php 4.3.6 and installed Turck mmcache. Now I get the following error:

[PHP] Willing to Pay For Upgrade Help

2004-06-01 Thread Ryan Schefke
Is any Linux techie out there willing to accept a small payment to upgrade my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6, whichever is recommended)? I need to leverage the latest version of GD Library for better quality picture uploads. I'm a windows guy and don't have much

RE: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Ryan Schefke
o:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] RE: GD Library Upgrade On Wednesday 02 June 2004 01:10, Ryan Schefke wrote: > So there's no way to upgrade PHP 4.2.2's GD Library without upgrading to > the latest version of PHP? Tha

RE: [PHP] RE: GD Library Upgrade

2004-06-01 Thread Ryan Schefke
ay 01 June 2004 12:42, Ryan Schefke wrote: > I'm working with a host on a Linux box with PHP 4.2.2. The version of GD > Library they have is 1.8.4. I was uploading some pictures using a script > that leveraged GD Library 2+. Using the php version with the newer GD > library

[PHP] RE: GD Library Upgrade

2004-05-31 Thread Ryan Schefke
Any thoughts on this? I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I h

[PHP] GD Library Upgrade

2004-05-31 Thread Ryan Schefke
I'm working with a host on a Linux box with PHP 4.2.2. The version of GD Library they have is 1.8.4. I was uploading some pictures using a script that leveraged GD Library 2+. Using the php version with the newer GD library seemed to produce a better quality image. I have two questions: 1 -

[PHP] Windows to Linux -- Getting errors still...

2004-05-30 Thread Ryan Schefke
Hello, I successfully tested the GD library and several scripts with PHP locally on my windows machine. I went to test the same php-files on my internet server (Linux). But on the server I get the following error: Warning: imagejpeg: unable to open 'temp.jpg' for writing in /home/httpd/vh

RE: [PHP] Re: Windows to Linux -- Issues with mkdir()function and picture uploading

2004-05-30 Thread Ryan Schefke
Thomas, thanks, that worked perfectly! -Original Message- From: Thomas Seifert [mailto:[EMAIL PROTECTED] Sent: Sunday, May 30, 2004 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Windows to Linux -- Issues with mkdir()function and picture uploading Ryan Schefke wrote: > The ab

[PHP] Windows to Linux -- Issues with mkdir()function and picture uploading

2004-05-30 Thread Ryan Schefke
Hi All, I recently migrated code from my home server (windows) to a dedicated hosting server (Linux). I seem to have some issues with permissions and I'm not sure how to fix it. Take the simple script I wrote below. = It produces the f

RE: [PHP] cookies malfunctioning moving from windows to linux

2004-05-30 Thread Ryan Schefke
Hi All, Please consider this topic/subject closed. There was conflict with my firewall. Ryan -Original Message- From: Hodicska Gergely [mailto:[EMAIL PROTECTED] Sent: Sunday, May 30, 2004 10:13 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookies malfunctioning moving from windows to li

RE: [PHP] cookies malfunctioning moving from windows to linux

2004-05-30 Thread Ryan Schefke
- From: Thomas Seifert [mailto:[EMAIL PROTECTED] Sent: Sunday, May 30, 2004 3:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookies malfunctioning moving from windows to linux Ryan Schefke wrote: > I don't think that is it. I believe session.save_path is only for sessions, > not cookies. I'

RE: [PHP] cookies malfunctioning moving from windows to linux

2004-05-29 Thread Ryan Schefke
PM To: Php-General-Help; Ryan Schefke Subject: Re: [PHP] cookies malfunctioning moving from windows to linux Apache must have read and write privs on the tmp directory. >>Hi, I developed a Poll system that uses cookies. It works fine under Windows >>(Apache and MySQL), but it does not wor

[PHP] cookies malfunctioning moving from windows to linux

2004-05-29 Thread Ryan Schefke
Hi, I developed a Poll system that uses cookies. It works fine under Windows (Apache and MySQL), but it does not work properly under Linux. - I transitioned my site from my windows based server to a linux machine. Cookies does not work properly when I use the system under Linux (Apache and MySQL).

[PHP] grabbing string from URL if URL is masked/forwarded

2004-05-21 Thread Ryan Schefke
I've tried this code and it works wonders. $string = "/tgwedding/users/client1/sites/testgrabid.php"; $thisarray = explode("/", $string); foreach($thisarray as $item) { if(ereg('client', $item)) { $found = $item; $num = ereg_replace('client', '', $found); } } echo $num; ///

[PHP] Please Don't Shoot...

2004-05-20 Thread Ryan Schefke
Me for asking this question, I'm just not sure where to start but with the experts here. I'm moving my PHP and MySQL application to a hosting server. Currently, I'm looking at 1and1.com's dedicated servers on a Linux machine for $49/month (let me know if there are better choices). One probl

[PHP] Domain Name Lookup Scripts

2004-05-18 Thread Ryan Schefke
Can anyone suggest any good (free) domain name lookup scripts written in php? Thanks, Ryan

RE: [PHP] Re: Looking For Easy To Use Shopping Cart

2004-05-14 Thread Ryan Schefke
, or maybe it is? Thanks, Ryan -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 6:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Looking For Easy To Use Shopping Cart Ryan Schefke wrote: > Can anyone recommend a good open source shoppi

[PHP] Looking For Easy To Use Shopping Cart

2004-05-14 Thread Ryan Schefke
Can anyone recommend a good open source shopping cart solution? I built an application for custom websites, now, I just need to interface to a shopping cart. I'm using mysql. Any suggestions? ...looking for something easy. Thanks, Ryan

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I fixed it, thanks! It turns out my src=" " location was wrong since I moved the file. I just freaked cause I thought it was an issue with php+html. Sorry, Ryan -Original Message----- From: Ryan Schefke [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:35 PM To: 

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
ROTECTED] Sent: Wednesday, May 12, 2004 2:30 PM To: Ryan Schefke; Php-General-Help Subject: RE: [PHP] Strange music playing behavior [snip] I know it's a lot of code but it's below. Again, when I have the /* MUSIC? */ section as a standalone file (making sure to open and close the databas

RE: [PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
e $list_photo = null; echo ''.$list_person.$list_position. '   ' // .$list_story. .$list_photo. ' '; } ?>   --

[PHP] Strange music playing behavior

2004-05-12 Thread Ryan Schefke
I'm getting some strange behavior trying to play music. The script below works fine standalone. However, when I put it into a larger script the music doesn't play but all of the echo statements work and when I view the source the tags are fine, etc. What could the issue be? If you need me to send

[PHP] Pulling out string from a string

2004-05-04 Thread Ryan Schefke
Can anyone help me with the code to pull out "clientxxx" from the below string: /tgwedding/users/client1/sites/testgrabid.php I use $PHP_SELF to get the directory structure of the page and store that string as a variable. Then, I want to pull out the string "clientxx", where "xx" can be any giv

RE: [PHP] Re: Pulling out string from a string

2004-05-04 Thread Ryan Schefke
Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 5:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Pulling out string from a string Ryan Schefke wrote: > Can anyone help me with the code to pull out "clientxxx" from the below > s

[PHP] Resizing Pictures

2004-04-20 Thread Ryan Schefke
How do you resize pictures once they're in a certain directory? I have the script to upload a picture, that's working fine. I just need some help with resizing it. Can someone help? Thanks!

RE: [PHP] FW: Resizing Pictures

2004-04-19 Thread Ryan Schefke
l 19, 2004 11:56 PM To: Ryan Schefke; Php-General-Help Subject: RE: [PHP] FW: Resizing Pictures If you don't mind doing them by hand, Window Paint can, use Image->Stretch/Skew and Stretch by the same percentage for horizontal and vertical dimensions to keep the same perspective (less than 10

[PHP] FW: Resizing Pictures

2004-04-19 Thread Ryan Schefke
How do you resize pictures once they're in a certain directory? I have the script to upload a picture, that's working fine. I just need some help with resizing it. Can someone help? Thanks!

RE: [PHP] File Upload Recommendations

2004-04-16 Thread Ryan Schefke
, April 16, 2004 10:12 AM To: Php-General-Help Subject: Re: [PHP] File Upload Recommendations Ryan Schefke wrote: > Can anyone recommend a file upload script (or if you have one) that has the > following: > > > > * Restricts size/dimensions > * Restricts file type/

[PHP] File Upload Recommendations

2004-04-16 Thread Ryan Schefke
Can anyone recommend a file upload script (or if you have one) that has the following: * Restricts size/dimensions * Restricts file type/extension * Customizeable to specify directory * Allows user to delete files (optional) * Restricts # of files uploaded to a dir

RE: [PHP] Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
John - It works now! That was it. Thanks! Ryan -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:53 AM To: PHP Mailing List Subject: Re: [PHP] Explanation of cookie behavior Ryan Schefke wrote: > setcookie ("login_ck", "

[PHP] RE: Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
ticate cookie. Notice that when the "remember me" box is checked I set the login cookie for 30 days whereas if it's not it expires when the user closes their browser. _ From: Ryan Schefke [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:43 AM To: Php-Gen

[PHP] Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
Gurus, I'm running a login script where the user enters login/password and if it matches what I have in my db and their account is active, I set a login cookie (login_ck) and an authentication cookie (authenticate_ck). If the login and authentication cookies are set when the user goes back to

RE: [PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
ROTECTED] Sent: Wednesday, April 14, 2004 3:29 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] setcookie statements are giving me error * Thus wrote Ryan Schefke ([EMAIL PROTECTED]): > > cannot modify header errors, which tells me there's nothing wrong with my > main script. Am I doing some

[PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
I'm trying to set multiple cookies and getting the error below. I removed all of the white spaces and extra lines before and after my , so, that shouldn't be an issue. I get the error for each cookie and it echoes back as "...cookie not set" like I coded. This is the code chunk I'm trying to r