[PHP] Email class

2001-12-15 Thread Gerard Samuel
Could someone recommend a good php email class. Im trying out class.phpmailer.php, but its not jiving right with me... Thanks -- 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

[PHP] File Download

2001-12-24 Thread Gerard Samuel
Hey all. Im trying out a script that where I can download the contents of a database as a dump. On a large database, the end get truncated. ie, there were still maybe 6-7 more tables more till the end out of maybe 100 tables. The behaviour is erratic. It is not consistent with where the dump

[PHP] Which is which??

2001-12-28 Thread Gerard Samuel
I got a fairly big script with a lot of functions. Which is more effiecient to pass global information to functions ie 50 variables 50 constants or 1 array with 50 values Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] php4 and PHPLib

2001-12-30 Thread Gerard Samuel
I came across an application sourcewell and it requires PHPLib. My server has php4 on it. I never played with php3 before (dont know if I want to), and I didn't see anything in its docs about php4 Is it possible to run this thing on a box with php4?? Thanks -- PHP General Mailing List

[PHP] Re: php4 and PHPLib

2001-12-31 Thread Gerard Samuel
of displaying phpinfo(). Anyone knows of any pointers of getting php4 to recoginise php3 files as php files. Im currently using apache 1.3.22, php 4.0.6. Thanks.. Björn Schotte wrote: Hi, * Gerard Samuel wrote: I want to), and I didn't see anything in its docs about php4 Is it possible to run

[PHP] regular expressions

2002-01-05 Thread Gerard Samuel
Need some help with this one. Dont know where to begin. I have content in a string and a constant that changes depending on if yourre in the root or in a directory. The purpose of the constant is to provide dynamic links. The string will have href links like a href=index.phpIndex/a I want to

Re: [PHP] array_shift and php 4.0.4

2002-01-10 Thread Gerard Samuel
), $regs); $c = explode(/, $regs[1]); ? On Wed, 09 Jan 2002 22:00:49 -0500, Gerard Samuel wrote: Hey all. Im putting together a script and Im having a couple people test it out. Here is a bit of code... $c = explode ('/', dirname($PHP_SELF)); array_shift($c); It runs fine on my box

Re: [PHP] array_shift and php 4.0.4

2002-01-10 Thread Gerard Samuel
Thats my biggest concern now, performance with whatever alternatives that can be dreamed up... Anyway, its 6 in the morning, time for sleep. Maybe Ill dream up something else [EMAIL PROTECTED] wrote: You are right, I should've known (used it before) .. Ofcourse you could do an

[PHP] Operators

2002-01-10 Thread Gerard Samuel
If != is the opposite of == What is the opposite of === ?? Thanks... -- 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] HTTP Server vars

2002-01-12 Thread Gerard Samuel
Hey all. I was wondering. Is it safe to use HTTP global variables ie $HTTP_POST_VARS etc in my scripts? Thought I read somewhere that they weren't safe. Got a lot of forms to work with, it sure would make life easier... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] form get method

2002-01-12 Thread Gerard Samuel
Hey all. I was making a menu, and I was using too many links, so I figure use a form with drop down lists. Im trying to use the form using the get method. echo 'form action=test.php?ft=first method=get'; It doesn't seem to behave correctly. Can one use test.php?ft=first in the action of a get

[PHP] An idea...

2002-01-14 Thread Gerard Samuel
Just want to bounce this idea off you guys/gals. Im looking to improve the security of my scripts. Now lets say, I initialise the script with a constant in the main config file that all the pages access. Then when Im accepting data from a form or maybe even a link I could do if

Re: [PHP] An idea...

2002-01-14 Thread Gerard Samuel
: how is that going to increase security? -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 11:21 AM To: php Subject: [PHP] An idea... Just want to bounce this idea off you guys/gals. Im looking to improve the security of my scripts

Re: [PHP] An idea...

2002-01-14 Thread Gerard Samuel
guess what I had in mind is along the lines of #2. What I had in mind was that each install would have a different value for the constant. So will others be able to see the source code, no not unless the webserver becomes compromised... -Original Message- From: Gerard Samuel [mailto

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Gerard Samuel
Is that supposed to be - $db = mysql_pconnect(localhost, bookorama, bookorama123); Jim Hankins wrote: I'm doing a simple database connection using the follow syntax: html head titleBook-O-Rama Search Results/title /head body h1Book-O-Rama Search Results/h1 ? if (!$searchtype ||

[PHP] Code Bulk

