Re: [PHP] loop and write array

2003-08-03 Thread Jason Wong
On Sunday 03 August 2003 21:50, Micah Montoy wrote: > I can't figure out how to separate each keyword by the comma and then write > that specific keyword to an array to be used. Any and all help would be > appreciated. explode() -- Jason Wong -> Gremlins Associates -> w

Re: [PHP] FTP accounts

2003-08-04 Thread Jason Wong
tpserver you're running. Some may use the system accounts, others may have its own list of accounts, others still may use a dbms to store the account info. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 04:07, Haseeb wrote: > anyone here who created new user for Qmail with PHP? Yes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jason Wong
On Monday 04 August 2003 15:59, Ben C. wrote: > Yes. From there I want to add all the 'a' values together using PHP. So do it then. $total = $total + $myrow['a'] // or something as you go through the loop // is just one of the ways to d

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 05:36, Haseeb wrote: > i want your help. but as this is OT can we talk some where else. MSN may > be? 1) how you add users depends on how you have installed and configured qmail 2) google for > php qmail 3) check out omailadmin -- Jason Wong -> Gremlin

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
ou can't answer those two questions then no-one can help you. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 01:21, Ben C. wrote: > I tried the code you provided below but it returned 0. Is there another > way I can do it? Please post your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Ho

Re: [PHP] compiling php --with imap

2003-08-04 Thread Jason Wong
not find this file. It > has been removed. > > Can anybody "remind" me how to get this file again? I am lost, after trying > for 2 hours I gave up. Can anybody help me in this case? To get it from source http://www.washington.edu/imap/ But your best bet is probably to just insta

Re: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Jason Wong
iven a single row to play with. And has also been pointed out, could you state clearly: - what exactly you're trying to do - what your database schema is - what you tried that didn't work, and *how* it didn't work -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] Session ID as a regex

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 02:28, Gerard Samuel wrote: > How would you best describe a session id as a regex? > [a-z0-9]{32} > > Just checking to see if any other characters can be in a session id. I think [a-f0-9]{32} is sufficient. -- Jason Wong -> Gremlins Associates ->

Re: [PHP] Command line php....

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 11:11, John Nichel wrote: > 4.3.2 Try disabling output buffer in php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] Stop neurotic posting

2003-08-05 Thread Jason Wong
noying is that some helpers being really 'helpful' copy and paste whole chunks from the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-06 Thread Jason Wong
gle > php mirror sites -- 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] why doesn't default values for this function work - resending because of bad formatting

2003-08-06 Thread Jason Wong
e function when "no $max_length is passed"? If you're doing something like: secure_string($string, '', 'error msg'); Then inside your function $max_length will be equivalent to 0 (zero) and hence your comparison: if ($max_length > -1) will be true. -

Re: [PHP] Help with Mod mathematical function

2003-08-07 Thread Jason Wong
= (index Mod 16) > > Anybody have any ideas how I recreate this in php? Both data and index are > integers. manual > Operators -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] Piping and the CLI parser

2003-08-08 Thread Jason Wong
ments to a bash script, nor a php script. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list

Re: [PHP] FDF support in RedHat (make error)

2003-08-09 Thread Jason Wong
nwer them ok, if you > don't, thats ok too. ... having said that it is a refreshing change from the boring "register globals", "what is a good editor to use with php" type questions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source S

Re: [PHP] php source code//php-imap/ php-devel ..etc

2003-08-09 Thread Jason Wong
- mssql - gd - and more ??) There must be loads of tutorials that covers installation. Try "LAMP". > what exactly the php source code has packeges ??? Probably more than you need. Just decide what functionality you need, look it up in the manual and see what the requirements are.

Re: [PHP] FDF support in RedHat

2003-08-09 Thread Jason Wong
der file(s) and library file(s) into the correct places? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] Page URL from a inc?

2003-08-09 Thread Jason Wong
gt; a way to get what I need? See what you can find in $_SERVER. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Searc

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-10 Thread Jason Wong
es out whether sshd is running, if not start it. Further up the scale you can use xinetd. Even further, you can use something like daemontools to supervise your "must run" daemons. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] Stop neurotic posting

2003-08-11 Thread Jason Wong
achieve - what they have tried that (presumably) didn't work, and HOW it didn't work (error messages etc) it would make it easier to get a better response. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] info

2003-08-14 Thread Jason Wong
On Saturday 09 August 2003 06:57, Kevin Stone wrote: > domain: asiostudios.com [snip] Thanks. Much appreciated. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] mail() function failure

2003-08-14 Thread Jason Wong
ogs (ask your hosting company). -- 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

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jason Wong
When you go to the download page you *are* presented with a choice of mirror sites. Or are you saying that you cannot even get to the download page? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Jason Wong
ack onto the server using the 'siteuser' account. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list

Re: [PHP] Fw: mail() function

2003-08-14 Thread Jason Wong
> PHP and Apache config, the function just stopped working another day. Do > you have any idea, what could be the problem? PHP config. is available > here. Ask your provider to check the mail logs. Or find a replacement for mail() from www.phpclasses.org. -- Jason Wong ->

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Jason Wong
rotic posters (see recent thread) that RTFM really does work! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the

Re: [PHP] Piping and the CLI parser

2003-08-14 Thread Jason Wong
drwxr-xr-x 12 curt www512 Aug 6 14:31 ./ > piped: drwxr-xr-x 3 curt www512 Aug 2 13:58 ../ Like the OP said, piping to STDIN works as expected. However the OP was wondering why the piped stuff did not appear in $argv. -- Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP] how to auto create a new page on the fly

2003-08-14 Thread Jason Wong
system functions Repost if you have a more specific question. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] foreach help in search

2003-08-14 Thread Jason Wong
's in my url...how can i do > that with your sample code? str_replace() preg_replace() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Jason Wong
gestion. Almost always the rebuttal is that the people who are in a position to help would then mostly congregate to the 'advanced' list leaving the helpless to fend for themselves on the 'beginners' list. In other words its usually a BAD idea. -- Jason Wong -> Gremli

Re: [PHP] Max script size

2003-08-14 Thread Jason Wong
ith > the script unless the script isn't there. Let's be clear -- a DNS error has nothing to do with the script (whether it is there or not). In fact it has nothing to do with your webserver at all. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] Re: on specific time in the month do script!!

2003-08-14 Thread Jason Wong
On Thursday 07 August 2003 17:35, Nabil wrote: > No i think you get me wrong ... > i have already in my web page some articles that i don't want to desplay on > the first and second of every month at a specific hours... Have you looked at the "Date and Time functions"? --

Re: [PHP] Unzipping Files

2003-08-14 Thread Jason Wong
ieve this question was asked and answered already: http://marc.theaimsgroup.com/?l=php-general&m=106005561004363&w=2 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & In

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Jason Wong
a tutorial on how to use a computer/OS/compiler/whatever. For that there are better and more appropriate resources available. > Where is the unpacked distribution directory? Wherever you unpacked it I presume? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

Re: [PHP] Regular Expression

2003-08-14 Thread Jason Wong
itive. > > I got it working with 1 & 2, but it's still not matching 3. Any > suggestions? > > if(preg_match( "/p[\.]o\.* +box/i", trim($_POST['address'])){ >echo "Address is P.O. BOX"; > } Try: "/p\.?o\.?( )?box/i" -- Jas

Re: [PHP] Piping and the CLI parser

2003-08-14 Thread Jason Wong
est 'dir | echo.php', where > echo just implodes() $argv and echoes, gives no output. If all you're interested is in the results and not how you get there, then forget about $argv and just simply parse STDIN to get your 'arguments'. -- Jason Wong -> Gremlins Associate

Re: [PHP] Ignore session_auto_start

2003-08-14 Thread Jason Wong
in httpd.conf, .htaccess -- 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] Addin a column of numbers not using MySQL

2003-08-14 Thread Jason Wong
On Tuesday 05 August 2003 04:01, Ben C. wrote: > It still returns '0'. I think we are missing something. Any other ideas? > Anyone else have any ideas? My ideas are: 1) turn on FULL error reporting 2) print out all your variables at every step -- Jason Wong ->

Re: [PHP] Help Please in using fopen in PHP

2003-08-14 Thread Jason Wong
; creat a file for orders/orders or is i the script that will do it for me > authomatically. I am confused here. I will be glad if someone can help me > out. Thanks. manual > fwrite() for example on how to write to a file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Ope

Re: [PHP] Re: Sum a column of values from a MySQL query

2003-08-14 Thread Jason Wong
e single-quotes or double-quotes is irrelevant to the end result as long as they are used correctly. Luck has no part in determining whether your statement is correctly formed. I just want to point this out so the OP doesn't go barking up the wrong tree. -- Jason Wong -> Gr

Re: [PHP] Unzipping Files

