RE: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Jencisson Tsu
hey,boy, i think you should use datebase to store user status,use user's internet-ip and intranet-ip to idenification. > To: php-general@lists.php.net > From: d...@program-it.ca > Date: Wed, 15 Apr 2009 16:20:05 -0400 > Subject: Re: [PHP] redirect to a page the fist time a site is accessed > >

[PHP] problem with my class

2009-04-16 Thread Luke
Hi guys, I've been learning about object oriented programming and I wrote this test class but it doesn't seem to be working, it throws no errors but doesn't insert anything to the database either. I have made sure that the data being sent when the class is instantiated is valid. I'm probably miss

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
2009/4/16 Luke : > Hi guys, > > I've been learning about object oriented programming and I wrote this test > class but it doesn't seem to be working, it throws no errors but doesn't > insert anything to the database either. I have made sure that the data being > sent when the class is instantiated

[PHP] modified list of simplified Chinese

2009-04-16 Thread cr.vegelin
Hi List, Not PHP specific, but maybe of interest for you ... BEIJING, April 9 For the first time in nearly 20 years, China will issue a modified list of simplified Chinese characters in an effort to further standardize a language used by billions around the world. More at: http://news.xinhuan

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Stuart
2009/4/15 Don : > I have some code in my index.php file that check the user agent and > redirects to a warning page if IE 6 or less is encountered. > > 1. I'm using a framework and so calls to all pages go through index.php > 2. The code that checks for IE 6 or less and redirects is in index.php >

Re: [PHP] problem with my class

2009-04-16 Thread Luke
2009/4/16 Jan G.B. > 2009/4/16 Luke : > > Hi guys, > > > > I've been learning about object oriented programming and I wrote this > test > > class but it doesn't seem to be working, it throws no errors but doesn't > > insert anything to the database either. I have made sure that the data > being >

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Igor Escobar
I Agree with @stuart. Regards, Igor Escoar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, Apr 16, 2009 at 6:05 AM, Stuart wrote: > 2009/4/15 Don : > > I have some code in my index.php fil

RE: [PHP] ftp_put issues

2009-04-16 Thread James
Hi, yeah ftp manually works just fine using the same login too. James -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Wednesday, April 15, 2009 10:09 PM To: James Cc: php-general@lists.php.net Subject: Re: [PHP] ftp_put issues James wrote: > Hi, I'm trying to upload a pd

Re: [PHP] problem with my class

2009-04-16 Thread Thijs Lensselink
Luke wrote: > 2009/4/16 Jan G.B. > >> 2009/4/16 Luke : >>> Hi guys, >>> >>> I've been learning about object oriented programming and I wrote this >> test >>> class but it doesn't seem to be working, it throws no errors but doesn't >>> insert anything to the database either. I have made sure that

Re: [PHP] problem with my class

2009-04-16 Thread Luke Slater
On Thu, Apr 16, 2009 at 2:41 PM, Thijs Lensselink wrote: > Luke wrote: > > 2009/4/16 Jan G.B. > > > >> 2009/4/16 Luke : > >>> Hi guys, > >>> > >>> I've been learning about object oriented programming and I wrote this > >> test > >>> class but it doesn't seem to be working, it throws no errors but

Re: [PHP] problem with my class

2009-04-16 Thread Thijs Lensselink
Luke Slater wrote: > On Thu, Apr 16, 2009 at 2:41 PM, Thijs Lensselink > wrote: > > Luke wrote: > > 2009/4/16 Jan G.B. > > > > >> 2009/4/16 Luke mailto:l...@blog-thing.com>>: > >>> Hi guys, > >>> > >>>

Re: [PHP] ftp_put issues