2002-03-26 Thread Gerard Samuel
Im in a debate with someone else. Basically were debating code bulk. This is just an example - ?php if (isset($run_this_code)) { echo $this-run_this_code; } echo 'Finished'; ? Now, if I understand php correctly, the whole script gets parsed, but since $run_this code isn't set,

Re: [PHP] Code Bulk

2002-03-26 Thread Gerard Samuel
/negligible - is speed, to the microsecond, important in this situation? -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 11:23 AM To: PHP Subject: [PHP] Code Bulk Im in a debate with someone else. Basically were debating code bulk

Re: [PHP] Re: Code Bulk

2002-03-26 Thread Gerard Samuel
like: print microtime(); include thatfile.php; print microtime(); and see how long it took to parse 3000 lines... one more line isn't going to make that much difference. On Tue, 26 Mar 2002, Gerard Samuel wrote: Actually, the file in question is 3000 lines long, 99% in functions. Im

[PHP] Loop, array, life....

2002-04-03 Thread Gerard Samuel
Ok, this one is breaking my back all day. First some sudo-code - fuction email_to_user() { $sql = 'select distinct(email) from user'; $emailfetch = mysql_query($sql); $sql = 'select news, date from news order by sid desc limit 10'; $newsfetch = mysql_query($sql); while

[PHP] Loop, array, life....

2002-04-03 Thread Gerard Samuel
(made a correction in sudo code) Ok, this one is breaking my back all day. First some sudo-code - fuction email_to_user() { $sql = 'select distinct(email) from user'; $emailfetch = mysql_query($sql); $sql = 'select news, date from news order by sid desc limit 10';

Re: [PHP] Loop, array, life....

2002-04-03 Thread Gerard Samuel
() call against that to reset it for the next time through the loop. Otherwise you'll just get a null result because you're already at the end of the data. -Steve On Wednesday, April 3, 2002, at 02:30 PM, Gerard Samuel wrote: (made a correction in sudo code) Ok, this one is breaking my

[PHP] Classes??

2002-04-04 Thread Gerard Samuel
Maybe a simple question. But can one file contain 2 or more classes?? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Classes??

2002-04-04 Thread Gerard Samuel
Yes true, but I have only written one class 3 weeks ago, and now Im about to go deep into it. I wasn't sure like down the line like 2 months from now that Im unable to extend it etc, because I didn't follow guidelines... Miguel Cruz wrote: On Thu, 4 Apr 2002, Gerard Samuel wrote: Maybe

[PHP] What's wrong with php??

2002-04-06 Thread Gerard Samuel
Well yesterday, my test box went down because of the powersupply failed. I replaced it today, and I just so happened to pull up a phpinfo() page, and it would display half the page and hang. The test site seems to be operating normally, but phpinfo page isn't like it should. I tried

[PHP] error handler

2002-06-04 Thread Gerard Samuel
/error.log'); if ($exit === TRUE) exit; } When I trigger and error with E_USER_ERROR, it executes error_display() but it continues to display the rest of the content for the page. I thought E_USER_ERROR stops execution of the script. Thanks for any input. -- Gerard Samuel http://www.trini0.org

[PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
(!feof($filehandle)) { $data .= fgets($filehandle, 1024); } } $cacheFile = fopen( _CACHEDIR. $cacheFile, w); fwrite($cacheFile, $data); fclose($cacheFile); fclose($filehandle); ? --- Does anyone see anything wrong with this code?? Thanks -- Gerard

Re: [PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
Oh I forgot to mention that its not writing any content to the cache file... Gerard Samuel wrote: Im trying to modify a script that fetches rss newfeeds. I was using fopen, but I decided to use fsockopen() for the timeout value. -- ?php $data = ''; $filehandle

[PHP] PEAR Benchmark other benchmark techniques??

2002-06-08 Thread Gerard Samuel
(Benchmark/Timer.php);| Warning: Failed opening 'Benchmark/Timer.php' for inclusion (include_path='.:/usr/local/lib/php') Also on a side note, I dont know much about benchmarking utilities, but what else is out there for windows/bsd?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
: I added a comment to the FAQ: http://www.php.net/manual/en/function.date.php -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
will be in identifying where the user is. Probably the only truly reliable way is to ask them to tell you what their time zone is. Pretty much every other method will result in a percentage of inaccurate reporting - the degree of error will be dependant on the method chosen. CYA, Dave -- Gerard

Re: [PHP] OO Question

2002-06-10 Thread Gerard Samuel
{ $this-two = new Two; $this-test = $this-two-test(); } } Can you do that? If so is that how you do it? Thanks. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regex

2002-06-11 Thread Gerard Samuel
. It is supposed to contain alpha numeric characters and '_' and '-'. Thanks for any input. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex

2002-06-11 Thread Gerard Samuel
Well Ive gotten (.*) and ([a-z]*[0-9]*_*-*) to work thus far as the first group. I would like to avoid option 1, and option 2 doesn't seem right Gerard Samuel wrote: Im expecting a string like foo.png. Im trying to replace 'foo' with another value that I have. Im trying this - $file

[PHP] printf()

2002-06-15 Thread Gerard Samuel
= 'should'; this('This %s work', $str); // work $str = 'is, a'; this('This %s just %s test', $str); // doesn't work So I guess, arguments passed to it has to be physical arguments, and not represented in a string. Am I banging my head on a wall with this?? Thanks -- Gerard Samuel http

Re: [PHP] printf()

2002-06-15 Thread Gerard Samuel
Well I figured out a solution. Using a combination of explode() to create an array from $bar, check to see if $bar is an array and feed the array to vprintf() Gerard Samuel wrote: Im trying to make a dynamic printf(). By that I mean - function this($foo, $bar) { if (strlen($bar

[PHP] preg_replace

2002-06-16 Thread Gerard Samuel
' as it supposed to be. Any help would be appreciated. Thanks ?php define('_L_OL_HERE', 'here'); $foo = 'a href=there.com=_L_OL_HERE=/a'; $bar = preg_replace('/(=)([A-Z0-9_])(=)/e', ' . constant($2) . ', $foo); echo $bar; ? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP

[PHP] Escaping escaped chars

2002-06-20 Thread Gerard Samuel
('/\', '/\/\/\', $data); Im getting - Unexpected character in input: '\' (ASCII=92) state=1 I guess my str_replace() isn't correct. Am I going about the right way to double escape them. Thanks. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http

Re: [PHP] Escaping escaped chars

2002-06-20 Thread Gerard Samuel
up with one too many which is what the error is referring to. ..micahel.. On Thu, 2002-06-20 at 10:59, Gerard Samuel wrote: Im trying to move some binary strings from mysql to postgresql, and the binary strings has escape chars '\' in them. I was told to double escape them like so

[PHP] Stumped.

2002-06-24 Thread Gerard Samuel
on and there is no 'white space' before or after ?php ? Are there any other reasons why header() would fail while output buffering is off. Im running php 4.2.1 on FreeBSD 4.5-R p6 Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http

Re: [PHP] Stumped.

2002-06-24 Thread Gerard Samuel
or after ?php ? Maybe Im missing something. I think Ill put it aside and look at it when the brain is fresh... Thanks Erik Price wrote: On Monday, June 24, 2002, at 04:15 PM, Gerard Samuel wrote: Are there any other reasons why header() would fail while output buffering is off. Hm

[PHP] fsockopen

2002-06-24 Thread Gerard Samuel
with a HTTP/1.1 400 Bad Request Any help would be greatly appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen

2002-06-24 Thread Gerard Samuel
Worked perfectly. Thanks. Evan Nemerson wrote: Try fputs ($fp,GET .$url[path]. HTTP/1.0\r\nHost: . $url[host] . \r\n\r\n); Your old request looked like GET / HTTP/1.0\r\nHost:value_of_host/\r\n\r\n, hence the 400. On Monday 24 June 2002 17:40 pm, Gerard Samuel wrote: Im trying

[PHP] base64_encode

2002-06-26 Thread Gerard Samuel
What other characters are possible from the output of base64_encode() except [A-Za-z0-9] ?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] base64_encode

2002-06-26 Thread Gerard Samuel
like + and /. 26+26+10+2=64 sounds right. HTH Andrew Braund -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:15 To: php-gen Subject: [PHP] base64_encode What other characters are possible from the output of base64_encode() except

Re: [PHP] closing a browser-window with php

2002-06-26 Thread Gerard Samuel
window at the correct location and the right size? thanks in advanced for your help!! nik crosina -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
/a I briefly looked through through the specs, but it didn't say that links/urls shouldn't be formatted like the first example above... Any insight, would be grateful. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
be used. You can omit the http:// and the host name if you like. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:40 PM To: php-gen Subject: [PHP

Re: [PHP] Re: Development Tools

2002-07-10 Thread Gerard Samuel
(http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Gerard Samuel
PROTECTED] -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Paying Job...

2002-07-25 Thread Gerard Samuel
may provide... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Gerard Samuel
Just catching up on my emails and saw this thread. Just a note that it didn't happen under FreeBSD 4.5-R p3 PHP 4.1.2 (Apache module) 386M Ram, PIII 450 box The script died after the max_time setting, and apache's children returned back to their happy go lucky nature all by themselves...

[PHP] if elseif else

2002-04-19 Thread Gerard Samuel
I redoing some code, and the original author has code like if elseif elseif elseif else I have always known it to have just one elseif, not multiple ones. I was going to move it to a switch/case, but there is no common switch. So I wanted to know if its technically ok, or just ok to use

[PHP] Image functions

2002-04-19 Thread Gerard Samuel
Im trying to modify a poll script to not use the hard coded image files and use php's image functions. On the file that will be outputing the poll graphics, I tried at the top of the page - header(Content-type: image/png); and header(Content-type: image/jpeg); For some reason, when the page is

[PHP] srand, array_rand

2002-04-19 Thread Gerard Samuel
Im trying to get a random value to select a random row out of *a* database. Not just mysql. array_rand would do me just fine, but Im reading in the manual - Don't forget to call *srand()* http://www.php.net/manual/en/function.srand.php to seed the random number generator. Im not too

[PHP] Question

2002-04-27 Thread Gerard Samuel
Is it possible to have PHP find out the ethernet's card MAC address?? I know that one can parse the output of dmesg or equvalent to find it out, but that would be OS platform specific code. I just want to know if php has a native way of finding out that information. Thanks Gerard -- PHP

[PHP] srand thought

2002-05-02 Thread Gerard Samuel
Quick question. Im using srand to seed array_rand in a script. I read that srand should only be called once per script under the srand manual page. Im using ADODB, and that also uses srand. Now should that warning be a literal warning or should that be 'use srand once per page'?? Thanks --

[PHP] gettext

2002-05-04 Thread Gerard Samuel
Hi all. Im trying to get gettext working. It is compiled in php 4.1.2 on a FreeBSD-4.5 p4 box. In the root of the webserver I have - ?php // User language here putenv(LANG=fr); putenv (LC_ALL=fr); // Specify location of translation tables

[PHP] ini_set()

2002-05-13 Thread Gerard Samuel
Im running php 4.1.2 on a test box, and Im doing some recoding on an application Im writing. The new version, I intend be be compliant with php new $_* global arrays. But I dont want to waste time redoing the old version, so I tried setting ini_set('register_globals', 1); at the top of the main

Re: [PHP] ini_set()

2002-05-13 Thread Gerard Samuel
I didn't know about the run-time issue, I guess I didnt see that. Thanks for the heads up... Jason Wong wrote: On Tuesday 14 May 2002 13:32, Gerard Samuel wrote: Im running php 4.1.2 on a test box, and Im doing some recoding on an application Im writing. The new version, I intend

Re: [PHP] ini_set()

2002-05-13 Thread Gerard Samuel
I think I remember that thread. Ill track it down tomorrow. Thanks Jason Wong wrote: On Tuesday 14 May 2002 13:43, Jason Wong wrote: Is there something else I can do so I can have the old scripts work while php is has register_globals off. As you're running your own server, set it

[PHP] switch and register_globals.

2002-05-14 Thread Gerard Samuel
Just looking for opinions/comments of how others are working with switch() while register_globals is off With register_globals off, switch() has a little handicap. ie switch($foo) { break; } $foo, is now illegal/not set. So far, I've been using this before switch statements.

Re: [PHP] Genus who came up with Self Destruct Code Copy Pro tection

2002-05-14 Thread Gerard Samuel
I like this idea... Collins, Robert wrote: IMHO The best way as a contractor to protect yourself against dishonest companies or people is a contract. However, there maybe a simple method to programmatically help. Put something like this in the top of each of the pages that have common

[PHP] class and error handling

2002-05-15 Thread Gerard Samuel
2 things that are foriegn to me. Im trying to construct a class to handle errors. I started out trying to make it recognise errors in the first place and then expand, but Im having difficulty. class.php ?php class eh { function eh() { error_reporting (E_ERROR | E_WARNING |

Re: [PHP] class and error handling

2002-05-16 Thread Gerard Samuel
these might help you Martin -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 3:52 PM To: PHP Subject: [PHP] class and error handling 2 things that are foriegn to me. Im trying to construct a class to handle errors. I started out trying to make

[PHP] remote fetching??

2002-05-16 Thread Gerard Samuel
I was about to modify a script that fetches files for xml content. It currently does so using fsockopen. I originally was going to use plain fopen, and I know that curl can also be used. Im looking for preferences as to use one method over another. Why one is better than the other etc.

[PHP] HTTP_ACCEPT_LANGUAGE

2002-05-17 Thread Gerard Samuel
Im looking to know how to handle it. HTTP_ACCEPT_LANGUAGE = en-us, en;q=0.75, th;q=0.50, yi;q=0.25 What are the 'q' values for? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Whats the best way?

2002-05-18 Thread Gerard Samuel
Well this is the first time actually creating a regex. It works, but was wondering if the regex was created properly. HTTP_ACCEPT_LANGUAGE is 'en-us, en;q=0.75, nl;q=0.50, fr;q=0.25' /* Explode the browser report to get each language */ $foo = split(',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); /*

[PHP] xml parsing

2002-05-18 Thread Gerard Samuel
I got this example from Beginning PHP 4. Unfortunately, I cant get to wrox's site to see if there were any errata updates for this piece of code, but for the life of me, I dont know whats wrong with it. All its displaying is '-'. If anyone could direct me to where its broken, Ill be very

[PHP] regex (preg_replace)

2002-05-18 Thread Gerard Samuel
Im trying to get a final output to be 'item' but Im unable to get working. Could someone point me where Im going wrong. Thanks ?php $a = 'item rdf:about=http://www.trini0.org;'; $b = preg_replace(/(item)(\s.*)()/i, $1 . $3, $a ); echo $b; ? -- PHP General Mailing List

Re: [PHP] regex (preg_replace)

2002-05-18 Thread Gerard Samuel
I figured it out. Change the last line to echo htmlspecialchars($b); and you'll get the proper output. Gerard Samuel wrote: Im trying to get a final output to be 'item' but Im unable to get working. Could someone point me where Im going wrong. Thanks ?php $a = 'item rdf:about=http

Re: [PHP] ob_gzhandler? (compression)

2002-05-19 Thread Gerard Samuel
If Im not mistaken, all the current and recent Micro$oft, Netscape friends support it. Jason Caldwell wrote: Is there a listing somewhere that shows which web browsers support gz-encoded web pages? Thanks Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] file functions and clearstatcache

2002-05-21 Thread Gerard Samuel
Im just double checking on the use of clearstatcache. I have a function that checks whether a file exists and loads it like so function foo($bar) { if (file_exists($bar)) { include($bar); } } According to clearstat cache, its use is for files that change often. In my

[PHP] php, files, character encoding???

2002-05-21 Thread Gerard Samuel
I was about to start putting together some code for a text editor. One of its requirements is that the files that it creates, must be able to be used in utf-8 char. encoded page. Then I started to wonder if php's fwrite() is character set aware. I did some preliminary searching, but I didn't

Re: [PHP] upload problem...

2002-05-21 Thread Gerard Samuel
Take a look at move_uploaded_file() http://www.php.net/manual/en/function.move-uploaded-file.php Jas wrote: Ok here is my error message: Warning: Unable to open '' for reading: No such file or directory in upload_done.php on line 9 I have checked permissions on the folder and they are correct,

[PHP] image_create(), header.....

2002-05-24 Thread Gerard Samuel
Im trying to use dynamic buttons, and Im trying to figure out how to get around the header call. I figure use output buffering, but so far Ive only come up with errors. Anyone see a better way or any errors in my code. Thanks nb: Uncomment the echo() statement to get the error.

Re: [PHP] image_create(), header.....

2002-05-24 Thread Gerard Samuel
-Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 2:37 PM To: PHP Subject: [PHP] image_create(), header. Im trying to use dynamic buttons, and Im trying to figure out how to get around the header call. I figure use output buffering

Re: [PHP] IMAGE CREATE() header problem

2002-05-24 Thread Gerard Samuel
Double check your file for the whitspace like the others have stated. I tried your example and had no problems with it... Dani wrote: Hi again, I have got this script : ?PHP //setup image $height = 200; $width = 200; $im = ImageCreate($width,$height); $white = ImageColorAllocate($im, 255,

[PHP] PHP new super globals or something else??

2002-05-28 Thread Gerard Samuel
I hope this makes sense to someone Im converting a script over to work with 4.1.x +. Im running php 4.1.2 on FreeBSD/Apache and I have 4.2.0 on w2k/IIS/Apache. I sent the script to a friend of mine who is running w2k/Apache with 4.2.0. He told me that the script isn't working for him but it

Re: [PHP] PHP new super globals or something else??

2002-05-28 Thread Gerard Samuel
' are in $_POST. For some reason, this is working on my boxes with register_globals set to off. Martin Towell wrote: code snippets would be good, if possible -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:46 AM To: PHP Subject: [PHP] PHP new

Re: [PHP] PHP new super globals or something else??

2002-05-28 Thread Gerard Samuel
to be with register_globals set to off. If its going to run on my box, it would be nice if it ran on everyone elses to. Lars Torben Wilson wrote: On Tue, 2002-05-28 at 18:05, Gerard Samuel wrote: Its a fairly long script but this is a basic rundown of the mechanics. some_page.php

Re: [PHP] PHP new super globals or something else??

2002-05-28 Thread Gerard Samuel
the database is set up to _dis_allow zero length strings... I'd suggest looking at the two database schemas to see if they're exactly to same -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 11:30 AM To: PHP Subject: Re: [PHP] PHP new super

Re: [PHP] File Upload

2002-05-29 Thread Gerard Samuel
set? Why doesn't this file get uploaded? Thanks! -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Post 4.1.0 PHP

2002-05-30 Thread Gerard Samuel
been covered repeatedly, I've only just rejoined the list after a break from the relentless volume (of great, useful info). TIA Michael Hall [EMAIL PROTECTED] -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0

[PHP] Class/Objects

2002-05-30 Thread Gerard Samuel
); $bar-tpl_obj-do_this_for_me($bar); ? It works but was wondering if its 'legal' to use it like this - $lcre-db_obj-run_some_code($bar); $lcre-tpl_obj-do_this_for_me($bar); Im not extending the classes, just using them, so is what Im doing ok?? Thanks -- Gerard

[PHP] Class/Objects

2002-05-31 Thread Gerard Samuel
-- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Class/Objects

2002-05-31 Thread Gerard Samuel
it makes more sense as you are passing a reference to $bar into $lcre - as long as your function is setup to accept this type of object and knows what to do with it. Mikey -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net

[PHP] php, javascript

2002-05-31 Thread Gerard Samuel
Just a general question. Is it possible to embed php in pure javascript/dhtml code?? I tried but it didn't work, not sure if it was me or its not possible. Thanks... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net

[PHP] cache control and cookies...

2002-05-31 Thread Gerard Samuel
back. The cookie's lifetime is 1 month. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] displaying client IP address

2002-06-01 Thread Gerard Samuel
help would be much appreciated. Hugo -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variable naming standards???

2002-08-13 Thread Gerard Samuel
A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger etc Thanks -- Gerard Samuel http

[PHP] Output Compression output buffering..

2002-08-26 Thread Gerard Samuel
get an empty page, instead of the expected error page or the page hangs, depending on the browser. Has anyone gotten both forms of output control to work together without ill side effects?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing

Re: [PHP] Re: Output Compression output buffering..

2002-08-26 Thread Gerard Samuel
? regards Eric Gerard Samuel [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] In an included file, I have an error handler that is using the 'output buffering' trick to dump a page in progress to display the error page. I also happened to have a switch to turn on output

Re: [PHP] flaking out on foreach

2002-08-27 Thread Gerard Samuel
; } ? Rendering only 6. That's it. Just 6. What am I missing here? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPSESSID appended to URL on initial page load

2002-08-27 Thread Gerard Samuel
by compiling with --enable-trans-sid. session.use_trans_sid = 1 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
ogle. Type: "procedural code" You might want to check, "object-oriented" as well... I'm sure, you'll find helpful explanations... - E And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trin

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
/BeginSQL/beginSQL2_1.html and http://www.wdvl.com/Authoring/DB/SQL/BeginSQL/beginSQL2_2.html There may be other contexts that the term procedural could be used in, and if so it may have other meanings that I am not aware of -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org

[PHP] regex help

2002-09-01 Thread Gerard Samuel
); print($str); ? Any help would be appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Info into Class

2002-09-03 Thread Gerard Samuel
() { .. function outside_data($bar) { $this-bar = $bar; } .. } // class constructor here ... $class-outside_data($php); ? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Comments in code

2002-09-11 Thread Gerard Samuel
it. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >