Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Jason Wong
possible. Anyway who decides what is a newbie question? I don't think a newbie would be in a position to ascertain whether their question is considered newbie. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosti

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
even pay someone to write the code for you. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives b

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
e is not the reverse of > date. No, but it's not exactly hard to write a function to change DD-MM- into a timestamp. explode() should get you on your way, and examples abound in the archives. The thing with PHP is that you're not limited to using the built-in functions,

Re: [PHP] Date ranges

2005-01-24 Thread Jason Wong
you haven't been through this, and didn't bother to read what I said? > Thanks! Perhaps you should have made it clear, something along the lines of: "I don't want to know how to do it for myself. I just want some ready to use code, and I want it yesterday" -- Jason Wong

Re: [PHP] Attempting to use 'passthru' or 'exec' function

2005-01-23 Thread Jason Wong
thru() and exec() allow you to check the return value of the system command being executed -- use it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Is this even possible?

2005-01-22 Thread Jason Wong
t the appropriate entry in pg_hba.conf. > Any ideas? Hop over to the postgresql site and consult the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:28, Tamas Hegedus wrote: > define( HOST, 'localhost'); define('HOST', 'localhost'); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * I

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:11, Jason Wong wrote: > On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: > > I am pulling records from a MySQL DB. > > I am walking through the array using the whole. > > You do realise that doing this ... > > > if ( $r

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
here is no need for the IF). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post htt

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
ot > the right treatment. Do you have any idea? Suppressing notices/warnings/errors is never a solution. The solution is to not give them an excuse in appear in the first place. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sys

Re: [PHP] nl2br misprint

2005-01-21 Thread Jason Wong
;" Versions after 4.0.5 returns "" There is no misprint, you're just interpreting it incorrectly. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] regular expression help

2005-01-21 Thread Jason Wong
ion chk_mac( $mac ) { > if( eregi( > "^[0-9A-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-9A-Fa- >f]{2}\:[0-9A-Fa-f]{2}$", $mac ) ) { >return 0; > } else { >return 1; > } > } and wherever else. -- Jason Wong -> Gremlins Associ

Re: [PHP] Problem with hidden form input values

2005-01-20 Thread Jason Wong
[dib] => Array ( [dab] => dub ) ) ) ) ) Has worked for ages for me. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Int

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
On Friday 21 January 2005 03:21, Tim Boring wrote: > On Thu, 2005-01-20 at 13:41, Jason Wong wrote: > > On Friday 21 January 2005 01:52, Tim Boring wrote: > > > > Well the biggest problem in your code right now is your incomprehensible > > (to me anyway) use of the sw

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
hp Yes, but comparing those expressions to: switch ($line) where $line is a string, doesn't make sense. See my other post. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] Seemingly weird regex problem

2005-01-20 Thread Jason Wong
ve $line > case ($total_counter <= 5): I suspect what you want to be doing is something like this: switch (TRUE) { case ANY_EXPRESSION_THAT_EVALUATES_TO_TRUE: ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

[PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?

2005-01-19 Thread Jason Wong
orks even HOW does it not work? Did you RTFM on the limitations of opening remote files? > allow_url_fopen is true > > PHP 4.3.10 > Apache 1.3.27 > Platform Windows 98 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Problem with hidden form input values

2005-01-19 Thread Jason Wong
is copied from > 'Show Source' in the browser. > > > > > > > Any idea why they wont post? It *should* work. Maybe you're using a crappy browser (or a strictly standards only browser) in which case you ought to (and you should do this anyway) be using pr

Re: [PHP] Re: Persistent PHP web application?

2005-01-18 Thread Jason Wong
would you want somebody else to do that for you? > > [shrug] This thread is going around in circles like a headless chicken. If anyone wants to respond please read previous responses to see whether you have anything new to contribute. -- Jason Wong -> Gremlins Associates -> w

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Jason Wong
e were eventually -- internet mail is pretty robust. > Can > someone forward me responses to this post if any? Thanks. Chris archives ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Jason Wong
h'); Note also that if command executes correctly without error then 0 is returned and non-zero in case of errors. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Devel

Re: [PHP] question about a cron job

2005-01-17 Thread Jason Wong
ral refs about > cronjobs and not one of them mentioned this. > > So, if I put my 1 minute job first in the list, all should be well? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Ap

Re: [PHP] PHP date returns wrong value ??

2005-01-16 Thread Jason Wong
that block of code. 2) If there is no particular reason why you are storing the date and the time separately why not just use a DATETIME field? Then you can just use the builtin db function NOW(). Or, if that datetime never changes once assigned, you could even use a TIMESTAMP field. --

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jason Wong
On Friday 14 January 2005 21:48, Stuart Felenstein wrote: > When using $_POST vars is it required that a form is > used ? Better worded as "if you want to pass values from one page to another and you want said values to be available in $_POST then yes, you *have* to use a form".

Re: [PHP] regex help

2005-01-14 Thread Jason Wong
uick-n-dirty: preg_match_all('/(|)/iU', $doo, $match); Feel free to extend to check for closing tags :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &am

Re: [PHP] Data Enryption

2005-01-12 Thread Jason Wong
ste CPU cycles and doesn't give a false sense of security). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search t

Re: [PHP] weird upload problem

2005-01-11 Thread Jason Wong
[0] => image1.jpg > [1] => > [2] => image2.jpg > [3] => > [4] => > [5] => image3.jpg > ) Certainly looks like they're uplo

Re: [PHP] weird upload problem

2005-01-11 Thread Jason Wong
On Wednesday 12 January 2005 09:59, Sebastian wrote: > 2) if i attach an image to field 1, 3, 5 and skip the other fields only 1 > file gets uploaded.. How did you ascertain this? What does print_r($_FILES) show? Unless you're using a broken browser it *should* work. --

Re: [PHP] imagecreatefromjpeg

2005-01-11 Thread Jason Wong
blem. > > I wonder why it tries to allocate so much memory in teh first place since > the pics are not that big in size. the last one i tried was 300kb but had a > resolution of 2272 / 1704px. its really weird. That's because 2272 x 1704 x (3 bytes/pixel) = a lot of memory --

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
FF you have display_errors enabled. On a production machine display_errors should *not* be enabled. > Why does apache not server the 403 on the php > page? Maybe this is better off in the apache list. No idea. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sourc

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Jason Wong
Unknown on line 0 > Any ideas? Change the ownership of those files to that of the user running apache or make them readable by others (chmod o+r). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] Global class instances mysteriously set to NULL

2005-01-09 Thread Jason Wong
ut of it. But if you're saying that running the same code without changes repeatedly will give random results then *that* doesn't make sense. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Writing mulitple output lines to single line

2005-01-08 Thread Jason Wong
f lines > showing that is) Note that you'll have to keep track of line lengths so remnants from a previous iteration are properly overwritten. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems I

Re: [PHP] Using the OR operator in an IF statement

