[PHP] Form to page force download

2006-04-20 Thread Peter Lauri
Best group member, I have this process: 1. Fill out a form on a web page 2. Lands on a thank you page and force a download of a pdf Right now I solve this by outputting the thank you page and then using a javascript to redirect to the download.php that consist of the following: hea

RE: [PHP] Passing Form As Argument

2006-04-20 Thread Nicolas Verhaeghe
Hi, I'm new to the list so "Hello" to all. I'm drafting a function.php page, which will be included() in the pages in need. How would I pass a form as an argument of a function? From the name parameter of the form element or perhaps an ID: function checkForm(theForm){ //Form val

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Jochem Maas
statically calling a method is faster than init'ing an object then calling a method. static methods (as opposed to functions in the global space) automatically give a sort of namespacing, and a way to organise code (although that rather cosmetic). methods that are defined as static do not define

RE: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Nicolas Verhaeghe
[snip] > I'm creating my own Object Oriented PHP Shopping Cart. Okaaay. You're doing this just for fun and education, right? Cuz, seriously, it's about 100 X harder than you think to get a bunch of details you've never even thought about correct. And there are about 100 shopping carts alre

[PHP] Re: Creating an OO Shopping Cart

2006-04-20 Thread Steve
Hi Thanks for all your help so far. I've combined all your thoughts, and from what I understand, for every page I have that interacts with the cart, I need to have something like the following code. So basically, on every page, be it a page that displays the contents of the cart, the checko

RE: [PHP] Re: Run Apache/PHP/MySQL from CD?

2006-04-20 Thread Nicolas Verhaeghe
I guess the CD could be mounted on MacOS and Unix to be treated as a true drive but I am confident it would not work on Windows, knowing how every application has to embed itself with the registry and the system files, usually register DLLs and what not. But whatever happens, the CD should never b

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Steve
Richard Lynch wrote: > Yes, there is a TON of source code, and Yes, most of it is very very > very badly-written, and Yes, that's because they started typing just > like you are now instead of actually figuring all this [bleep] out in > advance. :-) Hi Richard Thank you for taking the time to

[PHP] Re: Session contamination?

2006-04-20 Thread Chuck Anderson
This has been a very interesting discussion, as I have had the same "problem," but never thought much about the fact that I could do anything about it. As to session save path, when I run phpinfo (at my remote Linux server) it tells me that it is set to "no value." This means it would default

Re: [PHP] any better way...

2006-04-20 Thread Kevin Kinsey
benifactor wrote: I am trying to come up with the best way to check for errors on a form. I have done this before by checking each $_POST variable seperatly but needed a better way that would display more then one error. The following is what i came up with... if (!$condition1 || !$conditi

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
It was helpful. I agree about programming to what is defined and declared in a language, but experience has taught that some methods are better than others (i.e. joining an array vs string concatenation in javascript). So I mostly just wanted to convince myself that static was sane in 5, an

Re: [PHP] Linebreak

2006-04-20 Thread Martin Alterisio
You wouldn't feel/look stupid if you had RTFM: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single 2006/4/20, Peter Lauri <[EMAIL PROTECTED]>: > > I feel stupid. > > > > In many examples I have seen similar to: > > > > echo 'Whatever.\n'; > > echo 'An other w

[PHP] Linebreak

2006-04-20 Thread Peter Lauri
I feel stupid. In many examples I have seen similar to: echo 'Whatever.\n'; echo 'An other whatever.\n'; But my PHP outputs the \n instead of a new line in the source. I am stupid?

[PHP] Re: Run Apache/PHP/MySQL from CD?

2006-04-20 Thread John Hicks
Jay Paulson wrote: I have no idea if this is possible or not but is there a way to run Apache, PHP, and MySQL from a CD? I'd like it to be possible to run it on Windows, Mac OSX and *nix. If it is possible could someone point me in the right direction? Thanks! XAMPP is a distribution of Apa

RE: [PHP] PDF to Text

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 8:59 pm, Jay Blanchard wrote: > [snip] >> I am trying to find a way for a program to search through the text >> on > a >> PDF. My first thought was to use pdftotext, but the PDFs generated >> by > our >> commercial scanner/copier/printer machine do not seem to work with >> pd

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Anas Mughal
I would not worry about internal implementation of PHP5. (Who knows, they may change things around a little bit in PHP6!) In general, program to what is defined and declared in a language. That is our contract with the Zend engine. Remember, static method calls are resolved at compile time. Moreo

RE: [PHP] PDF to Text

2006-04-20 Thread Jay Blanchard
[snip] > I am trying to find a way for a program to search through the text on a > PDF. My first thought was to use pdftotext, but the PDFs generated by our > commercial scanner/copier/printer machine do not seem to work with > pdftotext... it just outputs two CRLFs. I've been looking around on th

RE: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 3:42 am, Peter Lauri wrote: > That was a smart solution. However, my client have not given me access > to > the MySQL database at this stage (just doing a small side project of > the > clients web site). If you could not take advantage of database and > cron job, > what would

Re: [PHP] PDF to Text

2006-04-20 Thread Ray Hauge
On Thursday 20 April 2006 18:06, Ray Hauge wrote: > Hello List, > > I am trying to find a way for a program to search through the text on a > PDF. My first thought was to use pdftotext, but the PDFs generated by our > commercial scanner/copier/printer machine do not seem to work with > pdftotext...

[PHP] PDF to Text

2006-04-20 Thread Ray Hauge
Hello List, I am trying to find a way for a program to search through the text on a PDF. My first thought was to use pdftotext, but the PDFs generated by our commercial scanner/copier/printer machine do not seem to work with pdftotext... it just outputs two CRLFs. I've been looking around on

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 10:51 am, Weber Sites LTD wrote: > As I said, I could but then I would be bypassing all of the phpBB > logic > And chances are that I may miss something. Okay, try THIS tack: Why don't you search the phpBB plug-ins pages/archives/solutions for what you want? That's your mo

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Martin Alterisio
The $_SESSION array is already being serialized before saving it to the session datafile. You'll only have to: $_SESSION['cart'] = $cart; And before session_start(): require_once 'fileWhereClassIsDefined'; . . . session_start(); If the class isn't defined before serialization (session start) an

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 9:25 am, Weber Sites LTD wrote: > Notice that instead of helping, you too, are telling me > to go look for a PHP script somewhere else than the > PHP mailing list where so many php people that may > Have used php to write this script are reading. Why > Is that? Because he ho

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Richard Lynch
[some SERIOUS text-deleting happened here...] On Thu, April 20, 2006 8:08 am, John Nichel wrote: > Weber Sites LTD wrote: >> I have been on this list since 1998. Looking at some of the > '98 > you > say? Well, I don't remember you, but one would think being a part of I do. He posted an answer

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 7:15 pm, Mark Baldwin wrote: > What?!? Why the need to make faces? Seems like a legitimate question > to ask what goes on behind the scenes when you program a certain way. Because your analysis (deleted for brevity) is rather shallow. Perhaps static objects create an instan

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 7:14 pm, Steve wrote: > I'm creating my own Object Oriented PHP Shopping Cart. Okaaay. You're doing this just for fun and education, right? Cuz, seriously, it's about 100 X harder than you think to get a bunch of details you've never even thought about correct. And th

Re: [PHP] Creating an OO Shopping Cart

2006-04-20 Thread Paul Novitski
At 05:14 PM 4/20/2006, Steve wrote: I'm creating my own Object Oriented PHP Shopping Cart. I'm confused about the best way to call the functions of the class given the "static" nature of the web. For example, if I have a function addItem($code), how will this be called from the catalog or pr

Re: [PHP] Best way to start a CRON

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 4:03 am, Barry wrote: > What would be the best way to start a PHP Script via CRONJOB? > Should i use the 'php' command or use curl or lynx or something to > open that URL? Ideally just use CLI PHP. Slightly sub-optimal is CGI PHP with -q argument. Also use FULL PATH to the

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
What?!? Why the need to make faces? Seems like a legitimate question to ask what goes on behind the scenes when you program a certain way. Here's the rub, if static objects are treated the way they probably should be (as a function pointer), then why bother using object oriented syntax? You

Re: [PHP] POST arrays?

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 5:18 am, William Stokes wrote: > How to post an array with associated values? > > "> > > And print there with: > > print_r($arr_siirt_jouk); > > prints: Array > > So how can post the values forward? http://www.php.net/manual/en/faq.html.php#faq.html.arrays -- Like Music? h

[PHP] Creating an OO Shopping Cart

2006-04-20 Thread Steve
Hi I'm creating my own Object Oriented PHP Shopping Cart. I'm confused about the best way to call the functions of the class given the "static" nature of the web. For example, if I have a function addItem($code), how will this be called from the catalog or product description pages where the

Re: [PHP] PHP error log

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 7:42 am, Weber Sites LTD wrote: > I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written > to > file. > I can see all of the direct errors but when I have an error inside an > include > file the script fails and the error is not shown in the log. I have to > "

Re: [PHP] Passing Form As Argument

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 5:46 pm, Chris Kennon wrote: > I'm new to the list so "Hello" to all. I'm drafting a function.php > page, which will be included() in the pages in need. How would I pass > a form as an argument of a function? From the name parameter of the > form element or perhaps an ID: HT

Re: [PHP] Passing Form As Argument

2006-04-20 Thread Paul Novitski
At 03:46 PM 4/20/2006, Chris Kennon wrote: I'm drafting a function.php page, which will be included() in the pages in need. How would I pass a form as an argument of a function? Unlike client-side JavaScript, server-side PHP doesn't see the client-side form. All PHP sees are the values of fo

Re: [PHP] Passing Form As Argument

2006-04-20 Thread Martin Alterisio
My first answer to your question would be: "no, you can't refer to an html form in any way in php". My second answer would be, as usual, a question: "what, exactly, are you trying to do?" 2006/4/20, Chris Kennon <[EMAIL PROTECTED]>: > > Hi, > > > I'm new to the list so "Hello" to all. I'm drafting

Re: [PHP] Session contamination?

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 1:46 pm, Ben Liu wrote: > After a bit more research, I think I understand why Jochem recommends > use of session_save_path() rather than just naming each session > differently. The former method provides more security as you can set > the location where session cookies are st

Re: [PHP] Session contamination?

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 10:21 am, Ben Liu wrote: > I'm using a single development server to host multiple client > projects, many of which require session management. I've noticed that > sometimes when I test these various web apps (which are simply in > separate sub directories) I get session leaka

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 1:25 pm, Mark Baldwin wrote: > Does anyone know how static objects work behind the scenes in PHP5? > More specifically, is there a benefit to declaring an object and its > methods as static vs the more traditional OO way of instantiating an > object and then calling methods t

[PHP] Passing Form As Argument

2006-04-20 Thread Chris Kennon
Hi, I'm new to the list so "Hello" to all. I'm drafting a function.php page, which will be included() in the pages in need. How would I pass a form as an argument of a function? From the name parameter of the form element or perhaps an ID: function checkForm(theForm){ //Form val

Re: [PHP] issue with MySQL procedure and a result set

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 3:48 am, Alain Roger wrote: > personally i do not use MyODBC. i just wrote that this is a common > answer > for such error message. > but why should i check within MySQL documentation if the flag to write > (if > it is really the solution???) belongs to PHP command "mysql_con

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Ryan A
> On Thursday 20 April 2006 1:18 am, Richard Lynch > wrote: > > Is 5 longer than 4? > > Size doesn't matter. At least that's what I've been > told. ;) > -- You've been lied to m8 :-D -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiaris

Re: [PHP] New image already cached.

2006-04-20 Thread Richard Lynch
Here's the crucial info you are missing: The URL does not have to *END* in the name of the PHP file. The PHP file could be in the MIDDLE of the URL. In other words, Apache is perfectly happy to take a url like this: http://example.com/program.php/whatever_you-want=to+put_here Example setup:

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hi Dave, After a bit more research, I think I understand why Jochem recommends use of session_save_path() rather than just naming each session differently. The former method provides more security as you can set the location where session cookies are stored. This will help prevent an attacker from

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks Jochem, this should give me all I need to solve this problem. -Ben On 4/20/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > Ben Liu wrote: > > Hi Dave, > > > > Thanks, I think the method recommended by Robin using the function > > ini_set() would work, but somehow I think this could be done in

[PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
Greetings all, Does anyone know how static objects work behind the scenes in PHP5? More specifically, is there a benefit to declaring an object and its methods as static vs the more traditional OO way of instantiating an object and then calling methods through the -> operator? For example

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Jochem Maas
[EMAIL PROTECTED] wrote: The idea of creating a phpBB user when a weberdev one is created has merit, but I'm not sure I saw anyone recommend doing the opposite? Since you have a fair idea of how weberdev creates users (since you created it) why not insert some PHP code into phpBB to create a w

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
It's possible and I may do that however, weberdev, by far Has much more traffic so it's the side that I want to start With. Thanks berber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 6:25 PM To: php-general@lists.php.net Cc: [EMAIL

Re: [PHP] POST arrays?

2006-04-20 Thread Jim Lucas
William Stokes wrote: Hello, How to post an array with associated values? This works ok But if I post it to another form with this: "> And print there with: print_r($arr_siirt_jouk); prints: Array So how can post the values forward? Thanks -Will Here is the answer that you are l

Re: [PHP] Session contamination?

2006-04-20 Thread Jochem Maas
Ben Liu wrote: Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler fashion by setting separate session names for each app, unless I am misunderstanding the use of session_name(). Trying this out now..

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hi Dave, Thanks, I think the method recommended by Robin using the function ini_set() would work, but somehow I think this could be done in simpler fashion by setting separate session names for each app, unless I am misunderstanding the use of session_name(). Trying this out now... - Ben On 4/20

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread tg-php
The idea of creating a phpBB user when a weberdev one is created has merit, but I'm not sure I saw anyone recommend doing the opposite? Since you have a fair idea of how weberdev creates users (since you created it) why not insert some PHP code into phpBB to create a weberdev account when someo

Re: [PHP] Session contamination?

2006-04-20 Thread Ben Liu
Thanks for the response Robin, I'm reading up on session.cookie_path now. It seems that this would require creating separate php.ini files for each application. On 4/20/06, Robin Vickery <[EMAIL PROTECTED]> wrote: > On 20/04/06, Ben Liu <[EMAIL PROTECTED]> wrote: > > Hello All, > > > > I'm using a

Re: [PHP] Session contamination?

2006-04-20 Thread Robin Vickery
On 20/04/06, Ben Liu <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm using a single development server to host multiple client > projects, many of which require session management. I've noticed that > sometimes when I test these various web apps (which are simply in > separate sub directories) I ge

RE: [PHP] PHP error log

2006-04-20 Thread Weber Sites LTD
Actually I'm not looking for help with the code. The problem is more of a principle problem. Because I don't want users to see errors and warnings When there is a problem all of the errors go to a log file Instead of the standard output. As long as the error (any error) occurs in the file I'm Wor

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Joe Henry
On Thursday 20 April 2006 1:18 am, Richard Lynch wrote: > Is 5 longer than 4? Size doesn't matter. At least that's what I've been told. ;) -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session contamination?

2006-04-20 Thread Ben Liu
Hello All, I'm using a single development server to host multiple client projects, many of which require session management. I've noticed that sometimes when I test these various web apps (which are simply in separate sub directories) I get session leakage where logging in and establishing a sessi

Re: [PHP] PHP error log

2006-04-20 Thread Wolf
Run the include file separately and see if it produces an error. Also make sure that if you have "short open tags=OFF" that your include file uses normal tags. Code normally helps. Wolf Weber Sites LTD wrote: > Hi > > I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to >

Re: [PHP] PHP error log

2006-04-20 Thread Martin Alterisio \"El Hombre Gris\"
Please, explain how are you logging the errors. Weber Sites LTD wrote: Hi I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to file. I can see all of the direct errors but when I have an error inside an include file the script fails and the error is not shown in the log. I

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Jeremy Schreckhise
What's there to miss. The create user logic is centralized and fairly easy to follow. If this is too hard for your current situation, you might just want to pass your user information to the phpBB .php file that processes user input. Just another option. (I know these aren't the progr

Re: [PHP] session

2006-04-20 Thread Martin Alterisio \"El Hombre Gris\"
It's really that hard to read the whole manual page about session_destroy()? Quoting the php manual: "In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
As I said, I could but then I would be bypassing all of the phpBB logic And chances are that I may miss something. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 4:34 PM To: 'John Nichel'; php-general@lists.php.net Subject: RE: [PHP]

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread John Nichel
Jeremy Schreckhise wrote: Wasn't trying to steal anyone's thunder. Created the response, went to work, then sent it later. Your response adequate and complete. Sorry to intrude. Guess I should have added a ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buff

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Jeremy Schreckhise
Wasn't trying to steal anyone's thunder. Created the response, went to work, then sent it later. Your response adequate and complete. Sorry to intrude. Jeremy Schreckhise, M.B.A. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:37 AM Cc

RE: [PHP] PHP error log

2006-04-20 Thread Ing. Edwin Cruz
Are you using the constants predefined? __FILE__ __LINE__ Or also try using backtrace, http://mx.php.net/debug_backtrace Regards! Edwin. -Mensaje original- De: Weber Sites LTD [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 20 de Abril de 2006 07:43 a.m. Para: php-general@lists.php.

[PHP] Re: session

2006-04-20 Thread João Cândido de Souza Neto
João Cândido de Souza Neto wrote: > Hi everyone. > > I hope someone here can help me. > > When i start a session in a php page, this session receives an unique id. > > If you think about this, if i call a session_destroy() in any page and in > the other paga call a session_start() again, it'll

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Hi My 1st thought was to look at the mysql query log and see what it takes To create a user. After looking at the set of queries I understood that I Didn't want to go directly to the DB and bypass the phpBB logic. I managed to find a script that uses the minimum phpBB internal functions to create

RE: [PHP] session

2006-04-20 Thread Ing. Edwin Cruz
You should set a name to your session: Index.php: LogOff.php ++ | ISC Edwin Cruz <[EMAIL PROTECTED]>| ++ | IT Manager, MySQL GUI Doc Team | || | Transportes Medel Rogero SA de CV | || | Desk: +52 (449) 910 30 90 x3054

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread John Nichel
Jeremy Schreckhise wrote: Why couldn't you use your login (weberdev). I.E. when a user creates an account you also push this data onto the phpBB2 db. Find where phpBB is creating a user, analyze the encryption method use, modify your login to create both entries. Gee, I wish I would have sai

RE: [PHP] POST arrays?

2006-04-20 Thread Ing. Edwin Cruz
I'd try this: "; } ?> And when submit do this: Regards! Edwin. -Mensaje original- De: tedd [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 20 de Abril de 2006 08:28 a.m. Para: William Stokes; php-general@lists.php.net Asunto: Re: [PHP] POST arrays? At 3:55 PM +0300 4/20/06, Willi

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Jeremy Schreckhise
Why couldn't you use your login (weberdev). I.E. when a user creates an account you also push this data onto the phpBB2 db. Find where phpBB is creating a user, analyze the encryption method use, modify your login to create both entries. Jeremy Schreckhise -Original Message- From: Joh

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Tony Marston
""Martin Alterisio "El Hombre Gris""" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Matt Todd wrote: > > Have you stop to think what the efficiency cost would be to make > everything an object? We're already suffering much to avoid the "waiting > 2.5 second it's way too m

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread John Nichel
Weber Sites LTD wrote: Yes, both sites are on the same server but weberdev was built by me And weberforums is phpBB2. No sense in writing my own forums application. WeberDev is the main site and has it's own user base and phpBB2 is Pretty complex and I didn't have the time to create a single lo

Re: [PHP] session

2006-04-20 Thread cajbecu
Hello, Try generating your own session id and the problem will be solved ;) cheers, João Cândido de Souza Neto wrote: > Hi everyone. > > I hope someone here can help me. > > When i start a session in a php page, this session receives an unique id. > > If you think about this, if i call a sess

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Wolf
OK, so maybe this just seems moot, but... Weber Sites LTD wrote: > Yes, both sites are on the same server but weberdev was built by me > And weberforums is phpBB2. No sense in writing my own forums application. Same server means you can look at the database > WeberDev is the main site and has it'

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Brad Bonkoski
Maybe it is just me, but I think these types of discussions/debates concerning opposing view points on the direction of web programming is as imperative to the general PHP community (i.e. this list) as the dangers of register globals and magic quotes etc At least more relevant then the i

[PHP] session

2006-04-20 Thread João Cândido de Souza Neto
Hi everyone. I hope someone here can help me. When i start a session in a php page, this session receives an unique id. If you think about this, if i call a session_destroy() in any page and in the other paga call a session_start() again, it'll receive other unique id. But it isn't working. Ever

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread John Nichel
Weber Sites LTD wrote: Notice that instead of helping, you too, are telling me to go look for a PHP script somewhere else than the PHP mailing list where so many php people that may Have used php to write this script are reading. Why Is that? Actually, saying to go look at the phpBB site/forums

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Martin Alterisio \"El Hombre Gris\"
Matt Todd wrote: There's nothing wrong with staying true to the philosophy at all, I just think that it may well be detrimental in the end. And that is what I said in the (toilet)paper, that there will be (emphasis on the eventuality, not on the present actuality) a time that PHP will become t

Re: [PHP] how should MS Access DATETIME be handled in PHP?

2006-04-20 Thread Bing Du
> I don't know if MS Access will behave the same, but in MySQL you can > have a query like so: > > SELECT *, DATE_FORMAT(end_date, '%d %m %Y') as end_date_formatted FROM > projects; > > And it will retrieve all columns from your projects table, plus the > extra one you've created on the fly, and it

[PHP] Offshore hosting

2006-04-20 Thread Dave Goodchild
Hi all, I AM a PHP developer and I KNOW this is off topic, so apologies, but don't respond if you don't feel like it. One of my clients has a poker site which we have to move to an offshore dedicated server located in Cyprus, Malta, Isle Of Man, Alderney or Costa Rica. I am finding it hard to find

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Yes, both sites are on the same server but weberdev was built by me And weberforums is phpBB2. No sense in writing my own forums application. WeberDev is the main site and has it's own user base and phpBB2 is Pretty complex and I didn't have the time to create a single logon. It Will not be trivi

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Stut
Weber Sites LTD wrote: Notice that instead of helping, you too, are telling me to go look for a PHP script somewhere else than the PHP mailing list where so many php people that may Have used php to write this script are reading. Why Is that? I can't speak for John, but I pointed you at the

Re: [PHP] POST arrays?

2006-04-20 Thread tedd
At 3:55 PM +0300 4/20/06, William Stokes wrote: BTW, can sessions and $POST be mixed? If yes is there any reason what so ever to do that? Yes, you can use sessions, post, get, and cookies all in the same script if you want. Yes, there can be reasons to do that. tedd --

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Notice that instead of helping, you too, are telling me to go look for a PHP script somewhere else than the PHP mailing list where so many php people that may Have used php to write this script are reading. Why Is that? It's not about being overly sensitive, it's about The kind of answers that cr

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
So. If large amount of variables are needed to be preserved in arrays or otherwise is "session" the (normal)way to go? -W "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>You're right. >> > > I'm also shocked, but only mildly. > >>BTW, can sessions an

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
True. I'm not famiar with sessions. I have always used $POST to transmit variables. -W "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>You're right. >> > > I'm also shocked, but only mildly. > >>BTW, can sessions and $POST be mixed? If yes is there

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Stut
Weber Sites LTD wrote: Not exactly, we are talking about two different sites with two different Databases. Each site has it's own userbase and authentication will Still be against the respected DB. I just want the account to be ready For the user if he already opened it. Are both sites on t

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread John Nichel
Weber Sites LTD wrote: Google was the 1st place I looked. Maybe the phpBB site/forums would have been a better choice. I have been on this list since 1998. Looking at some of the answers on this list lately it must be a real disappointment for many people. There are many people that like to

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Not exactly, we are talking about two different sites with two different Databases. Each site has it's own userbase and authentication will Still be against the respected DB. I just want the account to be ready For the user if he already opened it. Obviously I can reverse engineer the phpBB2 code

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread John Wells
Here's an invitation to take this off-list. I've posted my thoughts on my (currently design-less and under massive construction & relocation) website. Direct link to post: http://s153531379.onlinehome.us/index.php/journal/the-clash-of-the-php-mailing-list-and-the-proverbial-web-2-0-iceberg Perma

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: You're right. I'm also shocked, but only mildly. BTW, can sessions and $POST be mixed? If yes is there any reason what so ever to do that? Your question indicates that you don't understand what sessions are. Please read http://www.oreilly.com/catalog/webdbapps/

Re: [PHP] Best way to start a CRON

2006-04-20 Thread John Nichel
Pure Web Solution wrote: I run several PHP scripts via CRON in the following way: put the following in the top of the php script: #!/usr/local/bin/php -q (linux system - location of php bin) ^^^ If you're going to use this and in the CRONTAB I have the following: 10 1 * * * root /

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
You're right. BTW, can sessions and $POST be mixed? If yes is there any reason what so ever to do that? -W "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>From here: >>$arr_siirto = array((serialize('1','2','3')); >> >>after removing the single quote

Re: [PHP] GregorianToJD

2006-04-20 Thread Stut
tedd wrote: Everything I've read about it says that it works for PHP 3-5. However, I'm working in PHP 4.3.1 and calls to that function give me: Fatal error: Call to undefined function: gregoriantojd() What's up with that? That function is part of the calendar extension. Check that this ex

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: From here: $arr_siirto = array((serialize('1','2','3')); after removing the single quotes it started to work. Yes, the quotes here are not needed because they're numbers. If they were not numbers then the quotes would still be needed. -Stut -- PHP General Mailing

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
>From here: $arr_siirto = array((serialize('1','2','3')); after removing the single quotes it started to work. -W "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>Is it bad just to remove the single quotes [ ' ] ? >> > > From what? In fact, yes, almos

[PHP] GregorianToJD

2006-04-20 Thread tedd
Hi gang: While looking for a solution to the "Date time Comparison" post, I came across a function that looked interesting, namely gregoriantojd -- see: http://www.weberdev.com/gregoriantojd Everything I've read about it says that it works for PHP 3-5. However, I'm working in PHP 4.3.1 and

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: Is it bad just to remove the single quotes [ ' ] ? From what? In fact, yes, almost certainly bad. -Stut "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: OK. Must try that. BTW theres something odd about my serialize

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
Is it bad just to remove the single quotes [ ' ] ? "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>OK. Must try that. >> >>BTW theres something odd about my serialize. I got it return something but >>not quite what was expected :) Here's the result "a

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: OK. Must try that. BTW theres something odd about my serialize. I got it return something but not quite what was expected :) Here's the result "a:3:{i:0;s:1:" You need to use htmlentities() (http://php.net/htmlentities) on the serialized data when putting it into th

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
OK. Must try that. BTW theres something odd about my serialize. I got it return something but not quite what was expected :) Here's the result "a:3:{i:0;s:1:" -W "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: > >>"Why do you want to post it to itself? W

  1   2   >