2009-04-16 Thread j's php general
On Thu, Apr 16, 2009 at 9:27 PM, James wrote: > Hi, yeah ftp manually works just fine using the same login too. > > James > > -Original Message- > From: Chris [mailto:dmag...@gmail.com] > Sent: Wednesday, April 15, 2009 10:09 PM > To: James > Cc: php-general@lists.php.net > Subject: Re: [P

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Shawn McKenzie
Stuart wrote: > 2009/4/15 Don : >> I have some code in my index.php file that check the user agent and >> redirects to a warning page if IE 6 or less is encountered. >> >> 1. I'm using a framework and so calls to all pages go through index.php >> 2. The code that checks for IE 6 or less and redirec

RE: [PHP] ftp_put issues

2009-04-16 Thread James Hill
The ftpData function and in fact all the php stuff is running online on my webserver. The pdf file is on my local machine, I'm trying to upload the local pdf file to the server using ftp. The dest variable I have tried with the full path: /var/www/html/Docs/DU/DU1.pdf And with just the DU1.pd

RE: [PHP] problem with my class

2009-04-16 Thread abdulazeez alugo
> Date: Thu, 16 Apr 2009 14:43:46 +0100 > From: l...@blog-thing.com > To: p...@addmissions.nl > CC: ro0ot.w...@googlemail.com; php-general@lists.php.net > Subject: Re: [PHP] problem with my class > > On Thu, Apr 16, 2009 at 2:41 PM, Thijs Lensselink wrote: > > > Luke wrote: > > > 2009/4/16 J

Re: [PHP] ftp_put issues

2009-04-16 Thread j's php general
On Thu, Apr 16, 2009 at 10:24 PM, James Hill wrote: > The ftpData function and in fact all the php stuff is running online on my > webserver. The pdf file is on my local machine, I'm trying to upload the > local pdf file to the server using ftp. > > > > The dest variable I have tried with the full

RE: [PHP] ftp_put issues

2009-04-16 Thread James Hill
Ah ok, I guess that would explain it. Thanks for your help :-) -Original Message- From: j's php general [mailto:php-generals-php-dot-...@jhive.net] Sent: Thursday, April 16, 2009 10:39 AM To: James Hill Cc: php-general@lists.php.net Subject: Re: [PHP] ftp_put issues On Thu, Apr 16, 2009

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
2009/4/16 abdulazeez alugo : > > >> Date: Thu, 16 Apr 2009 14:43:46 +0100 >> From: l...@blog-thing.com >> To: p...@addmissions.nl >> CC: ro0ot.w...@googlemail.com; php-general@lists.php.net >> Subject: Re: [PHP] problem with my class >> >> On Thu, Apr 16, 2009 at 2:41 PM, Thijs Lensselink >> wrote:

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
Excuse my bad spelling. I should have read the message again before hitting send. :-) 2009/4/16 Jan G.B. : >> I think the problem was with the $title. As above, you defined the private >> variable $rtitle but you were trying to call the variable later as $title. >> > > > The problem was already s

Re: [PHP] cURL - Error 400

2009-04-16 Thread haliphax
On Wed, Apr 15, 2009 at 9:17 PM, David wrote: > Except I also need to POST data to the server to login. After I've logged > in, I then need to use cookies to maintain a session. > > Doing that via file_get_contents() just isn't possible. > > > Thanks > > On Thu, Apr 16, 2009 at 2:30 AM, haliphax

RE: [PHP] PDO fetch_obj - question

2009-04-16 Thread MEM
Thanks. I will see. The script for my database was been generated so, I will doublecheck this uppercase "issue"... Regards, Márcio 2009/4/15 Thodoris Hi there, I’ve made a fetch_obj and, as stated on some sites, it returns a anonymous object where the properties will have the name of our col

Re: [PHP] alt() - unknown function?

2009-04-16 Thread Nitsan Bin-Nun
alt sounds like alternator ;) On Wed, Apr 15, 2009 at 10:00 PM, Paul M Foster wrote: > On Wed, Apr 15, 2009 at 03:23:19PM +0100, Tom Calpin wrote: > > > Hi all, > > > > I've just started looking at the code of an e-commerce site we are taking > > over the development of, that another company has

Re: [PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-16 Thread Andre Hübner
Hello, Besides the .htaccess which might be an apache configuration problem if you use ini_set("mbstring.func_overload",2) in a script of this directory does it work? no, also the ini_set does not work for this Directive. In addition to this heck your apache configuration to see if you allow

[PHP] Strange result, 1 shows up

2009-04-16 Thread Gary
When I insert this code into a page, I get a 1 show up. Can anyone explain that and tell me how to get rid of it? Thanks for your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Strange result, 1 shows up

2009-04-16 Thread Jo�o C�ndido de Souza Neto
Try using only: include('box.inc.php'); instead of echo include('box.inc.php'); ""Gary"" escreveu na mensagem news:63.c9.24434.0b377...@pb1.pair.com... > When I insert this code into a page, I get a 1 show up. Can anyone explain > that and tell me how to get rid of it? > > Thanks for your h

[PHP] Re: Strange result, 1 shows up

2009-04-16 Thread Gary
Perfect, thanks so much. Do you know why the number 1 displayed? Thanks again. ""João Cândido de Souza Neto"" wrote in message news:9c.9a.24434.fc477...@pb1.pair.com... > Try using only: include('box.inc.php'); instead of echo > include('box.inc.php'); > > > ""Gary"" escreveu na mensage

RE: [PHP] Re: Strange result, 1 shows up

2009-04-16 Thread kyle.smith
You're echoing the return value of include(), which is "true", or 1. -- Kyle Smith Unix Systems Administrator -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Thursday, April 16, 2009 2:14 PM To: php-general@lists.php.net Subject: [PHP] Re: Strange result, 1 shows up Perf

Re: [PHP] Re: Strange result, 1 shows up

2009-04-16 Thread Gary
Thank you for your help! Gary ""kyle.smith"" wrote in message news:d3fe56d174abf6469079ca1a5c8474a804fa9...@nsmail01.inforonics.corp... You're echoing the return value of include(), which is "true", or 1. -- Kyle Smith Unix Systems Administrator -Original Message- From: Gary [mailt

[PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
Hi List, I have been thinking for a while about setting up my own rapidshare.comclone, Few days back I went really serious with this and came up with some ideas. This is where I need your help, my partner and I have been thinking about the system that the website should run on. We came to conclus

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread haliphax
On Thu, Apr 16, 2009 at 1:29 PM, Nitsan Bin-Nun wrote: > Hi List, > > I have been thinking for a while about setting up my own rapidshare.comclone, > Few days back I went really serious with this and came up with some ideas. > > This is where I need your help, my partner and I have been thinking a

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
What is Amazon SSS?? On Thu, Apr 16, 2009 at 8:59 PM, Leonard Burton wrote: > Why not use something like Amazon SSS and not worry about a lot of the > details? > > On Thu, Apr 16, 2009 at 2:29 PM, Nitsan Bin-Nun > wrote: > > Hi List, > > > > I have been thinking for a while about setting up my o

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread 9el
Its Amazon S3 service. Which takes care of your CPU and scaling needs of bandwidth. Good for CSS, JS and Image storing.

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Leonard Burton
http://aws.amazon.com/s3/ On Thu, Apr 16, 2009 at 3:10 PM, Nitsan Bin-Nun wrote: > What is Amazon SSS?? > > On Thu, Apr 16, 2009 at 8:59 PM, Leonard Burton > wrote: >> >> Why not use something like Amazon SSS and not worry about a lot of the >> details? >> >> On Thu, Apr 16, 2009 at 2:29 PM, Nit

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Hi List, I have been thinking for a while about setting up my own rapidshare.comclone, Few days back I went really serious with this and came up with some ideas. This is where I need your help, my partner and I have been thinking about the system that the website should ru

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: $archive = /path/to/some/tarball; should be $archive = '/path/to/some/tarball'; :D rest of the code is copied from a file I use to serve content that is outside the web root. That's one of my rules - the web server never has write permission to any directory ins

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
My bad, I'm sending a copy to the list. On Thu, Apr 16, 2009 at 9:37 PM, Nitsan Bin-Nun wrote: > Actually I don't much care for that, IMO 700MB~ is way too big for HTTP, I > thought of giving away FTP links for download, but I have thought of the > following: > * First, there is a solution which

RE: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread kyle.smith
How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... -- Kyle Smith Unix Systems Administrator -Original Message- From: Nitsan Bin-Nun [mailto:nit...@binnun.co.il] Sent: Thursday, April 16, 2009 3:37 PM To: PHP General L

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Paul M Foster
On Thu, Apr 16, 2009 at 12:27:38PM -0700, Michael A. Peters wrote: >> We are talking about unlimited file-size hosting so that means that we >> will have to stream the files somehow... and they will be BIG (it's >> defendant, >> about 700MB~ each) > > Then I suggest setting up a torrent instead

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
kyle.smith wrote: How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... I download linux distro's all the time - er, whenever a new CentOS is released. It's not overhead that is the issue. It's being able to continue an interru

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Paul M Foster wrote: Then I suggest setting up a torrent instead of direct download. You can have protected torrents. I don't know how to set them up but I use them - there's a torrent site that requires I log in from the same IP as I'm running the torrent client from, for example. A torrent i

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Ashley Sheridan
On Thu, 2009-04-16 at 13:31 -0700, Michael A. Peters wrote: > Paul M Foster wrote: > > >> Then I suggest setting up a torrent instead of direct download. > >> You can have protected torrents. I don't know how to set them up but I > >> use them - there's a torrent site that requires I log in from t

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
You are definitely right, but there is one thing that you didn't knew and I'm sure that you didn't take into account - usually the files on the server will be DVD rip's that are typically 700MB~ in size, every second movie that people will download will contain some interrupted pieces, although tha

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: kyle.smith wrote: How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... I download linux distro's all the time - er, whenever a new CentOS is released. It's not overhead that is the issue. It's being a

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP and keeping them outsite of the HTTP root? Thanks in Advance, Nitsan On Thu

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP and keeping them outsite of the HTTP root? If you w

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: Nitsan Bin-Nun wrote: Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP and keeping them outsite

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Nitsan Bin-Nun
It's really simple and I wrote several of these long time before, but I thought that there might be an option of serving the files w/o using PHP to read it and send the headers and chunks using only htaccess for the serving and PHP for the validation of the session. On Thu, Apr 16, 2009 at 10:58 P

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Nitsan Bin-Nun wrote: It's really simple and I wrote several of these long time before, but I thought that there might be an option of serving the files w/o using PHP to read it and send the headers and chunks using only htaccess for the serving and PHP for the validation of the session. There

[PHP] cURL Download

2009-04-16 Thread Robbert van Andel
I've been struggling to download a file from a network file share using cURL, or whatever else will work. All I want to do is get the contents of a text file. But when I run the code below I get this error "Error: 37 - Couldn't open file \\server\share\test.txt". I'm running my website on a lin

[PHP] array manipulation

2009-04-16 Thread PJ
The more I get into arrays, the less I understand. I have a ridiculously simple task which excapes me completely. I need to ouput all fields in 1 column from 1 table in two phases sorted alphabetically. So, I have the query, I have the results. But since I need to split the list into 2 parts, I nee

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Clancy
On Thu, 16 Apr 2009 09:26:52 -0500, nos...@mckenzies.net (Shawn McKenzie) wrote: >Stuart wrote: >> 2009/4/15 Don : >>> I have some code in my index.php file that check the user agent and >>> redirects to a warning page if IE 6 or less is encountered. >>> >>> 1. I'm using a framework and so calls t

Re: [PHP] array manipulation

2009-04-16 Thread PJ
Sorry, bout that. My brain wasn't working right. It was a lot simpler than I thought. Forget the foreach. I used a counter. :-[ PJ wrote: > The more I get into arrays, the less I understand. > I have a ridiculously simple task which excapes me completely. > I need to ouput all fields in 1 column f

[PHP] catching up

2009-04-16 Thread Tim | iHostNZ
Hey guys, Just trying to catch up to the rest of the world again. Prob wont be able to read all the php mail. Just one thing: Maybe PHP should be renamed to PFP (PHP Free Processor) or something. A recursive acronym sort of suggests that you cannot be free or break out of this infinite loop. What

[PHP] Fwd: catching up

2009-04-16 Thread German Geek
just in case/tim(e). Yes its me :) Tim-Hinnerk Heuer http://www.ihostnz.com Mitch Hedberg - "I drank some boiling water because I wanted to whistle." -- Forwarded message -- From: Tim | iHostNZ Date: 2009/4/17 Subjec

Re: [PHP] array manipulation

2009-04-16 Thread German Geek
soln: YOU NEED A 2 WEEK HOLLIDAY at least! You need to learn to say no. Tim-Hinnerk Heuer http://www.ihostnz.com Samuel Goldwyn - "A wide screen just makes a bad film twice as bad." 2009/4/17 PJ > The more I get into arrays, the l

[PHP] pup

2009-04-16 Thread ramesh.marimuthu
Hi, I'm new to this list. Can I post PUP questions to this list? regards, -ramesh P Save a tree...please don't print this e-mail unless you really need to Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments

Re: [PHP] pup

2009-04-16 Thread German Geek
>From What i learned, yes you can write pup here. Does anyone print this mailing list? wtf?? i keep overestimating people's intelligence, im sorry! Tim-Hinnerk Heuer http://www.ihostnz.com Charles de Gaulle - "The better I get to

RE: [PHP] pup

2009-04-16 Thread ramesh.marimuthu
Hi, I'm new to php. Say I have a check box which is checked already. Now I need to uncheck it and when I press the submit button, I should get the unchecked value. Can anyone help me on this. One.php if($qry[0]!=$login_type) { echo "".$slot_value.""; } else { echo "".$slot_value.""; } One.php

Re: [PHP] cURL - Error 400

2009-04-16 Thread David
Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some experimentation in Firefox by blocking and deleting all cookies from the site. When I then visited the site, I was able to reach the logon page without returning

Re: [PHP] pup

2009-04-16 Thread Jim Lucas
ramesh.marimu...@wipro.com wrote: Hi, I'm new to php. Say I have a check box which is checked already. Now I need to uncheck it and when I press the submit button, I should get the unchecked value. Can anyone help me on this. One.php if($qry[0]!=$login_type) { echo "".$slot_value.""; } else

RE: [PHP] pup

2009-04-16 Thread ramesh.marimuthu
Thanks Jim. Is there a way to get the value of that unchecked box? -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 10:35 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment) Cc: geek...@gmail.com; php-general@lists.php.net Subject: Re: [PHP]

Re: [PHP] pup

2009-04-16 Thread Jim Lucas
ramesh.marimu...@wipro.com wrote: Thanks Jim. Is there a way to get the value of that unchecked box? -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 10:35 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment) Cc: geek...@gmail.com; php-gen

Re: [PHP] pup

2009-04-16 Thread Jim Lucas
ramesh.marimu...@wipro.com wrote: I'm developing a slot reservation page. It shows checked boxes for the currently logged user. If he likes to unreserve it, he should uncheck it. For other users it is disabled. Also a currently logged user can book another slot. Also when I use hidden types, onl

RE: [PHP] pup

2009-04-16 Thread ramesh.marimuthu
Many Thanks Jim. Your idea worked. -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 11:13 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment); PHP General List; geek...@gmail.com Subject: Re: [PHP] pup ramesh.marimu...@wipro.com wrote: > I'm