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] Turck MMCache Feedback, Please

2003-08-15 Thread Jason Sheets
ng PHP I don't have Turck MMCache installed on and I have aeen a tremendous performance increase since I installed it. Jason Andrei Verovski (aka MacGuru) wrote: Hi, I am going to use Turck MMCache with Encoder. Anyone on the list have used it on Linux, MacOS X, Windows? Any caveats and/or si

Re: [PHP] Sessions

2003-08-16 Thread Jason Sheets
would be very expensive on the resources. If you are using Ensim this is the way it is setup and a few other environments I know of do the same thing. In this case changing your virtual /tmp ownership would not help Apache/PHP not being able to write to /tmp. Jason Curt Zirzow wrote: The

Re: [PHP] mod_php issues with security or stablility?

2003-08-17 Thread Jason Sheets
or it but you should be fine. On cavaeat is with CGI PHP can execute as the owner of the script, with mod_php it executes as the web server. Jason Lane Vance wrote: Hello, I work for a large web hosting company and we currently use php.cgi. We are considering changing to use mod_php. Is a

Re: [PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-19 Thread Jason Sheets
ethod just delete the key from the database once the download occurs, this will be less resource intensive because you aren't copying and deleting files on every download. Jason Jean-Christian IMbeault wrote: Jim Lucas wrote: actually, you should be able to do this without ever leaving the

Re: [PHP] HELP! I'm Desperate...

2003-08-19 Thread Jason Sheets
Why not go to a cybercafe every few days or once a week and check on the project? You can also go to Kinkos or your local library, most of them have internet enabled pcs. Jason Michael A Smith wrote: Hi, I'm going off to school and won't have computer access for like 9 months...

[PHP] Can't Send Mail in PHP/iis/Windows but no problems with ASP

2003-08-20 Thread Jason Lehman
Mail stop sending about a week ago from all of my php pages but my asp pages still can send mail. Also went thru telnet and sent mail and I have no problems. Does anybody know of anything I should be looking for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] UPS / USPS shipping algorithm

2003-08-20 Thread Jason Stechschulte
rent PHP scripts for calculating UPS and USPS shipping rates, but all of them I've seen so far expect the package size to already be calculated. -- Jason Stechschulte [EMAIL PROTECTED] http://www.enormousplow.com Immortality -- a fate worse than death. -- Edgar A. Shoaff -- PHP G

Re: [PHP] Re: naughty words / filter

2003-08-22 Thread Jason Sheets
Try using str_ireplace, it is str_replace but is case insensitive. str_replace and str_ireplace both can take arrays as parameters for the needle, replacement value. The string functions tend to be much faster than regular expressions, in any case you don't need the foreach.. Jason

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Jason Sheets
Someone wrote a php module that did this around 6 to 9 months ago. It was easy to install but you needed access to php.ini. Try using extract with the option to use references so you don't create a copy of the variable just a pointer to it. Jason Matthias Nothhaft wrote: Sorry this a

[PHP] vhost php_value include_path: Seg fault

2003-08-24 Thread Jason End
Using: - Apache 1.3.27 - PHP 4.2.3 I just changed my httpd.conf to have two virtual hosts. One of them uses php, so I added the include_path, but when I try to test the config I get a core dump. Here's the vhost section for the domain using php: [...] ServerAdmin [EMAIL PROTECTED]

Re: [PHP] In need of a script

2003-08-25 Thread Jason Sheets
die() after a redirect request because it is just that, a request that the client is not required to follow. Jason Wouter van Vliet wrote: Though no parse error, it can result in an notice about 'undefined index' .. I'd prefer Taking care of three things: - No undifin

[PHP] Displaying Multidimensional Arrays

2003-08-25 Thread Jason Williard
I am trying to create a function that will take a multidimensional array and turn it into a form based off the information in the array. I have run into a bit of a road block when it comes to displaying the array. Would anyone be able to offer some assistance on this front? - Jason -- PHP

[PHP] Re: Displaying Multidimensional Arrays

2003-08-26 Thread Jason Williard
I actually found a way of handling this on my own. Thanks. - Jason "Jason Williard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to create a function that will take a multidimensional array and > turn it into a form based off the information

[PHP] Too all who are stuck with PHP/Apache2 under RH8

2003-03-17 Thread Jason Young
the people who have previously posted this, but it's been a while since it's been said recently, I just thought I'd help out. --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] querying for values inside range

2003-03-18 Thread Jason Paschal
this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a site utilizing PHP/MySQL. i'm querying a table

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] Does PHP run better under any specific unix os?

2003-03-18 Thread Jason Sheets
under most operating systems, get bad hardware and it doesn't matter anyway. Jason On Tue, 2003-03-18 at 17:55, Charles Kline wrote: > Just wondering. I am trying to decide whether to build a FreeBSD server > or other... open to suggestions > > Thanks, > Charles -- Jason Sheet

[PHP] Posting Query Results to an HTML form

2003-03-18 Thread Jason Eley
send them to a texarea, the data is displayed correctly. Thanks, Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which is quicker, if-else statements

2003-03-18 Thread Jason Sheets
15% faster than APC for my applications (over 35,000 lines with over 25 classes). Turck comes with a nice web interface where you can disable the cache or optimizer and also view the cached scripts. Jason On Tue, 2003-03-18 at 20:38, -{ Rene Brehmer }- wrote: > On Wed, 19 Mar 2003 00:39:11 +0

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

2003-03-21 Thread Jason Sheets
is actually faster than APC as it both caches compiled PHP code and also does optimization (the benchmarks I've seen put it only slightly slower than Zend's products) but as of yet it does not support writing encoded PHP scripts. Jason On Fri, 2003-03-21 at 08:12, Darren Young wrote: &

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] sha1 hash in old php?

2003-03-22 Thread Jason Sheets
Chris Monson has written a pure PHP implemntation of SHA. It is available on PHP Classes at http://phpclasses.promoxy.com/browse.html/package/65.html. Jason Bill Kearney wrote: Anyone got a php script for generating sha1sum hashes from a short bit of text? Hi Bill, The target platform

[PHP] creating mailing list in php?

2003-03-22 Thread Jason Jacobs
their clients), which at this rate would take over an hour to send. Also, and I might just not be paying attention, but is there any word about this list going phpBB or the like sometime soon? That would be great. Thanks again for your help. -jason

Re: [PHP] Date Diff

2003-03-22 Thread Jason Sheets
/ref.datetime.php. Jason Adam - wrote: Greetings all, A while ago I was using asp and when I started using php the harder thing to learn was "Dealing with dates". There isn't a datediff function like asp.. Instead you have timestamps. Powerful it may be but a little hard

[PHP] array insert help

2003-03-22 Thread Jason Dulberg
ons are greatly appreciated! Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] array insert help

2003-03-22 Thread Jason Dulberg
ess']['city'][$i]; } The form fields are as you suggested as well. Thanks again! Jason > -Original Message- > From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] > Sent: March 22, 2003 4:05 PM > To: Jason Dulberg > Cc: [EMAIL PROTECTED] > S

Re: [PHP] Password Authentication

2003-03-22 Thread Jason Sheets
You can use a static salt from within your application though. Jason Justin French wrote: on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On 23 Mar 2003 Justin French wrote: I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for

Re: [PHP] SSL

2003-03-22 Thread Jason Sheets
-openssl you can use streams to post data over SSL, take a look at Example 2 at http://us2.php.net/manual/en/ref.stream.php. Jason Rodney Green wrote: Greetings! Is there a PHP function that will allow a script to connect to a web server using SSL? I would need to post data from a script to a remote

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

2003-03-23 Thread Jason Sheets
you may want to through some checking in there to make sure the file doesn't already exist but the chances of getting the same exact filename in the short time the file is required is fairly low. Jason Lars Tvedt wrote: Im trying to create a way of storing php scripts in a mySQL database, and

Re: [PHP] mail function

2003-03-23 Thread Jason Sheets
Hello John, Please make a copy of the file with a .phps or .txt extension so the code is not parsed by PHP. Thanks, Jason John Love wrote: The use of the standard mail(...) function is just not working and I would really appreciate some patient soul's time to access: http://www.u

Re: [PHP] require_once for php3

2003-03-23 Thread Jason Sheets
You could write a wrapper around the include function that uses a global array, each time it is called it checks the global array to see if the file has been included, if it hasn't it includes the file and adds the file to the array. Jason daniel wrote: hi there is a way to include files

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] help with preg_replace please

2003-03-25 Thread Jason Paschal
what that guy said, or use ereg_replace instead of preg_... From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] help with preg_replace please Date: Wed, 26 Mar 2003 14:08:44 +0800 On Wednesday 26 March 2003 13:59, Justin French

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] SHA-1 + RSA + base64

2003-03-27 Thread Jason Sheets
t; base64 The latter is not secure because you are using base64 which is not even trivial to decode. Jason Veniamin Goldin wrote: Hi all, I need some help, I have a request to encode string with SHA-1, then with RSA and at the end with base64, There no problems with SHA-1 and base64, but i can&

Re: [PHP] Re: redirecting a domain

2003-03-27 Thread Jason Sheets
Rather than redirecting to a seperate HTML file you can also use the PHP Header command, something like: http://www.domain.net'); exit; } ?> Dan wrote: On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown Sender) wrote: I have an apache question and I have NO idea where to

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] need a reliable PHP host

2003-03-27 Thread Jason Sheets
I recommend pair (http://www.pair.net) they have excellent staff, excellent accounts, an excellent backbone and they have been profitable since their second month in business they will let you host more than one domain on your account (with a setup fee). They also host a lot of open source mir

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] Is there a PHP for Dummies?

2003-03-29 Thread Jason Sheets
you would benefit from a good PHP book. O'reilly also has published a PHP book now as well. Jason Leif K-Brooks wrote: I've seen some PHP books, and honestly, the only book I might buy would be a printed copy of the PHP manual. It's more in-depth than most books. Exactly what

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] Detect Current Page

2003-04-01 Thread Jason Sheets
If you are intending to do this with PHP $_SERVER['PHP_SELF'] is a variable containing the file name of the script being accessed. Jason shaun wrote: Hi, I would like to display certain items on certain pages. Is it possible to detect the page i am going to and if so display an ite

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

<    5   6   7   8   9   10   11   12   13   14   >