[PHP] wddx_serialize_value

2006-01-06 Thread Peter Elliott
Peter Elliott Systems Developer __ | | _.---. | | .-' | |___ _.-'|___ | .' `._.-'.---`---'--.' `.--..__ |_/ _ \~~'Motorsport/"""

[PHP] Speed

2006-01-10 Thread Peter Lauri
Best group member, Assume that I save data about an object and it has 10.000 observations of the object stored in a MySQL database. I want calculate the average value of a column, is it faster done by using PHP on the result array or using the MySQL function to do that? /Peter

[PHP] private, public, protected in 4.3.11

2006-01-11 Thread Peter Lauri
I get error message: Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in C:\Documents and Settings\Peter Lauri\My Documents\DWS Asia\webserver\ework\classes\page.class.php on line 8 If I change to var $myID; it works. What is wrong? /Peter

Re: [PHP] Google using PHP @

2006-01-24 Thread Peter Hoskin
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/ James Benson wrote: Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to se

[PHP] Retrieve output from HTML or PHP file

2006-01-29 Thread Peter Lauri
Best group member, I have a php script running and need to save the output from an HTML-file or PHP-file. What I want to do: $the_output = thenicefunction('file.html'); Any suggestions? /Peter

RE: [PHP] Retrieve output from HTML or PHP file

2006-01-29 Thread Peter Lauri
content -- The file_get_contents('file.html') will give me -- HTLM content HTML content -- Or am I not correct? Best regards, Peter Lauri -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 11:49 AM To: Peter Lau

[PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
reach this way would be appreciated Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
wait($status); continue; } else { echo $childcount ." ". posix_getpid() ." ". posix_getppid() ."\n"; exit(); } } ?> Each fork seems to be able to see the value of $childcount... so I just need to create a function to work with a particular row

[PHP] Other than default grey button

2006-01-30 Thread Jevos, Peter
Hi all I'd like to ask you one ( probably ) simple question. I'm using webmail and I want to use other than default php grey button. I found on the pages how to use image instead of the default button. So I changed INPUT TYPE="submit" NAME="move_button" VALUE="Move" to INPUT TYPE="image'" NAME

RE: [PHP] Other than default grey button

2006-01-30 Thread Jevos, Peter
ed is some clear example and I will adapt it Thanks in advance Pet Peter Jevos [EMAIL PROTECTED] Oriflame Software , s.r.o - Oriflame IT services Na Pankraci 30, Praha 4, Czech rep. Tel. +420 225 994 456, Fax +420225994412 -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Se

RE: [PHP] Other than default grey button

2006-01-30 Thread Jevos, Peter
http://www.squirrelmail.org/wiki/CustomizingSquirrelMail but it is not enough for me it is about colors, fonts and so on. BR Peter Peter Jevos [EMAIL PROTECTED] Oriflame Software , s.r.o - Oriflame IT services Na Pankraci 30, Praha 4, Czech rep. Tel. +420 225 994 456, Fax +420225994412 -Ori

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
Chris wrote: Hi Peter, If you can get it working can you send me a sample? Certainly... database connections must be CLEAN! Meaning, you should close them when they're no longer needed. Additionally, each fork should open its own DB connection. My completed cod

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
database if you want to use it. Chris wrote: Hi Peter, So each thread accesses it's own database connection (ie it'll open $childrencount connections). Is that what you want? I was trying to get it to share the db connection over the parent and children threads. (The strange th

Re: [PHP] PHP hosting with multiple domains?

2006-02-04 Thread Peter Hoskin
Russell Jones wrote: Host-Gator has a fantastic, cheap reseller program, although you aren't sharing space within 1 account. My real recommendation would be ServerPronto though. $29.95/mo for a dedicated with 40gig space. Lovely cogent bandwidth too... you get what you pay for, which in this cas

[PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
is loaded? My dream is to have a function (or class) that would be used this way: $url="url_to_submit_post_variables_to"; $ps = new SubmitPost($url); $ps->addPostVar($name, $value); $ps->submitPost(); Anyone with ideas about this? Best regards, Peter Lauri -- PHP General Ma

RE: [PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
But if I do not have LIBCURL? -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 2:13 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Submitting form without JavaScript Hi Peter, Curl can do it. http://www.php.net/curl Peter

RE: [PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
Yes this is a solution, but I want to keep the data sent to PayPal out of the HTML code. If you would use that solution someone can get the username from just checking the source from the page. /Peter -Original Message- From: Sumeet [mailto:[EMAIL PROTECTED] Sent: Monday, February 06

RE: [PHP] Results In Variable

2006-02-06 Thread Peter Lauri
Put it in an array? -Original Message- From: Pastor Steve [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 8:14 PM To: PHP eMail List Subject: [PHP] Results In Variable Greetings, I am attempting to put the results of a ³while² loop into a variable. Example: $result = mysql_

RE: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Peter Lauri
I do not know if it is more efficient, but you can do this: $year = date("Y"); $Query = sprintf("SELECT y_id, year FROM Year WHERE year <= %s ORDER BY year DESC;", $year); $Result = mysql_query($Query); May I ask you what you are using this table for? /Peter -Ori

RE: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Peter Lauri
Paul, In your purchase table, do you have the exact date when the equipment was purchased? If that is the case, then you do not need the additional year table, your original table already consist of that information. /Peter -Original Message- From: Paul Goepfert [mailto:[EMAIL

RE: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Peter Lauri
And mysql is probably the fastest way. BUT use microtime and clock your scripts to find out witch one is faster. -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 10:45 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Is

[PHP] Is my user system bad?

2006-02-09 Thread Peter Lauri
Hi, I would like to get some comments about my user system. 1. A user logs in, the username and password is checked against the database 2. If correct it adds a row in my database "session" with member_id. $_SESSION['session_id'] will be set to the mysql_insert_id(). 3. To verify if someone is lo

[PHP] XML parsing

2006-02-09 Thread Peter Lauri
Hi, When I go thru this documentation the parsing seem to be very complex. With Java this was not the case. Assume I have XML like this: $xml = 'PeterThe group'; I would like to get the value of 'from' and 'to'. My dream function would be: $from = xml_function($xml, 'from');

Re: [PHP] XML parsing

2006-02-09 Thread Peter Lauri
I am getting killed by the strong Thai woman that is giving me massage here in Bangkok. Tnx -Original Message- From: "Kim Christensen"<[EMAIL PROTECTED]> Sent: 9/02/06 6:13:48 PM To: "Peter Lauri"<[EMAIL PROTECTED]> Cc: "PHP Gene

[PHP] socket_read

2006-02-09 Thread Peter Lauri
now I just use a value of 'length' that with margin is larger then the size I will receive. Is it possible to get the size of what is ready to be read from the socket? Best regards, Peter Lauri

FW: [PHP] socket_read

2006-02-09 Thread Peter Lauri
Ok, any standard value for the size to read per time? Will the total time be faster if a larger maximum size is choosed? -Original Message- From: Oli Howson [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 12:10 AM To: php-general@lists.php.net Subject: Re: [PHP] socket_read >

[PHP] Complications when sending HTML email

2006-02-13 Thread Peter Lauri
emails from other sources that are displayed correctly. In the bottom I have the email that is sent to me, it is displayed like this in Outlook. Is there maybe something I have to add in the header to get it to work with Outlook? Cheers, Peter -Original Message- From: Sent: Tuesday

RE: [PHP] Complications when sending HTML email

2006-02-14 Thread Peter Lauri
oes not work, hrm. Anyone with a simple html-example that works fine with Outlook? Best regards, Peter Lauri -Original Message- From: Weber Sites LTD [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:27 PM To: 'Peter Lauri'; php-general@lists.php.net Subject: RE: [PH

RE: [PHP] Session problems

2006-02-16 Thread Peter Lauri
What is the code that generates this? -Original Message- From: "Dan Parry"<[EMAIL PROTECTED]> Sent: 16/02/06 4:50:51 PM To: "php-general@lists.php.net" Subject: [PHP] Session problems Hi all I've been getting an error while using a custom sessio

[PHP] Logging visitors path and presenting this to visitors

2006-02-17 Thread Peter Lauri
, but 2 can be extended to better functionality. Witch one would you choose? /Peter

RE: [PHP] question about foreach and associate array

2006-02-20 Thread Peter Lauri
']. And php will translate 'body' to 0 in this, I do not know why :) Try echo $row['body']. $row[1]. $row[1]. $row[2]. $row[3]. $row[4]; It will probably echo Hello for you :) /Peter -Original Message- From: jonathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, Feb

[PHP] Authentication through a login form

2001-01-27 Thread Peter Troll
Hi Patrick, I had to implement the system you are talking about. I wanted to avoid working with sessions, cookies and all the stuff, just make sure it could work in all configurations with minimal requirements. here is what you could do: 1. Build your login page as a form 2. Check the user nam

Re: [PHP] Strange Parser error

2001-02-01 Thread Ben Peter
Phil, posting the scrpit would be good, it's hard to say anything without having seen it. Ben Phil Daintree wrote: > > I have been working on a script and come to a brick wall which I can't break... > > I am using Suse Linux 2.2 kernel, PHP4.04pl1 Mysql 3.22 Mod_ssl open_ssl - this is > runn

Re: [PHP] Why sprintf for query?

2001-02-01 Thread Ben Peter
Karl, where is the first line from? it's pretty useless overhead. $q = 'SELECT prodnum, childdesc FROM prodaval' would be second fastest (the string is now parsed as it is in single quotes). fastest would be to directly feed the statement to the query function (e.g. mysql_query) instead of sto

[PHP] List archives with PHP frontend

2001-02-01 Thread Ben Peter
Hi all, has anyone seen mailing list archiving software with a php frontend? more detailed: I am looking for software that sits listening on an email address and will archive all mail that it receives (which in this case would be that of a mailing list). The archive should be accessible by a p

[PHP] [Q] Domxml: unlink() method?

2001-02-01 Thread Peter Sabaini
i didn't find it. i looked in ext/domxml/php_domxml.c). any solutions / workarounds / patches anyone? or am i being plain dumb -- i am pretty a php novice so chances are i overlooked the very very obvious. thanks peter. -- Peter Sabaini [EMAIL PROTECTED] NETCONOMY Onlineberatungs- und -m

Re: [PHP] contracting & consulting (was "[PHP] Pricing for PHP programming???")

2001-02-01 Thread Ben Peter
Hi Ben, > I know that that Java/EJB/JSP and COM/ASP is in MUCH more demand, and > therefore command a higher wage. Demand vs supply, right?. A search today > on monster.com for ASP in LA yields 142 listings, Java yields 262, JSP > yields 32, Perl yields 105, PHP yields 16, cold fusion yields 16

Re: [PHP] [Q] Domxml: unlink() method?

2001-02-02 Thread Peter Sabaini
On Thu, Feb 01, 2001 at 09:13:34PM +0200, Teodor Cimpoesu wrote: > > > Peter Sabaini wrote: > > > > hello, > > > > i am rather desperately trying to figure out how to delete a node > > object from the DOM. > > > > say i have a node

Re: [PHP] PHP hosting - the final frontier.

2001-02-03 Thread Ben Peter
Chris, This all sounds good but for one thing: I firmly believe that one man with a root password is not enogh to look after even one client. I have hosted with 3 one-man-companies, and it always came to the point where I couldn't reach someone for a week, or I waited for 3 months, only to be gra

Re: [PHP] XML-DOM

2001-02-05 Thread Peter Sabaini
eteme% gets copied. this of course ain't very pretty but works... ru, peter. -- Peter Sabaini [EMAIL PROTECTED] NETCONOMY Onlineberatungs- und -management Gmbh & Co KG www.netconomy.net - Schoenaugasse 64, 8010 Graz Tel. +43-(0)316 875-3081. -- PHP General Mailing List (http://www.

Re: [PHP] security help

2001-02-08 Thread Ben Peter
"James, Yz" wrote: > > In addition, > > (if using .htaccess) They would only be able to read the .htpasswd from > public directory if they had first authorised themselves. The browser will > prompt them to identify before it allows files from a protected directory to > be included. > James,

Re: [PHP] echo vs print

2001-02-09 Thread Ben Peter
Maxim Maletsky wrote: > Anyway, " " compatibility. I believe http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Nothing Showling up in Netscape

2001-02-12 Thread Peter Houchin
s all correct and working in NN when its taken out of the php script)   Thanks   Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] session_register()

2001-02-12 Thread Peter Houchin
I can get everything to work nicely except getting and saving the email from the database. My code is below, Thanks in advance Peter Title webmaster"); if ($num == 1) { include "quote2.php"; } ?>

[PHP] SELECT statement

2001-02-12 Thread Peter Houchin
Hi, Can you have a SELECT statement (using mysql) that goes something like $sql="SELECT id && email FROM table WHERE user='$user' and pass='$pass'"; and if you can't is there a away around this? Thanks Peter

RE: [PHP] SELECT statement

2001-02-12 Thread Peter Houchin
ok I've changed my code to $sql = "SELECT id, email FROM users WHERE user='$user' and pass='$pass'"; but still no joy can any one suggest why? (& Yes email is a field in the table) Peter > Hi, > > Can you have a SELECT statement (using m

RE: [PHP] INSERT into MSSQL Server

2001-02-13 Thread Peter Houchin
in mysql i'd treat them as a char or varchar i would assume it would be the same in MSSQL -Original Message- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:32 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] INSERT into MSSQL Server I tryin

RE: [PHP] SELECT statement

2001-02-13 Thread Peter Houchin
I've tried this but mysql_error() doesn't give me any errors, i tried my sql line at the command line with success here is my code if some one could have a look at it and give some suggestions as to how i can get the email ... Thanks again Peter eRentals Unable to

[PHP] session encode

2001-02-13 Thread Peter Houchin
With session incode do you have to have it on every page where you have a session_start() ? Peter

RE: [PHP] session encode

2001-02-13 Thread Peter Houchin
dress"; and also i can't get a value for the email ... so the session_register('email') returns nothing ... do you have any ideas? -Original Message- From: Michael McGlothlin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:35 AM To: Peter Houchin

[PHP] mail not sending to multiple address

2001-02-13 Thread Peter Houchin
line */ //$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type $headers .= "cc:[EMAIL PROTECTED]\n"; // CC to $headers .= "bcc:[EMAIL PROTECTED]\n"; // BCCs to //send the email $mailsend = mail("$address", "$subject", "$body.", "$headers \nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" ); print ("$mailsend"); ?> Thanks Peter

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Ben Peter
John, part of this is a matter of taste - I would personally rather split this into functions. BUT: even if you _are_ using functions, you should only include() the file with the function when you need it, IF this part of the code is getting large. This way, php will not need to parse code that

[PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Peter Houchin
\nCompany "; $result = mysql_query("SELECT company FROM resellers WHERE Company LIKE '%$query%'"); printf(" $company \n"); echo ""; echo mysql_error(); } ?> Thanks in advance Peter

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Ben Peter
Message- > > > From: Joe Stump [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 14, 2001 5:11 PM > > > To: Ben Peter > > > Cc: John McCreesh; [EMAIL PROTECTED] > > > Subject: Re: [PHP] Structuring large PHP programs > > > > &g

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
Peter, after querying the database, you need to fetch the returned values from the result before you can use them: > $result = mysql_query("SELECT company FROM resellers WHERE Company LIKE > '%$query%'"); $row = mysql_fetch_row($result); $company = $row[0]; OR

RE: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Peter Houchin
thanks ben it works :) Just one thing if i say enter just one letter .. how could i make it show more than just the one result? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Peter Sent: Thursday, February 15, 2001 2:23 PM To: Peter Houchin Cc

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
Peter, use something like if ( mysql_num_rows( $result ) ) { echo ''; while( list($company) = mysql_fetch_row($result) ) { echo ''.htmlentities($company).''; } echo ''; } the first line checks whether there are results (if no, we don't

Re: [PHP] Specific PHP/JSP questions

2001-02-15 Thread Ben Peter
Gerald, although I cannot give you extensive answers, I hope I can help you in some points: > > 1) JSPs can persist variables at the page, request, session and application > scopes. I believe PHP variables are implicitly page-scoped, and session > management can be used for session-scoping. Are

Re: [PHP] Structuring large PHP programs

2001-02-15 Thread Ben Peter
ow or you aren't coding things very well ... > > --Joe > > On Thu, Feb 15, 2001 at 04:16:22AM +0100, Ben Peter wrote: > > Hi Joe, > > > > the reason I changed to 'include on demand' was a rather large > > application which would not work, as the memo

Re: [PHP] File_exists function question.

2001-02-15 Thread Ben Peter
Gerry, could you give us a bit more code, esp. the while or for loop that surrounds the code you have quoted? Cheers, Ben Gerry wrote: > > Hello everyone: > > I'm trying to build a table with the last row being a check function for > an image, where it checks if the item image exists in the

Re: [PHP] File_exists function question.

2001-02-16 Thread Ben Peter
eers, Ben Gerry wrote: > > Hello again: > > Ben Peter wrote: > > > > Gerry, > > > > could you give us a bit more code, esp. the while or for loop that > > surrounds the code you have quoted? > > > > Cheers, > > Ben > > Sorry for the

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Ben Peter
Hi, I tried which gave me -2147483648 echo $foo gives 2.2864849511949E+190 - This looks like the number is too large for printf (the 'human readable form' printed by printf is abviously wrong). Does anybody know such of limits to sprintf? Ben SED wrote: > > Hi, > > I'm multiplying flo

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Ben Peter
Hi, have to correct that (thanks to Adam Whitehead for pointing out). It should be %f instead of %d. However: '' | php -q 2286484951194899000 Segmentation fault (core dumped) [ben@home ben]$ This is PHP4.0.4pl1 Ben Ben P

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Peter Skipworth
I'm afraid XML isn't going to help you - you need to investigate DHTML options, although you'll be lucky to find a solution which is compatible across both Netscape and IE. regards, P On Sat, 17 Feb 2001, Siim Einfeldt aka Itpunk wrote: > Hi everybody, > > I want to implement ordering somethi

Re: [PHP] Standard-Output

2001-02-18 Thread Ben Peter
Martin, you can either use the file 'php://stdout', which will open stadard output independant of platform, or access /dev/stdout, which is a symlink to the stdout stream of your process. Also, any output that is printed from PHP will be printed to stdout. Cheers, Ben Martin Thoma wrote: > >

[PHP] SMTP on IIS 5.0 Windows 2000 Pro

2001-02-18 Thread Peter Knif
Hi everyone, I'm trying to run a simple PHP e-mail script on my Windows 2000 Pro machine and I keep receiving Server Error. I tried the same script on a Unix server and it worked fine. Does anyone know what the problem might be? Thanks in advance. -- * Peter Knif * [EMAIL PROT

Re: [PHP] SMTP on IIS 5.0 Windows 2000 Pro

2001-02-18 Thread Peter Knif
I have SMTP = localhost It worked when I set SMTP = my ISP smtp server, but I want to make it work with the SMTP server on my system. Thanks. -- * Peter Knif * [EMAIL PROTECTED] "David Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] SMTP on IIS 5.0 Windows 2000 Pro

2001-02-18 Thread Peter Knif
I have Windows 2000 Pro SP1 and IIS 5.0. I'm using SMTP that came with IIS 5.0. -- * Peter Knif * [EMAIL PROTECTED] "David Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What mail server software is it t

[PHP] sending email problems

2001-02-18 Thread Peter Houchin
Could some one please take a look at this and offer any suggestions as to why i can't 1 send multiple "to" emails and also why i can't send to the addesses in the "CC" part (i can't send to either single or multiple in CC) This has got me baffled as to why i can

RE: [PHP] sending email problems

2001-02-18 Thread Peter Houchin
001 11:59 AM To: "Peter Houchin" Subject: Re: [PHP] sending email problems > Could some one please take a look at this and offer any suggestions as to > why i can't 1 send multiple "to" emails and also why i can't send to the > addesses in the "CC" p

[PHP] mail()

2001-02-19 Thread Peter Houchin
de is below Thanks in advance Peter Houchin /* recipients */ $address .= $email ;//insert a comma after $ email to include another address, email address taken from session varables $date = date("D M d, Y "); // Subject $subject = "VFSA-eRentals Calculation Results"; //Body

RE: [PHP] mail()

2001-02-19 Thread Peter Houchin
When i use Cc: name@domain it doesnt send any emails if i use CC it gives me the same result as cc, any other suggestions? -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:28 AM To: Peter Houchin; PHP MAIL GROUP Subject: Re: [PHP] mail

[PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
Hi all, is there a decent way to check whether a file is available on the include_path? The only soultion I have found is if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) { fclose( $fd ); /* ok, file is there */ } That one's not really nice, at it opens the file for reading. It would be bes

Re: [PHP] Re: sending variables

2001-02-20 Thread Ben Peter
No, PHP makes get variables available in $HTTP_GET_VARS. Thus, Rosen can access his variable as $HTTP_GET_VARS['rosen']. If register_globals is true, the variable is also available in the global scope as $rosen (as in Rosen's example). If this does not work, it would seem that register_globals i

Re: [PHP] PHP Variables across files

2001-02-20 Thread Ben Peter
Jay, to make variables.inc available from wherever you are, set the value of include_path in your php.ini or httpd.conf or .htaccess t something like ".:/path/to/where/variables.inc/is:/other/paths" as an alternative, use the auto_prepend_file directive to include variables.inc before any script

Re: [PHP] Strange behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Ben Peter
Yasuo, the function you call is > $msg = user_regist(); while in regist_util.inc, the function defined is > function regist_user() { Could that be the problem? Do you see any errors about undefined functions? Cheers, Ben Yasuo Ohgaki wrote: > > This is really strange. PHP fails to exit

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Ben Peter
Evan, I have no good answer to your problem, but probably you should have a look at Snoopy (snoopy.sourceforce.net), which implements HTTP posts, along with some other nifty functions and is very easy to use. Cheers, Ben "Montgomery-Recht, Evan" wrote: > > I'm working through geting the raw so

Re: [PHP] Redirect page

2001-02-20 Thread Ben Peter
Rosen, You have to make sure that nothing is output before the header function. Make sure that you neither employ an echo or print before, and have nothing outside of th ephp code (the part enwrapped in ), not even whitespace. You critical spot seems to be line 2 in go.php Cheers, Ben Rosen wro

Re: [PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
at. Thanks for the idea, Ben Michael Dearman wrote: > > Hi Ben, > I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"], > but apparently not. > > Could you just define your own $GLOBALS["my_include_path"] = > and use that with file_e

[PHP] Cache Problem

2001-02-20 Thread Peter Houchin
ache..." and I don't understand why .. because i thought i had this covered using this script if ($REQUEST_METHOD=='POST') { header('Expires: ' . gmdate("D, d M Y H:i:s", time()+1000) . ' GMT'); header('Cache-Control: Private'); } could some one please offer some suggestions Thanks Peter

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Peter J. Schoenster
> $select = new selectField("testje", $test); > echo$select->generateSelectField(); > > But all i get is a select box with the word Array in it 5 times...Thanks > for your time... Below is an example that works. I don't know from formElement. But why, why in the w

Re: [PHP] Paying Job...

2002-07-25 Thread Peter J. Schoenster
t, heck, give it, plenty of others will. Experience helps, understanding the nature of the client helps ... I'd suggest do whatever you have to do to get the job, you want the experience more than the money (possibly). Peter http://www.coremodules.com/ Web Application Software and Support at Affordable Prices -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT project dev prroces was .. Paying Job...

2002-07-25 Thread Peter J. Schoenster
s.com/process/doc_process.php Yes, some of that comes from some Proejct Management books I've read. I believe a system, even if flawed, is better than no system at all. NOTE, yes, I know some links are broken from that page. BTW, at the ad agency I worked at, we billed on a regular s

RE: [PHP] Close A Databse Connection

2002-07-26 Thread Peter J. Schoenster
nd use mysql_close(). If you are using a persistent connection then the call to mysql_close() should be overridden but I've got no clue if it's done that way. Seems to be related to opening and closing a file. In Perl the file will close when the script exits and that's fine

[PHP] what do you wish you knew then now?

2002-07-26 Thread Peter J. Schoenster
Hi, I'm still learning PHP. Against suggestions from most of this list I took the Brain Bench test and got in the Master category :) but even at RHIC I scored in the expert range on their test. It must be the similarity to Perl. Anyhow, I was wondering (and I've asked this in a different way

RE: [PHP] How to become a good PHP coder?

2002-07-30 Thread Peter J. Schoenster
e yesterday and then before we've even tested it we've got changes coming in ... thinking about what you are going to do and how you are going to grow it and test it are very important. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Matchmaking site

2002-08-08 Thread Peter J. Schoenster
used to source differen files, I think the original programmer (seems that at least 2 had a hand in it) just gave up. I've refused to work on some old stuff I wrote. Better to re-write it I said. Not so much a rewrite as a reorganize. If you spend time thinking how to organize your

Re: [PHP] Whois...

2002-08-12 Thread Peter J. Schoenster
ass provides a tool for querying Whois Servers Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] progress bar for uploading files

2002-08-16 Thread Peter J. Schoenster
checks to see if process X has finished, if so then redirect to the next step, if not then just return but upgrade the timer so you can increase your counter (perhaps a percentage in a table cell). Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Peter J. Schoenster
I don't see off the top of my bald head how to do that fork with the file-upload. But there is a mod_perl module which does this. It might give some clues to someone who will pursue this (not me :) http://theoryx5.uwinnipeg.ca/CPAN/data/Apache-UploadMeter/UploadMeter.html Peter

Re: [PHP] PHP IDEs

2002-08-21 Thread Peter J. Schoenster
ed PHP from a cli as I started as a Perl programmer) Opera, IE, Mozilla (mozilla and Opera make it easier to turn cookies on/off and view them and lots of other things) http://validator.w3.org/ (make sure the code adheres to a standard, I use the referrer as my html is never whole until you request a page) Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UPS Ship Rates avail? XML?

2002-08-21 Thread Peter J. Schoenster
you know? I think Amazon has done a real good thing here that might wake up some other companies. All this stuff was available years ago. Who's working at these big companies. Here is a site with lots of shipping info: http://shipping.langenberg.com/ Peter -- http://www.coremodules

[PHP] register_globals off or on, why on

2002-08-25 Thread Peter J. Schoenster
some tools I could use when working on apps that have more than 50 php files floating all over the place and no documentation. Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick -- PHP G

[PHP] Anyone use DB_DataObject

2002-09-05 Thread Peter J. Schoenster
e_dsn_md5] => [_database] => [_condition] => [_group_by] => [_order_by] => [_limit] => [_data_select] => * [_link_loaded] => [_lastError] => ) Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML Parser Question

2002-09-11 Thread Peter J. Schoenster
the tag , but the parser > keeps telling me that it's not formed correctly (because of the "<" in > the quotes). But < will most probably be displayed as < in the example the other person gave you, only the source view shows < Peter -- PHP General Mailing Li

Re: [PHP] PreCaching Db into Variables Slows it down?!??

2002-09-11 Thread Peter J. Schoenster
ll was well. Now Yahoo ... or Google ... that would be interesting. Why create a solution for no problem? I'd suggest looking at your templating system. Which one are you using? You didn't create your own did you? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can you recommned a simple banner rotator in PHP

2002-09-12 Thread Peter J. Schoenster
ystem, or you've used it and it works like a charm :) I would like something that has some statistics, works with MySQL, but they'd prefer a freebie or low cost. They don't need a super duper package at this time. Thanks, Peter http://www.coremodules.com/ Web Development and Su

[PHP] can you recommend PHP shopping cart

2002-09-18 Thread Peter J. Schoenster
o anything that uses Smarty. I'd like something that is as OO as possible. Something that's got all the core features and is then easy to extend as every customer has their uniqure requirements. Anyone got some suggestions? Peter http://www.coremodules.com/ Web Development and Sup

Re: [PHP] Calling on functions in a url

2002-09-19 Thread Peter J. Schoenster
$app_results[2]; // can be empty $body_file = $viewer->Merge($data,$template); $data['content'] = $body_file; $html_file = $viewer->Merge($data,'index.html'); Now I have just one html file which contains the pieces of my app to now be presented to whatever called it (w

Re: [PHP] Best Practice

2002-09-21 Thread Peter J. Schoenster
print $g->viewer->Merge($data,'print_index.html'); where print_index.html would have a different layout, perhaps minimal header and footer or none at all. Or you could do some processing on the data or whatever. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    12   13   14   15   16   17   18   19   >