2005-01-08 Thread Jason Wong
gt; ?> You need to use 'AND' (or '&&'). Or you can use in_array(): $usertype = array('student', 'staff', 'admin'); if (in_array($_POST['usertype'], $usertype)) { // valid userty

Re: [PHP] String replace inside

2005-01-07 Thread Jason Wong
"base/image.php', 'src="image.php', ...) based on the assumption that 'src="base/image.php' only appears inside an tag. Otherwise: $doo = ''; $dah = preg_replace('|()|ie', '"$1".basename("$2")."$3

Re: [PHP] bizzare duplicate mail() call

2005-01-07 Thread Jason Wong
Your mail server logs. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-06 Thread Jason Wong
ne in httpd.conf. > So perhaps the real trouble here is that you need 2000 instead of 20M > in httpd.conf > > Trying to change upload_max_filesize in .htaccess (or with ini_set) will > be pointless. No, they _can_ be set there. IIRC this wasn't always the case, so if

Re: [PHP] endless while loop

2005-01-06 Thread Jason Wong
ext value" of $option controlled by the outer while-loop? > When I do > a print in that loop, I am getting the key value pair for the first element > in the $option array. So inside the inner while-loop, $option should never change. > Changing it to a for loop works. Any idea

Re: [PHP] Weird search and replace

2005-01-06 Thread Jason Wong
otes. Take a field in the record (#3) and replace #1 with it. > So basically, we have: > > "Yadda yadda yadda yadda supplanted-string yadda yadda yadda > supplanted-string yadda supplanted-string." (#2) It seems preg_replace_callback() would be ideal for this job. -- Ja

Re: [PHP] Image copying

2005-01-06 Thread Jason Wong
tion copy_pic($sourcepic) { >if(file_exists($sourcepic)) { > $destinationpic = imagecreatetruecolor(imagesx($sourcepic), > imagesy($sourcepic)); imagecopy($destinationpic, $sourcepic, 0, 0, 0, 0, > imagesx($sourcepic), imagesy($sourcepic)); } > >return $destinationpic; > }

Re: [PHP] Updated: Calendar Script

2005-01-04 Thread Jason Wong
om Or even your own website. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post h

Re: [PHP] handling large files w/readfile

2005-01-04 Thread Jason Wong
On Tuesday 04 January 2005 22:04, Robin Getz wrote: > Jason Wong wrote: > >Are you using the above code on its own (ie not within some other code > >that may affect the memory usage)? > > Well, herethe entire file (It is pretty short - only a 2 pages, but sorry > in adv

Re: [PHP] handling large files w/readfile

2005-01-04 Thread Jason Wong
> >need to look elsewhere because this code is definitely not the cause. > > Well, the test case is: > 1) above with big files = big apache processes - machine crashes Are you using the above code on its own (ie not within some other code that may affect the memory usage)? --

Re: [PHP] Always Include

2005-01-03 Thread Jason Wong
it would be easier if I could have it automatically > done. Is there a way in Apache or PHP (this is going to both lists) > that this can be accomplished, or should I just stick with my > require() statements? php.ini > auto_prepend_file -- Jason Wong -> Gremlins Associates ->

Re: [PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Jason Wong
you require. If this is for a production machine then it would be useful to have: --enable-memory-limit and enforce it in php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Ho

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Jason Wong
nfigure --help | less to see where exactly the installation will place your files. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] not gettingg desired results... is my programming logic run amuck...

2004-12-28 Thread Jason Wong
AttendanceReport() returns is solely dependent on: mysql_num_rows($dba['results']['attendance_report']) As I have hinted above you have to find out what code is setting $dba['results']['attendance_report'], what factors (variables) will affect tha

Re: [PHP] Function Default Values

2004-12-28 Thread Jason Wong
On Wednesday 29 December 2004 01:46, The Disguised Jedi wrote: > Can you not default to variables in a function? No. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Jason Wong
[type] => > [tmp_name] => > [error] => 6 > [size] => 0 > ) > > Doesn't make sense. Readme.txt is simply a small text file on my local HD. > > Note, type doesn't register either. Does upload work at a

Re: [PHP] Test, please ignore

2004-12-28 Thread Jason Wong
On Wednesday 29 December 2004 01:09, Steven Spierenburg wrote: > to see if i can post... If you have something to post why not just post it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Intern

Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Jason Wong
One possible explanation as to why it doesn't work within PHP but works with something else is that the target site looks at the user-agent in the request header and if it finds something it doesn't like (eg PHP) then it redirects the request to http://localhost/ or something. Th

Re: [PHP] not gettingg desired results... is my programming logic run amuck...

2004-12-28 Thread Jason Wong
F (TM)). BTW PHP is not an oppressive language at all :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the l

Re: [PHP] Re: negative numbers

2004-12-28 Thread Jason Wong
= 18.279228925705 sec; less overhead = 8.9312310218811 sec $doo = 20 Overhead = 7.9141719341278sec Ternary = 16.776551008224 sec; less overhead = 8.8623790740967 sec Abs() = 17.280977964401 sec; less overhead = 9.3668060302734 sec Conclusion if you know that all your values will be positive then

Re: [PHP] not gettingg desired results... is my programming logic run amuck...

2004-12-28 Thread Jason Wong
pposed to return > either a 0 if no report or invalid session id or 1 for is a report. > > function displayMenu($SID){ > echo "Print > Attendance Sheet \n"; > if(isAttendanceReport($SID)) > echo " "&get_switch=1\"> Print Attendance Report \n&q

Re: Fwd: Re: [PHP] How to delete text with replies for archive pages

2004-12-28 Thread Jason Wong
where the good luck comes in. Sorry if you misunderstood, I wasn't offering a solution (other than pointing out that you should make use of the standard signature separator), I was just pointing out how it is bad not to follow standards :) -- Jason Wong -> Gremlins Associates ->

Re: [PHP] How to delete text with replies for archive pages

2004-12-28 Thread Jason Wong
gt; lines and the > in front of them. What would be the > best way to do this? Look for the '-- ', otherwise good luck :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] Re: negative numbers

2004-12-27 Thread Jason Wong
have guessed, otherwise I wouldn't be posting this ;-) ternary = 14.67 secs abs() = 14.10 secs The moral of the story is: if speed is important to you always do your *own* benchmarking. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] emailing files...

2004-12-27 Thread Jason Wong
es that you want to attach. It also sounds like you haven't bothered to look very hard as google > email attachments php give you more than enough links to solve your problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] 4.3.7 array serialize problem

2004-12-26 Thread Jason Wong
array. In other words serialize() then addslashes(). Also you ought to be using mysql_real_escape_string() rather than addslashes(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicati

Re: [PHP] Next page every second

2004-12-23 Thread Jason Wong
s to use meta-refresh and construct the refresh URL appropriately (similar to how you are currently doing the "next" link). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appl

Re: [Fwd: [PHP] Problem of varibles between webpages]

2004-12-23 Thread Jason Wong
ing of php config ) ! You don't need to change any of the default settings in php.ini to make this work. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] Problem of varibles between webpages

2004-12-23 Thread Jason Wong
g must be disable ? $_POST is only available from version 4.1.0 of PHP onwards, and is enabled by default. If you're using any version older than that you *really* ought to upgrade. All this and more are in the link that you had been given, read it. -- Jason Wong -> Gremlins Associates -&

Re: [PHP] How do I underline a string using php and fonts?

2004-12-23 Thread Jason Wong
f doing it. > > Anybody know how to do "underlines" but using the font itself? If you can't get any joy using the image*() functions then you could take the scenic route: 1) compose your prose using the pdf_*() functions 2) then use something like ImageMagick's conversion

Re: [PHP] $HTTP_POST array

2004-12-23 Thread Jason Wong
ount->addAccount($HTTP_POST); > > i googled a lot on this but did not find any good code sample. Well the syntax you have looks OK, did you try it? Perhaps you meant to pass $HTTP_POST_VARS? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] stripping negative number

2004-12-23 Thread Jason Wong
seems the right format. Pls advise. You've misunderstood what the unsigned representation means. The correct function to use is abs(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosti

Re: [PHP] String: Arrays of arrays.

2004-12-23 Thread Jason Wong
You need to change it to this: print "\n"; See manual > Types > Strings (Complex syntax). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Jason Wong
On Thursday 23 December 2004 06:59, John Holmes wrote: > > Stop relying on RPMs and compile Apache + PHP from source. That way you > > can get all the latest bugs. > > Hmmm... I hope you meant "fix" the latest bugs... ;) No, fixing some of the known bugs is a bonus ;)

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Jason Wong
is there a way I can patch the source rpm to fix this vunerability? Stop relying on RPMs and compile Apache + PHP from source. That way you can get all the latest bugs. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Ho

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-22 Thread Jason Wong
olour for comments stop just before the ?>. And a quick check of the manual confirms that it is documented behaviour. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Deve

Re: [PHP] Sort by string length...

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 05:18, Russell P Jones wrote: > Any idea how to sort an array by string length? usort(), strlen() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 03:53, Richard Lynch wrote: > ?> can be caught by PHP as the end of PHP mode, no matter where you put it > in a string or not. You can't be serious? Or have I misunderstood you? '; ?> Works as expected, ie displays "". -- J

Re: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Jason Wong
he PHP function > ini_set No you can't. Well you can change it but it'll have no effect. Read manual on ini_set() to see what can be changed and *where* it can be changed. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
get mad cows disease? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://m

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
d rather be told if I was doing something wrong (and hopefully learn from that) rather than to be sent to Coventry. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications D

Re: [PHP] disable_functions per vhost on apache

2004-12-21 Thread Jason Wong
ge is two years old I would like to know if it's still > being true. > I have to allow system() for my control center script but I don't want > my users to use it. > How can I do it? For what can be set and where, outside of php.ini, look at the manual entry

Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 01:37, Paul Aviles wrote: > Guys, this is trivial. It takes the same effort to provide the answer to > whoever this guy was, than to lecture him on how to think. "Teach a person to fish ..." -- Jason Wong -> Gremlins Associates -> www.gr

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Jason Wong
can easily see where your quoted strings begin and end. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the lis

Re: [PHP] can I compile php source OT

2004-12-21 Thread Jason Wong
oogle > compile php source, is it that hard? What wisdom does it require? What experience does it need? Don't tell me the OP hasn't heard of Google? Think about it ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web D

Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
#x27;s probably because they *do* want to respond? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archive

Re: [PHP] Using encrypted passwords (what we would like to achieve)

2004-12-21 Thread Jason Wong
tabase. Like I said, you're storing the means to decrypt on the same system, so once someone gets in no amount of encryption will help. So basically encryption (for this purpose) is a waste of time and adds no value. Your best defence is to prevent them from getting in in the first pl

Re: [PHP] couldnt backup database

2004-12-21 Thread Jason Wong
r !== MySQL > ini_set ( memory_limit, "500"); > > but not working > > can anyone help me out with this problem.. If you have access to the shell then using mysqldump would be a far quicker and more robust solution. Otherwise try breaking your backup into smaller

Re: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Jason Wong
On Tuesday 21 December 2004 04:41, Anthony Baker wrote: > Either that, or is there a way to call this variable from the server > itself so that it's automatically -- and correctly -- set? Use a combination of one or more items from $_SERVER. -- Jason Wong -> Greml

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Jason Wong
to get into your system they would have the encrypted data and also the means to decrypt it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] Using encrypted passwords

2004-12-20 Thread Jason Wong
xt password is. In other words if I am able to read the file containing your password (whether encrypted or cleartext) then I can access your database. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Int

Re: [PHP] Current Member Check

2004-12-19 Thread Jason Wong
n manual > MySQL functions to see how to connect, query, and obtain results from MySQL, and how to check for errors. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develo

Re: [PHP] Fax Gateway

2004-12-18 Thread Jason Wong
On Saturday 18 December 2004 20:00, Neo Theone wrote: > I have to setup a HTML-Form to Fax Gateway and I am looking for some way > to do this in PHP. Generally have the Fax-Modem and nothing more right now. > Does anybody have any experiancs with this? hylafax -- Jason Wong -&

Re: [PHP] Mass mySQL update...

2004-12-17 Thread Jason Wong
ERE clause (or with WHERE 1) will update all rows. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list ar

Re: [PHP] Problem with loose typing

2004-12-17 Thread Jason Wong
ob = test())) { ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsg

Re: [PHP] in_array w/statement

2004-12-16 Thread Jason Wong
($uname['uid'], array(implode(',', $buddylist))); > } Here implode() returns a string containing 'buddy1,buddy2', then you stick that into an array() which is effectively: array('buddy1,buddy2'); // note that there is only *1* element Now unless your $u

Re: [PHP] Re: Getting mail() to return false/0

2004-12-16 Thread Jason Wong
ndmail is, for most people starting out, a better choice. The point of this is to emphasize that: - Sendmail is most definitely not the only choice of MTA - Sendmail is (IMO) definitely not the best choice of MTA - you don't need to know anything about Sendmail to be able to successfully use

Re: [PHP] smtp server

2004-12-16 Thread Jason Wong
On Thursday 16 December 2004 23:00, Mike wrote: > If you're on any of the *nix'es, it's hard to go wrong with sendmail. I think you mean it's hard not to go wrong with sendmail ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sys

Re: [PHP] smtp server

2004-12-16 Thread Jason Wong
free" smtp server on my own pc, and > then use it for the mail function. > What do you think of this idea? Would you recommend any free smtp server > currently available? Google should have some good answers for you if you ask nicely. -- Jason Wong -> Gremlins Associates -

Re: [PHP] Buffering

2004-12-16 Thread Jason Wong
output is the result of explicit echo/print. Then it's just a simple matter to store them into a string before you output it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Intern

Re: [PHP] Problem with array

2004-12-15 Thread Jason Wong
.gif"; > my problem is with $Esrb_Rate_Pic, i can't put its value to the array > , i used $row[Esrb_Rate_Pic] = $Esrb_Rate_Pic; but it didn't work That's because it should be: $row['Esrb_Rate_Pic'] = $Esrb_Rate_Pic; -- Jason Wong -> Gremlins Assoc

Re: [PHP] Cannot install IMAP server

2004-12-15 Thread Jason Wong
will happily compile and go on its merry way. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives

Re: [PHP] ftp_put() problem

2004-12-15 Thread Jason Wong
memory as a file. If you have a recent version of PHP you could use the regular filesystem functions to write 'directly' to an FP server. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Re: Getting mail() to return false/0

2004-12-15 Thread Jason Wong
On Thursday 16 December 2004 01:49, Richard Lynch wrote: > You now have the joy of diving into sendmail documentation. Have fun. :-^ There are better, easier to use and more secure alternatives to sendmail. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwar

Re: [PHP] PHP Question

2004-12-15 Thread Jason Wong
ads it may suffice. If your aspirations are a bit higher (and _if_ you want to stick with MS) then MSSQL is the better choice. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &am

Re: [PHP] getting a date 25 years back

2004-12-14 Thread Jason Wong
> $start_from = date("Y-m-d",strtotime("- ".$years." year")); > > Somehow it always ads the years instead of subtracting. Try: strtotime("$years years ago"); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] Google search indexing

2004-12-14 Thread Jason Wong
ill talking about search engines? Strictly speaking no search engine (crawler to be precise) should ever try to access a non-existent page. If you have moved pages around and want a search engine to still be able to access the now non-existent page then you should issue the correct HTTP heade

<    1   2   3   4   5   6   7   8   9   10   >