php-general Digest 20 Apr 2006 10:36:31 -0000 Issue 4082

2006-04-20 Thread php-general-digest-help
php-general Digest 20 Apr 2006 10:36:31 - Issue 4082 Topics (messages 234316 through 234345): Query for two fields with the same name 234316 by: Kevin Murphy 234318 by: Jochem Maas 234321 by: admin.ensifex.nl 234323 by: Richard Lynch Re: session_destroy

[PHP] Modest Module: perror (exec error codes)

2006-04-20 Thread Richard Lynch
I've written my first external Module for PHP: perror It provides functionality I've always felt was missing in PHP. I'm particularly interested in feedback from anybody who has written PHP extensions of their own -- I'm sure there's room for improvement in my very rusty C skills! Here's why I

Re: [PHP] Query for two fields with the same name

2006-04-20 Thread admin
Maybe something like this : $connection = SELECT t2.id AS idtwo, t1.id AS idone FROM connection AS t1, pr AS t2 WHERE t1.area_id = '$gateway_link' AND t1.pr_id = t2.id; This is probably a simple question, but I can't seem to find the answer online. I'm using this query: $connection =

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

2006-04-20 Thread Robin Vickery
On 19/04/06, Matt Todd [EMAIL PROTECTED] wrote: I know that PHP is a functional language, and secondly, an OO language, but I think that you can blend these things better and have the OO brought to the forefront a bit more. PHP is not a functional language, it's an imperative language.

Re: [PHP] Query for two fields with the same name

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 5:55 pm, Kevin Murphy wrote: $connection = select * from connection, pr WHERE connection.area_id = '$gateway_link' and connection.pr_id = pr.id; Both tables have a field called ID but they have different information in them. $row['id'] gets me the one from the table

Re: [PHP] Mnogosearch extension - not working with php 4.4.2

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 4:55 pm, Yannick Warnier wrote: for. From the type of errors (very unclear and undetailed) that I get, my first guess would be that one function declaration in php_mnogo.c or php_mnogo.h would not be recognized anymore (because it used a funny declaration?). Call me

Re: [PHP] PHP CLI not present

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 3:01 pm, Jeff wrote: I'm running PHP Ver 4.4.1 on a redhat ES3 system. It appears that the CLI is not running or not present. I thought it was installed by default in versions = 4.3.x. If I run /usr/local/bin/php -v at the command line I get nothing. How do I get

[PHP] issue with MySQL procedure and a result set

2006-04-20 Thread Alain Roger
Hi, I'm trying to run a MySQL Procedure from one of my PHP page. 1. the procedure works perfectly under MySQL (it gives the correct results), so no issue from this side. 2.user is able to connect without any issue to MySQL RDBMS, so no issue from this side. Here is what i've as error message

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

2006-04-20 Thread John Wells
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 will be

Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Chris Grigor
Richard Lynch wrote: On Wed, April 19, 2006 1:36 am, Chris Grigor wrote: Richard Lynch wrote: On Tue, April 18, 2006 10:05 am, Chris Grigor wrote: Was wondering if there is an easier way to get returned variables into the $_SESSION rather than going through each one??

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

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 9:42 am, Matt Todd wrote: Honestly, I'd love to see basic variables be objects, as models of real world data with properties for the data such as a $number-length or $word-as_array() giving you letters. I think you might want to consider using Common Lisp, then. Cuz

Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Barry
Chris Grigor wrote: The method behind the madness here, is that I am only pulling the data once from the db throughout the whole session. This means that all the user info is available on every page they visit. I can also then identify on each page that loads if a user has signed in and a

[PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
Best groupmember, I have a form that is being filled out. This is the process: 1. Fill out form and click submit 2. Script validates data 3. Data is being sent to external source via Web Service 4. A file is being downloaded (redirects to files location) The problem

[PHP] Re: Execute script and redirect

2006-04-20 Thread Barry
Peter Lauri wrote: Best groupmember, I have a form that is being filled out. This is the process: 1. Fill out form and click submit 2. Script validates data 3. Data is being sent to external source via Web Service 4. A file is being downloaded (redirects to files

Re: [PHP] programming contests as a way of finding/evaluating offshore talent...

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 9:58 am, bruce wrote: i'm looking for opinions on the worth of programming contests as a way of judging the talent of potential software developers... any thoughts/pros/cons would be appreciated.. and yeah.. i know this is a little off topic.. but some of us here

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

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 9:38 am, Bing Du wrote: Do the search as Richard suggested. MS Access might have a similar function you can use, but you'll need to do some searching yourself to find the answer. Sure. I always appreciate various opinions. I've checked with an Access expert. It

RE: [PHP] Forking a search - pcntl

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 3:17 am, James Nunnerley wrote: Thanks for everyone's replies - but I'm a little uncertain as to what the reasons for not running the pcntl functions under the web browser are - is it down to security? I could be wrong, but I believe the correct response is: No, it's

Re: [PHP] New image already cached.

2006-04-20 Thread Richard Lynch
$image_file = 'foo.jpg'; $random = mt_rand(1, 20); $url = http://example.com/program/$random/$image_file;; echo img src=\$url\ In program, if you echo out $_SERVER['PATHINFO'] you will see: /454398574395/foo.jpg The number will change, of course. You can tear that apart and get the

Re: [PHP] Session_destroy

2006-04-20 Thread Richard Lynch
On Wed, April 19, 2006 9:11 am, Paul Waring wrote: setcookie(session_name(), '', (time() - 86400), /); / should be in quotes or apostrophes. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute script and redirect

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 2:23 am, Peter Lauri wrote: 1.Fill out form and click submit 2.Script validates data 3.Data is being sent to external source via Web Service 4.A file is being downloaded (redirects to files location) The problem is that #3 is taking around 15 seconds to

RE: [PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
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 you do? PS! I am not sure that my clients host supports cron

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

2006-04-20 Thread Richard Lynch
On Thu, April 20, 2006 1:55 am, Alain Roger wrote: I'm trying to run a MySQL Procedure from one of my PHP page. 1. the procedure works perfectly under MySQL (it gives the correct results), so no issue from this side. 2.user is able to connect without any issue to MySQL RDBMS, so no issue

[PHP] Best way to start a CRON

2006-04-20 Thread Barry
Hello Everyone! 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? The Script does a MySQL query, collects data and sends it via E-Mail every monday morning to the recipient. Any help will be

Re: [PHP] Best way to start a CRON

2006-04-20 Thread nicolas figaro
Barry a écrit : Hello Everyone! 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? Hi, unless you need to be sure the http server is up and running, it's a better way to run your script via a

Re: [PHP] Best way to start a CRON

2006-04-20 Thread Pure Web Solution
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) and in the CRONTAB I have the following: 10 1 * * * root /usr/local/bin/php -q /script/CRONexport.php the -q supress HTML

Re: [PHP] Best way to start a CRON

2006-04-20 Thread Barry
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) and in the CRONTAB I have the following: 10 1 * * * root /usr/local/bin/php -q /script/CRONexport.php

[PHP] POST arrays?

2006-04-20 Thread William Stokes
Hello, How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden name=arr_siirt_jouk value=?php echo $arse;? And print there with:

[PHP] Re: POST arrays?

2006-04-20 Thread Barry
William Stokes wrote: Hello, How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden name=arr_siirt_jouk value=?php echo $arse;?

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden name=arr_siirt_jouk value=?php echo $arse;? And

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
No other way? Stut [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with

Re: [PHP] POST arrays?

2006-04-20 Thread chris smith
On 4/20/06, William Stokes [EMAIL PROTECTED] wrote: Hello, How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden

Re: [PHP] POST arrays?

2006-04-20 Thread Barry
William Stokes wrote: No other way? Over sessions or saving as file and loading it in the following page. -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
Can someone help me to get started with serializing? I think I did'nt quite understand the manual here... How to post to $PHP_SELF and read this simple array? ? //print the posted array here print_r($arr_siirt_jouk); //create the array and post it in another name $arr_siirto = array(1,2,3);

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: Can someone help me to get started with serializing? I think I did'nt quite understand the manual here... How to post to $PHP_SELF and read this simple array? Why do you want to post it to itself? Why not use a session instead? It's a lot more efficient. ?

Re: [PHP] POST arrays?

2006-04-20 Thread nicolas figaro
William Stokes a écrit : Can someone help me to get started with serializing? I think I did'nt quite understand the manual here... serialize and unserialize don't modify your variable, but the return value is a string or a mixed (which means it can be a very complicated structure, or a

[PHP] PHP error log

2006-04-20 Thread Weber Sites LTD
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 have to guess Where the error is. Any idea what I'm missing. Thanks

RE: [PHP] POST arrays?

2006-04-20 Thread Weber Sites LTD
Have a look at : http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=serializ berber -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 1:17 PM To: php-general@lists.php.net Subject: Re: [PHP] POST arrays? Can someone help me

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
When you go to http://www.weberdev.com you need to create an account For some of the options. IF you go to http://www.weberforums.com you Need to create a 2nd account cause there is no connection between The two sites. I'm looking for a script (I found something on phpbb.com but it's not Working

Re: [PHP] POST arrays?

2006-04-20 Thread William Stokes
Why do you want to post it to itself? Why not use a session instead? -I dont know. Never tried session It's a lot more efficient. -OK. Is it more complicated to write? -Will Stut [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: Can someone help me to get

Re: [PHP] Best way to start a CRON

2006-04-20 Thread M. Sokolewicz
Actually, you can even use less code to do exactly the same thing (since you can EITHER make an excutable file with the shebang, which you start doing, but never actually do, OR call php to just read the file and execute the code inside it, which you in the end do). Basically, either:

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Weber Sites LTD
Google was the 1st place I looked. 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 help but then there are those that just love to open the joke threads. If everything

[PHP] Re: SQL result

2006-04-20 Thread M. Sokolewicz
Mohsen Pahlevanzadeh wrote: Dear all, I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. Yours,Mohsen it's called RTFM glad to be of help, - tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] POST arrays?

2006-04-20 Thread Stut
William Stokes wrote: Why do you want to post it to itself? Why not use a session instead? -I dont know. Never tried session It's a lot more efficient. -OK. Is it more complicated to write? session is great, gets me high every time. See your local supplier or go to

Re: [PHP] PHP Script to open phpBB2 accounts

2006-04-20 Thread Stut
Weber Sites LTD wrote: When you go to http://www.weberdev.com you need to create an account For some of the options. IF you go to http://www.weberforums.com you Need to create a 2nd account cause there is no connection between The two sites. I'm looking for a script (I found something on

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? Why not use

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 the

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:3:{i:0;s:1:

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. I

[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 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, almost certainly

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] 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

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 quotes it started

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 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

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

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] 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 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

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 any reason

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 and $POST be

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

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 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

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

[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] 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 will

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

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

[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.

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

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's

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

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

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: snip 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 much cutline

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:

RE: [PHP] POST arrays?

2006-04-20 Thread Ing. Edwin Cruz
I'd try this: ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); Foreach($arr_siirto as $value){ echo input type=text name=\arr_siirto[]\ values='$value'; } ? And when submit do this: ? $arr_sirto = $_REQUEST['arr_siirto']; Print_r($arr_sirto);

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. snip Gee, I wish I would

RE: [PHP] session

2006-04-20 Thread Ing. Edwin Cruz
You should set a name to your session: Index.php: ? session_name(mySession); session_start(); $_SESSION['myVar'] = something; ? LogOff.php ? session_name(mySession); session_start(); Session_destroy(); Print_r($_SESSION); ? ++ | ISC Edwin Cruz [EMAIL

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

[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 receive

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:

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

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

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] 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 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

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.

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 file.

[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

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

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

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 get

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 single

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

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

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

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 ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden name=arr_siirt_jouk value=?php echo $arse;?

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] 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

  1   2   >