[PHP] $ENV['SCRIPT_FILENAME']

2006-05-14 Thread Ryan A
CLI stuff but I cant find much references to $ENV['SCRIPT_FILENAME'], reading the manual I know there is a $_ENV superglobal but just $ENV? I am pipeing some log data from apache to this script but while debuggin I have noticed that i does not go further than the above if() statemen

Re: [PHP] $ENV['SCRIPT_FILENAME']

2006-05-14 Thread Ryan A
so I changed it to $_SERVER, but it is still looping in that place... Anyone have an idea of a variable (eg: $_SERVER['REQUEST_METHOD'] ) that will be set only if called via the web and ignored if called via cli? BTW, i tried $_SERVER['REQUEST_METHOD'] but not working :-( Tha

[PHP] Going nuts with this, cant figure out whats the prob

2006-05-14 Thread Ryan A
Hi, This is my script: (ryan_debug_write_to_file is my debug function that writes stuff into a txt file instead of using a print(), its working without a problem) -- $stdin = fopen('php://stdin', 'r'); while ($line = fgets($stdin)) {

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-15 Thread Ryan A
Hey Chris / Richard, > I was wondering if the different line endings > (dos/unix) might play a > factor but I doubt it. Chris: Ok, that really helped, I was testing the test.txt file on my Win2k machine and was testing the whole script on a FreeBSD machine... so I took the small test

Re: [PHP] Wierd ass code...

2006-05-15 Thread Ryan A
s I know, but he's done some funky programming above that so it cant happen, basically; anybody accessing the script via get/post etc (the web) would get the welcome page, but if the script is run as a shell script then and only then is access granted to the above part (after meeting other

Re: [PHP] Going nuts with this, cant figure out whats the prob

2006-05-15 Thread Ryan A
Hey, > On Mon, May 15, 2006 7:30 am, Ryan A wrote: > > The thing is, I thought this was bundled with the > > standard package of PHP, if yes, why would anybody > > want to turn this off? > > PCRE got added after POSIX Regex had been in awhile. > > There was some

[PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Hey, Can anybody recommend a IP to country (or better still IP->city) database and script? I have found some leads via google but would like to know what you guys are using or can recommend. Or just the DB would do, I can write the script if I have to. Thanks! Ryan -- - The fau

RE: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
ing.info/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
U file_exists() ? A simple search on the search engines for "php file exists" gave me loads of results... Dude, dont be lazy and just post here or you are going to get a lot of grief...do a search on web then come back if you dont find anything or have questions... And trust me, t

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
> On 5/21/06, Ryan A <[EMAIL PROTECTED]> wrote: > > U file_exists() ? > > file_exists doesn't help here since the filename of > the file is not known. glob or the *dir functions do > the trick. > > Rabin > Its all connected, had you sear

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
rious, thanks for the offer. I'm still testing 3 that I found, if they dont go well will take you up on your offer. I have found quite a few ip-> country scripts/DBs (one extra with help from Kevin from the list) but unable to find any ip->city that is not commercial...the only one every

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Hey Tedd, > > As always in life, your choices are quick, good, and > inexpensive -- > but you can only pick two. :-) Hey! Thats a good one, am going to use it in other places :-) Thanks! > In any event, if you find a "free one" better than > what I provided,

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
--- tedd <[EMAIL PROTECTED]> wrote: Hey, > At 11:01 AM -0700 5/21/06, Ryan A wrote: > > > As always in life, your choices are quick, > good, and > >> inexpensive -- > >> but you can only pick two. :-) > > > >Hey! Thats a good one, am

[PHP] Convert a .pl script to .php (willing to pay via paypal or CC)

2006-05-22 Thread Ryan A
Hi, I've pretty much given up trying to convert a perl script to php, I have come a long way with it though, but there are a few bugs that i have been unable to squash. I need an _exact_ copy of the perl script in php, unable to manage that. If you are good with PERL and PHP and would li

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-24 Thread Ryan A
ia google (note: Am in NO way connected to that site) HTHs...Cheers, Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Ya

[PHP] Best way to save reports, comments and suggestions welcome

2006-05-28 Thread Ryan A
Hi, I have to write a kind of logging script which will keep records of how long a person used the site and its functions, so far this is what I have come up with: login_username varchar(50) as_guide <- You can ignore this,its for a special func login_time timestamp logout_time timest

Re: [PHP] Best way to save reports, comments and suggestions welcome

2006-05-29 Thread Ryan A
Hey Robert, > > I have to write a kind of logging script which > will keep records of how long a person used the site > and its functions, so far this is what I have come up > > with: ... > Presuming you know when they logged out or can > calculate it: > >

Re: [PHP] Best way to save reports, comments and suggestions welcome

2006-05-29 Thread Ryan A
Hey Rob, > > I have done very little SUM queries with time, can > you > > give me a quick example or any site where i can > find a > > few sample queries? > > This is basic MySQL so you should RTFM, and > generally should be asking > on a MySQL list :) Hehehe,

[PHP] Addtime is for 4.1, what can i use for 3.23? (pretty much 0T)

2006-05-30 Thread Ryan A
Hey, To simplify this lets say my table looks like this: a time default NULL, b time default NULL This is what i run: INSERT INTO test2 VALUES (Curtime( ) , ADDTIME(Curtime( ) , "00:01:00")) since the db is version 3.23 (I cant ask the client to upgrade) instead of 4.1, the ab

Re: [PHP] Addtime is for 4.1, what can i use for 3.23? (pretty much 0T)

2006-05-30 Thread Ryan A
the date part thats why i am using curtime(). Thanks, Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of s

Re: [PHP] Addtime is for 4.1, what can i use for 3.23? (pretty much 0T)

2006-05-31 Thread Ryan A
Hey, > Might be quicker for you to ask on a mysql mailing > list :) Yep, am waiting for the confirmation email... > I tried a couple of different things looking at the > mysql page > (http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html) > > but co

Re: [PHP] When is "z" != "z" ?

2006-06-04 Thread Ryan A
ant to go off > into unprintable > character land, we want to try to stick with the > pattern. Hmmm, didnt know about the $filename++; thingy, I used to do things the hard (C) way. Learnt something new...thanks! Cheers, Ryan -- - The faulty interface lies betw

[PHP] Session puzzle... / why no new session?

2006-06-09 Thread Ryan A
Hi, I am working on a very simple script, basically adding features to an older script, I'll write down the main parts: and for logout.php I have: - ini_set('session.name', 'COSTREAM_SESSION'); session_start(); unset($_SESSION['user']); session_des

Re: [PHP] Session puzzle... / why no new session?

2006-06-10 Thread Ryan A
Hey Chris, Thanks for replying. Dont worry about it, solved it, made a silly mistake on my part but corrected it by just copying the code from the session_destroy page on the manual...destroyed the session and the cookie and all works good now. Thanks! Ryan > If you're logging strai

[PHP] HTML (php page) -> PDF recommendation

2006-06-10 Thread Ryan A
Hi, can anybody give me a recommendation on a good html->pdf converter. Checked google and there are loads of classes, this one looks like one of the best though (even in price): http://www.rustyparts.com/pdf.php Anybody else using this? if yes, would appreciate any "cons" of usi

[PHP] php->html "rendering"

2006-06-12 Thread Ryan A
Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is that the whole site has not yet been built so i can start from the ground up. I have a few ideas on

Re: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
> > Hey all, > > > > heres the short explanation of what I am supposed > to > > do, > > I need to render/convert the entire site to > normal > > html pages so that it can be loaded onto a cd and > > given out. > > > > The good news

RE: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
--- Brady Mitchell <[EMAIL PROTECTED]> wrote: > > -Original Message- > > I need to render/convert the entire site to > normal > > html pages so that it can be loaded onto a cd and > > given out. > > > > Does any class program exist that can

Re: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
gt; > -- > Larry Garfield > > On Mon, June 12, 2006 10:54 am, Ryan A said: > > Hey all, > > > > heres the short explanation of what I am supposed > to > > do, > > I need to render/convert the entire site to > normal > > html pages so that it can

RE: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
Quick question; If the site is updated with new pages/links is there anyway of specifying to HTTrack to get just the new pages or does it get the whole site again? Reason I ask is they are going to have a s**tload of pages...maybe 4k or pages Thanks! Ryan -- - The faulty interface lies

Re: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
Hi Satyam, Totally off the mark :-) thanks for writing though. The site (which later to be copied onto cd) is not for demo purposes but to distribute to schools, (children and people wanting to learn Swedish) its a govt sponsored project so the site and the CDs should/will be free. Cheers, Ryan

Re: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
> On Mon, June 12, 2006 10:54 am, Ryan A wrote: > > Hey all, > > > > heres the short explanation of what I am supposed > to > > do, > > I need to render/convert the entire site to > normal > > html pages so that it can be loaded onto a cd and > >

Re: [PHP] php->html "rendering"

2006-06-12 Thread Ryan A
--- Jochem Maas <[EMAIL PROTECTED]> wrote: > Ryan A wrote: > > Hi, > > > > Thanks for the suggestion, I am not too familier > with > > wget but (correct me if i am wrong) wont wget just > get > > the output from the pages ignoreing the links? >

Re: [PHP] php->html "rendering"

2006-06-13 Thread Ryan A
--- Larry Garfield <[EMAIL PROTECTED]> wrote: > > > that said it could take a week to figure out all > the > > > parameters. ;-) > > ... > That's why I included the switches I did. :-) I had > to do something very > similar just last

Re: [PHP] php->html "rendering"

2006-06-13 Thread Ryan A
project. Thanks for taking the time to explain the various switches, my doubts, different tips and being so helpful, i really appreciate it. Have a great day! Ryan --- Larry Garfield <[EMAIL PROTECTED]> wrote: > On Tuesday 13 June 2006 07:22, Ryan A wrote: > > > Hey, > > Th

[PHP] CMS Typo 3 (Slightly 0T(?))

2006-06-15 Thread Ryan A
Hey all, Am looking to start working with a CMS for a large site, after comparing quite a few CMSs Typo3 comes out looking very very attractive in features and price. Before I commit my time to using it I would like a quick review from those of you who have used/use it, as from the docs it says

Re: [PHP] Re: CMS Typo 3 (Slightly 0T(?))

2006-06-15 Thread Ryan A
Hey! @Barry, Thanks for the info. To answer your Q: nope, never coded a CMS but have a rough (very rough) idea on how it works, I have been coding for years from C->Java->PHP > Top3 is a very big Hammer when you start from > scratch. Thats what i wanted to know... @Nick T, Thanks

[PHP] SMS with php recommendation (a bit 0T i guess)

2006-06-18 Thread Ryan A
Hey, Right now I am using PSWIN to send SMS messages from my php scripts, can anybody recommend a (reliable) company that i can use instead? We "fill up" on 25euros everytime on pswin, so i am not looking for a "free" provider, just a reliable and good priced one. PSwin is g

Re: [PHP] SMS with php recommendation (a bit 0T i guess)

2006-06-18 Thread Ryan A
Hey, > http://www.clickatell.com/brochure/products/developer_solutions.php Ok, clickatell seems to be the popular choice around here, will have a look see In the meantime feel free to recommend any others. Thanks for replying guys. Cheers! Ryan -- - The faulty interface lies between

Re: [PHP] php calendar

2006-06-19 Thread Ryan A
Strange... all I wrote was "php calender" on google and i got a whole bunch of results... guess i am using special version of google... -Ryan --- weetat <[EMAIL PROTECTED]> wrote: > Hi all , > > Any php calendar out there, search google , most > of the

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Ryan A
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > On Mon, 2006-06-19 at 03:34, Denis Gerasimov wrote: > > Hello Robert, > > > > > I think you should quit whining like a spoilt > brat *lol*. I get > > > something like 3 a day. Big fricking whoop. &

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Ryan A
--- MOKULEN_IMADICA <[EMAIL PROTECTED]> wrote: > Dear Denis and List members, > > > I am very tired of deleting spam messages received > from PHP mailing lists > > uu...I was tired more than you > are,Denis,undoubtedly. > Because I am a Japanese.I think t

[PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
and i have never used typo 3 myself) I'm guessing some of you would be able to help me out, or guide me...If i'm wrong, just ignore this thread. Heres what i have; I have a table with the main (parent) categories and another table with the sub-categories (children) which will/is supposed to

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
> Ryan, > > I have run into a similar problem with one of the > sites I'm designing. > Here's the approach I took. You can see if it fits > your needs. > > Here's an example of > what I have: > > MID NAMEPARENT_ID LOCATION &

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Hey Chris, > It may at > first be a little > daunting but once you understand how it works, it > all makes sense. Only > one table is needed and you can have as many > children, grand children, > etc. as want/need. Sounds good, I will def have a look at the article, I came

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Hey, > If you are using PostgreSQL, there is a 'connectby' > function (part of > contrib) which will recursively join hierarchical > data where you have > PID --> ID recursive joins. Oracle also has CONNECT > BY built into the > SQL language. I do not