2003-08-14 Thread Jason Wong
more information do you need to know? The manuals contains examples of usage, and if they're not enough then I'm sure there are tutorials you can google for. And now that you know about exec() and friends this is getting OT. -- Jason Wong -> Gremlins Associates -> www.gremlins.b

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Jason Wong
ed by root, once they've started they will (hopefully) ensure that sshd would be running, and auto-restarted whenever it is stopped (or in the case of using xinetd, whenever it is needed). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] Old version of PHP

2003-08-14 Thread Jason Wong
bugs in php but was afraid to ask. Whereas changelog, history, release notes will summarise what bugs were fixed between versions. None of these resources are called errata although some linux distros may present these as erratum (plural?). -- Jason Wong -> Gremlins Associates -> www.

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Jason Wong
ht to be using Apache 1.3.X as that is the recommended platform for running PHP. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] Old version of PHP

2003-08-14 Thread Jason Wong
ss if you need that function. So, if the host is being sensible and not just plain lazy then you should commend them for keeping your site running and not reprimand them for not upgrading willy-nilly. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sys

Re: [PHP] Old version of PHP

2003-08-14 Thread Jason Wong
On Saturday 09 August 2003 00:54, Dan Phiffer wrote: > Thanks for all the feedback, guys. Is there an errata page somewhere that > lists known bugs in the PHP interpretter? google > php bugs -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems In

Re: [PHP] [HELP] - Session_Unregister Not working

2003-08-14 Thread Jason Wong
first. -- 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.theaimsgrou

Re: [PHP] Re: Problem with pointer in result handle

2003-03-17 Thread Jason Wong
On Tuesday 18 March 2003 14:50, Blaine wrote: [snip] > So, what I need to do is move the internal pointer of the result handle > back to the first row of the result set. How can I do this? mysql_data_seek() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] instalation problem

2003-03-18 Thread Jason Wong
ou don't know where it is, use: find / -name apxs to find it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] (newbie)textareas ...someone...please help

2003-03-18 Thread Jason Wong
can't be > > changed. But the only way I know how to display data > > so that it can't be edited directly is in a normal table > > format or print. For the data that cannot/should not be changed, quite simply do not accept that value from the user. Just re-read its

Re: [PHP] storing files in database

2003-03-18 Thread Jason Wong
On Tuesday 18 March 2003 21:25, Michiel van Heusden wrote: > is there any possibility using PHP 4 to store entire files as a database > field in a MySQL database? > and if so, does anybody know a way, or a tutorial describing this? google > mysql store files -- Jason Wong -> Grem

Re: [PHP] random letter/character?

2003-03-18 Thread Jason Wong
this? Since the rand functions > are only for numbers, maybe assign each character group a number? chr() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intr

Re: [PHP] running PHP through command shell

2003-03-19 Thread Jason Wong
compiled with mysql support. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archiv

Re: [PHP] multiple php.ini files

2003-03-20 Thread Jason Wong
domain or per directory settings in either the httpd.conf file or in .htaccess files. And according to the manual you can even set session.auto_start dynamically from within php. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Sessions question

2003-03-20 Thread Jason Wong
to www.mine.com, but at > present the user is still logged in - and all variables are still set. The only way to be sure someone has logged out is to present them with a logout link which when clicked will clear the session. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] RE: templating question

2003-03-21 Thread Jason Wong
n the past -- search the archives. Considering that smarty seems to be highly rated yet you do not like its approach then probably the best thing is for you to try them all out and pick one that _you_ like. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
may cause problems of it's own. Bottom line is if your site requires to login you should make it mandatory that the user enables cookies on their browser. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 11:38, Justin French wrote: > on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote: > > Bottom line is if your site requires to login you should make it > > mandatory that the user enables cookies on their browser. > > mandatory seems a litt

Re: [PHP] Sessions question

2003-03-21 Thread Jason Wong
I want > this to be invisible - however this user decides to leave my site. It > appears though from the answers I have received - that this is not > possible You're right it is not possible and quite rightly so. I wouldn't want a site to know when I have 'left' th

Re: [PHP] [php] nomenclature

2003-03-22 Thread Jason Wong
On Sunday 23 March 2003 13:13, John Hicks wrote: > $result = mysql_query($sql) ; > ^ > while ($rec = mysql_fetch_object($results)) > ^ I think $row is more commonly used than $rec. And you have an extra 's' on the second $result. -- Jason Wong

Re: [PHP] Generated input names

2003-03-23 Thread Jason Wong
nd thus name them like: "form[BlackM]" "form[GreenXL]" etc Then I can just for-loop through $_POST['form'] (or $_GET['form']) to get everything single form element. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] overriding upload_tmp_dir

2003-03-24 Thread Jason Wong
using apache directives (if you're using apache of course). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search t

Re: [PHP] PHP Send Mail Main headers.

2003-03-24 Thread Jason Wong
t; Also the is over kill; a simple \n will do just fine. is not an overkill. That is the specs. Some MTAs (sendmail in particular) will treat a single LF (\n) as a line termination as thus you can get away with it. Stay with the spec and use (\r\n). -- Jason Wong -> Gremlins Associat

Re: [PHP] prepare() and execute()

2003-03-24 Thread Jason Wong
le doing the translation. google > php database tutorial -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the

Re: [PHP] hide multiple recipients

2003-03-24 Thread Jason Wong
iewable > in the "to:" field. > Is there some way to hide those e-mail addresses? Stick the recipients into the BCc header. See manual or try searching archives for "email header". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread Jason Wong
e is 0-59 check that second is 0-59 -- 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] Checking for existence of file

2003-03-25 Thread Jason Wong
u'],0,1); > } else { $img_pick = "1"; } > > echo ""; > > What I'd like to do is check the directory 'images' first to see if > 'mast_$img_pick.jpg' exists and if it doesn't, call a different image such > as 'mast_default

Re: [PHP] help with preg_replace please

2003-03-25 Thread Jason Wong
ce:]]*)([[:alnum:]#?/&=])!ei", " href=\"{$1}://{$2}{$3}\">{$2}{$3}", $str); You seem to be using ereg syntax in a PCRE function! Replace them with their proper PCRE counterparts. Eg to match alphanumeric: [0-9|a-z|A-Z] // off the top of my head, untested etc. --

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
On Wednesday 26 March 2003 15:28, Steve Jackson wrote: > Has anyone ever simply tried to pass information direct from the web > into a secure Intranet mysql DB rather than to a web DB? Haven't the faintest idea what you mean by "direct from the web" and "a secure Intranet mysql db" and "web DB".

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
; > > Did you actually do any research? I'm sure if you google for "mysql > > replication" or "mysql synchronisation" you would get > > thousands of hits. > > Yes I did but am not really understanding it which is why I asked here. > Sorry

Re: [PHP] Default setting garbage

2003-03-26 Thread Jason Wong
ide the function. This is what I have (or an > example, since I don't have it right in front of me right now): > > function func($a = 1, $b = 2) { > print("[$a]"); > } > > From the above example, I get [] as output. This works as expected: function func($a

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
il through STDIN 2) parse it 3) do whatever you need with the data How you invoke this script depends on what MTA you use. For example with qmail you just create a dot-qmail file with the following line: | /path/to/your/script.php Similar mechanisms exists for courier-mta and postfix. -- Jason

Re: [PHP] How do i valadate an email address?

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 14:44, Philip J. Newman wrote: > How would i check that an e-mail has the right parts in it. for example. > > username @ domain . ext You would check the archives because this has been covered more times than I have fingers to keep count with. -- J

Re: [PHP] Checkbox

2003-03-27 Thread Jason Wong
hen save the > file as an image file...hmm... > > and as you said, the effect will be the same to the user anyway Also different browsers on different platforms render checkboxes differently so your users will get some odd looking checkboxes. -- Jason Wong -> Gremlins Asso

Re: [PHP] Help on preg_split

2003-03-27 Thread Jason Wong
e to answer why. Try this: // untested, use at your own risk preg_match_all('/(\d){6}/', $str, $matches); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] Qmail question

2003-03-27 Thread Jason Wong
system uses -- 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.theaim

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jason Wong
; or > drwx--2 apache apache 188416 Mar 27 11:23 > /var/www/uploads > > daniel wrote: > >possibly a permissions problem , dir needs to be 777 and owned by httpd -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] Re: redirecting a domain

2003-03-27 Thread Jason Wong
domain.net. Any thoughs > >on how to do that? > > > >Sam > > The easiest way is to put this in you index.html file without the > comment markup of course. > > The best way if you don't really need the redirect is to use Apache's ServerAlias directiv

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Jason Wong
t a linefeed, on CPM/DOS-based systems > (that is, DOS & Windows), you need CRLF... This has nothing to do with the OS. It is to do with the specs (RFC-822). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Jason Wong
e in the early 1980's. Which genius anticipated the 'popularity' of Windows back then? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Jason Wong
e which contains the contents of your uploaded file. What you need to do is send the _contents_ of the file pointed to by $file_stream. Take a look at fread() and/or file(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] Benchmark

2003-03-27 Thread Jason Wong
re was another URL (probably the same site) that would tell me > everything I want to know about a particular server, for example mine: > http://delete.compcanlit.ca/ Probably the same. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrat

Re: [PHP] Connecting to a remote server

2003-03-27 Thread Jason Wong
ttp://'. And if both the webserver and the DB server are on the same machine you can continue to use 'localhost'. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appl

Re: [PHP] url rewrite

2003-03-28 Thread Jason Wong
> > into /news/articles/255/ -- 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 p

Re: [PHP] file

2003-03-28 Thread Jason Wong
n your code. > echo"hi?how are u doing??"; > $fp = fopen ("sandrew.html", "w"); > string="hii am > > fine"; > $contents=fwrite($fp,string); You need to use $string. > echo "'$contents'"; > fclose($fp); > ?> --

Re: [PHP] Connecting to a remote server

2003-03-28 Thread Jason Wong
original reply: > Are you talking about the database connection? If so, then there is no need > for the 'http://'. And if both the webserver and the DB server are on the > same machine you can continue to use 'localhost'. -- Jason Wong -> Gremlins Associates

Re: [PHP] mysql ending at start up

2003-03-28 Thread Jason Wong
a mysql support contract. -- 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] locate

2003-03-28 Thread Jason Wong
On Saturday 29 March 2003 15:14, Joseph Bannon wrote: > How do you update the locate database? > > /var/lib/slocate/slocate.db You really are taking advantage of people's generosity in answering your OT questions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

Re: [PHP] Importing emails

2003-03-29 Thread Jason Wong
for similar threads ('process email' or 'parse email'). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
you finally disclose that you're using trim() on the vital variables. Put simply, if you had posted your full and unadulterated code right from the start then this thread should/would/could have been resolved in about 2 posts. Saving time and frustration for everyone involved. -- Ja

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
on in installments (don't forget a teaser to whet people's appetite for the next episode). And yes, you can also look for another list if you want. These are all your choices. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * W

Re: [PHP] date() and mktime() functions: weeknumbers and months.

2003-03-31 Thread Jason Wong
lt;='$next_saturday'). > > But i would find it better to use a weeknumber instead If you're using mysql you can do something like: SELECT * FROM news WHERE WEEK(date) = some_week_number_or_another If you're using some other DBMS check whether it has some similar functio

Re: [PHP] Is_readable()

2003-03-31 Thread Jason Wong
On Tuesday 01 April 2003 12:28, Liam Gibbs wrote: > Is there anything I should know about is_readable? It seems to find a file > unreadable whether the permissions are 000 or 777. Check that whole path leading up to the file is accessible (+x) and readable (+r) by the webserver. -- Jaso

Re: [PHP] global var.

2003-03-31 Thread Jason Wong
s blah blah."); Line 5 > $id = mysql_insert_id(); In Line 2, $var will contain whatever $id contained in Line 1. IOW if the value of $id was not defined before Line 1, then $var will be similarly "undefined". Is that your intention? -- Jason Wong -> Gremlins A

Re: [PHP] month

2003-04-01 Thread Jason Wong
e('-',$date); > echo date('m', strtotime("{$y}-{$m}-{$d}")); > ?> I don't want to be awkward, but wouldn't $m be holding the required info already? -- ignoring the fact that you have an invalid date. -- Jason Wong ->

Re: [PHP] Is_readable()

2003-04-01 Thread Jason Wong
roper grouping and ownership in the same way (with > the appropriate commands). If you're positive that the permissions are correct then: 1) Check the user notes in the online manual 2) Try with a different version of PHP 3) Check whether or not it has been reportd as a bug (bugs.php.n

Re: [PHP] PHP Email Attachment problem

2003-04-01 Thread Jason Wong
y this is happening it is greatly appreciated. > **The sendmail is a custom function listed below also, not the one inherent > to PHP.** [snip] 1) How does the server setups differ? 2) How does your code not work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

Re: [PHP] getting values from objects

2003-04-01 Thread Jason Wong
("investigator5"); > > echo $myvar['field']; You can try: list($field1, $field2, ...) = $res_pform->getSubmitValue("investigator5"); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems In

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