[PHP] templating

2006-06-22 Thread Ryan A
Hi, A pal of mine needed some help on his project, he is using a "header" and "footer" file to "template" his project... but its gotten a bit complicated as he has a few dynamic parts in the header and footer files, so I told him to go with a proper templating metho

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hi Rich, Thanks for replying. > > He just needs maybe 5 template > > pages, same pages, different color. > > For something THIS simple, I truly believe you are > Better Off (tm) > with a simple head() and foot() function in a > globals.inc file: Sorry, dont know

Re: [PHP] templating

2006-06-23 Thread Ryan A
Hey Tedd, > > > >> > He just needs maybe 5 template > >> > pages, same pages, different color. > >> > >> For something THIS simple, I truly believe you > are > >> Better Off (tm) > >> with a simple head() and foot() function i

[PHP] Digital signature

2008-09-30 Thread Balasubramanyam A
Hello, Is it possible to digitally signature on PHP document using PHP? Balu

Re: [PHP] Digital signature

2008-09-30 Thread Balasubramanyam A
, Sep 30, 2008 at 10:08 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Balasubramanyam A [mailto:[EMAIL PROTECTED] > > Is it possible to digitally signature on PHP document using PHP? > > S. T. F. W. > > http://www.pgpi.o

[PHP] index page not running and other woes (0t?)

2004-01-28 Thread Ryan A
Hi, I think this is a bit off topic, but i'm sure some of you guys must be running ensim so might be able to help me. We reciently took a dedicated server to work with, it came with ensim installed, its a Linux machine P4 2.6 running Apache. Problem: 1)As I go to the IP address assigned t

[PHP] (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hi, Heres a totally weird problem, I created some folders on our server (which we are accessing only via ip as the domain has not been resolved) but I get an error when i try to access the folder(s)! eg: (I created this folder) ryan and i try to access it like this: http://208.234.29.220/ryan

Re: [PHP] (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hey Andrew, > First, note that that is an apache problem, not PHP. Yep, thats why I put the "Ot" in the subject line but since you cant have PHP without a webserver and apache is the most popular on the list or the net...I was hopeing someone else had this problem and could g

[PHP] SOLVED:- (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hey All, Thanks to everyone who replied, the problem was indexes were not defined as Andrew pointed out (and solved my problem). *Main* problem I think was, that I never installed apache totally from the start, I always depended on the "big bangs" where you just run one .exe file and it installs a

[PHP] Copyrighting PHP, MySql, Apache,perl etc...

2004-01-28 Thread Ryan A
Hey, Was just going to the php.net site to reference the manual (always a good thing) when I absent mindedly typed in "php.com" insteadwhich brought up a nice site, worthy of our support, but not really what I had in mind coz its more focussed towards children, medical homes et

Re: [PHP] random?

2004-01-29 Thread Ryan A
one agent more than the others. > > > Does anyone have any suggestions as to why this is occuring, please? > > I'd ask on a MySQL list/forum. This isn't going to be a PHP issue. Maybe > MySQL's RAND() function isn't very random. Yeah, this has happened to me too, a

[PHP] locking to domain

2004-01-29 Thread Ryan A
Hey all, I have a rather simple need that I am sure a lot of you must have gone through, I need a bit of code so that the script can run only at "something.com"..I am generating a MD5 license "key" based on that... Problem that I am having is.. wont I need 2 "keys"

Re: [PHP] locking to domain

2004-01-30 Thread Ryan A
day, January 30, 2004, at 02:13 PM, Ryan A wrote: > > > I have a rather simple need that I am sure a lot of you must have gone > > through, I need a bit of code so that the script can run only at > > "something.com"..I > > am generating a MD5 license "key"

[PHP] How do you guys do this?

2004-01-30 Thread Ryan A
Hey all, I needed to make a simple upload script so users could upload their images but had a small extra requirment, after searching google, hotscripts and all the other usual places and downloading code, i realized its better to write the whole damn thing myself, so i did. Now that the little

[PHP] Related links embedded in pages....

2004-01-30 Thread Ryan A
Hey all, I'm sure you must have visited sites where articles on a page have links to place that explain what that word means.. eg: This is an article about a computer programming language called php which is taking web development to a different. in the above snip of the article &quo

RE: [PHP] How do you guys do this?

2004-01-31 Thread Ryan A
Hey, Nice solution, I think i'll use it. Thanks. -Ryan On 1/31/2004 8:56:02 PM, [EMAIL PROTECTED] wrote: > Ryan A wrote: > > Hey all, > > I needed to make a simple upload script so users could upload their > > images but had a small extra requirment, after searching goog

[PHP] Simple script but confusion with comparing strings

2004-01-31 Thread Ryan A
Hi, Just fooling around with fwrite and fread when i seem to have hit a wall. Basically, what i am trying to do is, make an md5 hash of a number, write that number to a file. A bit later read the hash from that file and compare it to a number, if its 1, then print 1 , if 2 print 2... I have tried

Re: [PHP] Simple script but confusion with comparing strings (SOLVED)

2004-01-31 Thread Ryan A
Hey, Thanks, it worked! -Ryan On 2/1/2004 1:13:32 AM, Stuart ([EMAIL PROTECTED]) wrote: > Ryan A wrote: > > $somecontent = strtoupper(md5($type)); > > compared to... > > > if(strcmp($contents,md5("1"))==0) > > Comparing uppercase to lowercase (md5 genera

[PHP] 3 variables not passing to function!!!????

2004-01-31 Thread Ryan A
Hey, Am going nuts with this, and the manual for user functions is not very helpful either: http://se2.php.net/manual/en/functions.php#functions.user-defined What i am doing is really simple, am trying to mail myself 3 variables from a "include" file. I am getting everything ex

Re: [PHP] 3 variables not passing to function!!!????

2004-01-31 Thread Ryan A
Oh crap, variable scope:-(( thanks again. -Ryan On 2/2/2004 4:17:40 AM, [EMAIL PROTECTED] wrote: > Ryan A wrote: > > > I am getting everything except the 3 variables($admin,$site,$lic), heres > my > > function: > > > > *** > > include_

Re: [PHP] VERY URGENT.....

2004-02-01 Thread Ryan A
Island Branch, Lagos, Nigeria. > I have an urgent and very profitable business > proposition for you that should be handled with > extreme confidentiality. > > On January 6,1998 a Foreign contractor with the > Nigerian Railway corporation(N.R.C) Mr. James Herbert by name made a &

[PHP] comparing dates

2004-02-01 Thread Ryan A
Hi, Am a bit confused as to how to do this, I have some dates in the database as "expire_login timestamp(14)". I am entering dates 1 day,11 hours,59 minutes in advance. The user can sign in anytime and it should display how many days, hours and mins before his account expires... I am

Re: [PHP] comparing dates

2004-02-01 Thread Ryan A
Hey, Thanks for replying. I did find an easier way, but only after going through what you sent me...the way i found was using substr. I do read the manual, but not the online one, I have a downloaded windows helpfile copy, its much faster and easier to access but one disadvantage is...it does not

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-03 Thread Ryan A
Hi, I myself had reserverations about moving to a FreeBSD host, but have had an excellient experience with the guys at www.hub.org. Quick support, access to my httpd.conf and php.ini files, ssh and a whole lot more. Both the guys there who i have spoken too are real cool too (chris and marc) and

[PHP] thumbnail script

2004-02-05 Thread Ryan A
Hi, Anybody know of a thumbnail script which does either one of the following: 1.Support GIF,JPG,PNG, when called the first time it should show/create the thumbnail "on the fly" and save it. or 2.Support GIF,JPG,PNG and thumbnail image any new files uploaded, and save the thumb

Re: [PHP] thumbnail script

2004-02-06 Thread Ryan A
ll of > your clients to host with me and > I'll give you a commission ;-) Damn, that answers my question, its not free and I cant download and use it on my website (wa) On a more serious note, nice site mate, but reay steep on the pocket, $250 setup fee? my pal sets up computers

[PHP] Checking if database has been setup

2004-02-06 Thread Ryan A
Hey, Sometime back i was checking out a script and it had a very useful little bit, in the scripts control panel there was a text link that said "click here to see if your database has been setup" when you click it, it will tell you if its setup or lauches the setup script to help you

Re: [PHP] Re: Beginner amazes self with image gallery script!

2004-02-07 Thread Ryan A
Hey, a quick update, I know not many people use opera but...i do, and this does not work on Opera 6.05. It degrades gracefully though, it goes straight to the image. HTH. Cheers, -Ryan On 2/7/2004 9:37:36 PM, Joseph Szobody ([EMAIL PROTECTED]) wrote: > > My question is, > I'm upda

[PHP] refresh page (might be 0t)

2004-02-07 Thread Ryan A
Hey, Have run into a little problem...any help appreciated. Heres what I am doing: I give the client a control panel where he can add,edit and delete accounts, after each of the actions I have a link back to the index page of the contol panel...problem is, unless he presses the refresh button it

[PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T

2004-02-09 Thread Ryan A
Hi, I have a table where a users details are entered for the products he bought, the only part that is repeated is the order_id, I basically need to only get the order per person, and paginate for all the customers eg: if user "tom" bought 3 items in the database it would be entered as

Re: [PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T

2004-02-09 Thread Ryan A
: > Try this: > > "SELECT COUNT(*), order_number FROM " . $prefix . > "_purchases GROUP BY > order_number" > > as your query. > > Shaunak > > - Original Message - > From: "Ryan A" <[EMAIL PROTECTED]> > To: <[EMAIL P

[PHP] Hard links

2004-02-13 Thread Ryan A
Hey, I was just going through the ioncube manual (thinking of making something like that, but much cheaper so everyone can afford itmaybe $20?) and came accross this: 3.5.1 Copying with Hard Links [--use-hard-links] The Encoder will normally perform a file copy into the target for non-encoded

Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread Ryan A
Hi, Do a select query with a COUNT() in it if you dont understand that read the php manual for accessing the database and lookup the mysql COUNT -Ryan On 2/16/2004 1:35:42 AM, PETCOL ([EMAIL PROTECTED]) wrote: > PHP Newbie, > > I'm trying to find out if a username already

[PHP] Crappy results from query

2004-02-18 Thread Ryan A
like: Ryan Ryan susan As you can see its repeating the first one twice and not displaying "Jacob" Since you cant read my mind ( unfortunately :-p ) heres the code that I am using: * start code // for the paginator (am using a class) $num_rows = mysql_result(mysql_query("S

Re: [PHP] Crappy results from query

2004-02-18 Thread Ryan A
On 2/18/2004 3:32:31 PM, Duncan Hill ([EMAIL PROTECTED]) wrote: > On Wednesday 18 February 2004 14:21, Ryan A wrote: > > Hey, > > Cant really understand this, can someone point out where I'm going wrong > > please? > > > > The idea is simple, I have 3+

Re: [PHP] Crappy results from query

2004-02-18 Thread Ryan A
> > > $result=mysql_query("SELECT distinct(order_id),name,status,total FROM > > ". > $tcname."_h2o LIMIT $limit1, $limit2"); > > The distinct keyword applies to the whole row. Since you're including > other fields that will be different even though the name is the same, > MySQL does not consider t

[PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hi, I'm working on a set of scripts not written by me. Theres a "date_of_birth" field there that has the values in this format -MM-DD, the client wants me to print out the age of the person from that...looking in the manual (http://se.php.net/manual/en/function.date.php) I th

Re: [PHP] SOLVED: Getting age from yyyy-mm-dd

2004-02-18 Thread Ryan A
Hey, My thanks go out to everyone who replied I finally got this: http://www.zend.com/codex.php?id=309&single=1 I used a substr to break it into 3 variables and then passed it to the above function. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Going a bit nuts with php/mysql structure......(maybe 0T)

2004-02-18 Thread Ryan A
Hi, Like I said before am working on a project that someone else created so dont blame me for this daft architecture. The problem is in the products table, he has the name and products in one table, this is the structure and records: cno order_id name product 1234455 ryan 123 2234455

Re: [PHP] fonts

2004-02-18 Thread Ryan A
rately > > determine the OS of the user's machine > and have the font set > > available. this seems unlikely. > > > > > > > > -- Original Message -- > > > From: Jake McHenry <[EMAIL PROTECTED]> > > > To: [EMAIL PROTECTED] &g

Re: [PHP] undelivery mails

2004-02-20 Thread Ryan A
On 2/20/2004 5:48:21 PM, Juan Cortabitarte ([EMAIL PROTECTED]) wrote: > I need to send a newsletter and I need to know all mail addresses of the > undelivery mails to update the database. > Any suggestion? Do I need to parse the maillog? > > -- Hey, If you are sending out htm

[PHP] HTML email problem: IMAP

2004-02-20 Thread Ryan A
Hi, I downloaded a class from php classes called "clssendmail", the class was working on a different server but now I get this error when I try to use it: "Call to undefined function: imap_8bit() in." The class is basically to send an email in 2 parts, plain te

[PHP] Re: HTML email problem: IMAP

2004-02-21 Thread Ryan A
Hey, Thanks, even that htmlmail example was a bit too much for my needs but in 10 mins I cut it down to the simple stuff I wanted to do (just send a html message with a text part...). I really didnt need the attachment part/s and cut that out. There are still 2 parts I really dont understand even

[PHP] running php3 files

2004-02-24 Thread Ryan A
Hi, A small problem, a pal of mine is hosting with a company that has PHP configured to run only with the .php extention and not the .php3 extention... Where will he have to make the changes so that his scripts will run if its .php or .php3 ? Thanks, -Ryan -- PHP General Mailing List (http

Re: [PHP] running php3 files

2004-02-24 Thread Ryan A
Hi again, I guess I didnt explain myself too well. My pal is a total newbie, and the .php3 file is being called via an include...the reason he cant change the include call in the calling file from .php3 to .php is because that file is "encrypted" in some way. On my server I can run bo

Re: [PHP] Re: looks like the spammers got through anyway

2004-02-24 Thread Ryan A
On 2/25/2004 4:03:05 AM, Will ([EMAIL PROTECTED]) wrote: > I know the feeling!!! I wish they would go away!!! > > ~WILL~ You can wish all you wantthose SOBs are here to stay. Hopefully they will meet with an accident and get a slow p a i n f u l death. -Ryan -- PHP Genera

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Ryan A
Hey Your magic_quotes_gpc is onswitch it off and your problem will go away, or read up on it. You might also want to use a function which will make quotes and apostrophes etc safe...check the manual as there are a few. Cheers, -Ryan On 2/26/2004 6:19:02 AM, Louie Miranda ([EMAIL PROTECTED

Re: [PHP] Weird result from query...?

2004-02-26 Thread Ryan A
Hey everyone, Thanks for your response, I did try the query without the single quote, with double quotes but didnt work. I do think that a dot is valid in the URL coz it seems to be working if there are 2 zeros in the decimal part. I even tried running the SQL in PHPMyAdmin with same results

[PHP] Weird result from query...?

2004-02-26 Thread Ryan A
Hi, Just been getting some weird results from a query...can anybody tell me why..? Basically am sending 3 variables via a link on the page... http://localhost/show_accounts.php?o=8927437717300145&n=shane&p=4.78 which runs the sql in show_accounts.php: SELECT *,now()-0 from ".$t

Re: [PHP] List files in a dir

2004-02-27 Thread Ryan A
> Hi, Hi, > is it possible to have a file that lists all of the files in the current > so > that users can download them Yes, belive it or not...it IS possible. - this would be useful for a collection of > images I have? Sure sounds like it. > Thanks for your help Most wel

[PHP] Timestamp query...

2004-02-27 Thread Ryan A
Hi, I have a couple of records in the DB with timestamp(14) values. The field is join_date_time and the values are something like: 2004022215 20040223015329 Everything is working fine and dandy except now that the client wants a search functionality in his "control panel" where he

Re: [PHP] Timestamp query...

2004-02-27 Thread Ryan A
On 2/28/2004 4:43:48 AM, Michal Migurski ([EMAIL PROTECTED]) wrote: > >The field is join_date_time and the values are something like: > >2004022215 > >20040223015329 > > > >Everything is working fine and dandy except now that the client wants a > >search

[PHP] between timestamps

2004-02-28 Thread Ryan A
Hey everyone... In the last 24 hours there have been questions on how to get the all the records of a day based on the timestamp and to check whether the current date/time is later than a timestamp, I have a new one... how do you fetch all records between date1 and date2? eg: you have some

[PHP] 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Ryan A
Hi, I have to questions which are pretty unrelated except that both of them are in PHP. (1) I am using a class to send email, 3 different kinds (text, html, text+html attachement) no problem there, but I am giving the client the option to mail all his members/clients at the same time...I have set

<    6   7   8   9   10   11   12   13   14   15   >