Re: [PHP] Help with select boxes

2001-12-22 Thread Andrew Brampton
I don't think what you want to do is possible.. and it is a HTML problem :).. Maybe JScript could do it by populating the dropdown once you click it, but I don't know if thats possible... Andrew - Original Message - From: Sam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday,

Re: [PHP] Client side fatal PHP error

2001-12-25 Thread Andrew Brampton
because the way is evaluated. if the first part of the expression is false, then it doesn't even attempt to look at the second part, meaning you get a fastest evaluation :)... I think its called Lazy Logic or something, I know its in the PHP Manual somewhere :) Andrew - Original Message

Re: [PHP] Store Image in Access Database

2001-12-27 Thread Andrew Brampton
Hi, You would pull it out using a normal SELECT SQL statement.. But I'm just writing this mail to warn agaisnt using a Access Database to store images. I used to do this for a ASP site, allowing users to upload their own images, and for everyone to view them. Anyway the database started running

[PHP] ob_gzhandler doesn't seem to be working

2002-01-05 Thread Andrew Brampton
I thought I would try out the ability to GZip my PHP pages, so that they would be sent quicker and use less of my bandwidth :) Anyway I have found the following tutorials and information on this: http://www.zend.com/zend/art/buffering.php http://www.php.net/manual/en/function.ob-gzhandler.php

Re: [PHP] IP address from which country

2002-01-08 Thread Andrew Brampton
No such table, the best you can do is look at their hostname and parse the last part ie .co.uk or .com... And then u can try and figure where they are from that Andrew - Original Message - From: Zhang, Leon (STHK/Zh) To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002

Re: [PHP] Event based applications?

2002-01-12 Thread Andrew Brampton
How do you plan to place stuff in a database without using a Server based page? I think you will need to use a combination of the 2. Make the JScript call PHP pages to do the handling of your events. Andrew - Original Message - From: Morten Nielsen [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] How to run sockets in Win32

2002-01-15 Thread Andrew Brampton
I tried with PHP4 a while ago to use Sockets on Win32, unfortually I found written in the documenation saying that sockets were not implemented on Win32 yet. Andrew - Original Message - From: Logan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 2:22 PM Subject:

Re: [PHP] my math stinks

2002-02-10 Thread Andrew Brampton
$answer = abs($pa - $pb) + $ca +$ps; No ifs :) Maybe I'm lazy, but I like 1 line statements Andrew - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 10, 2002 7:05 PM Subject: [PHP] my math stinks Hi All, This is the first time I have

Re: [PHP] db design

2002-02-15 Thread Andrew Brampton
I would make 2 tables, a product table and a language table... It would look like so: Product ID | product name | manufacturer | etc Then a language table that looks like: Language ID | Product ID | product description | etc Then you won't be replicated your 11 columns since they are not in the

Re: [PHP] Change gif image with php

2002-02-16 Thread Andrew Brampton
ya its completly possible.. I've never done it, but I'm sure I read how to over at phpbuilder.com Andrew - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Saturday, February 16, 2002 7:49 PM Subject: [PHP] Change gif image with php Hi list I

Re: [PHP] Email Verification

2002-02-24 Thread Andrew Brampton
It may of allready been mentioned, but why don't you just send out a Click The Link To Verify email... that way you are allways 100% sure the email addy works.. Just requires the user to follow a link Andrew - Original Message - From: Martin Towell [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ?

2002-02-26 Thread Andrew Brampton
You have made a jusification why they should stick with PHP 4.0.3, because they might have to re-code alot, and their clients might have to recode alot!. Also their admins may work on the principle that if it works why change. Andrew - Original Message - From: John Cuthbert [EMAIL

Re: [PHP] Unable to display images on browser

2002-03-01 Thread Andrew Brampton
if u have the data stored in the DB, just chuck the data out, with the correct mime-type header.. Andrew - Original Message - From: Narvaez, Teresa [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 01, 2002 8:41 PM Subject: RE: [PHP] Unable to display images

Re: [PHP] Unable to display images on browser

2002-03-01 Thread Andrew Brampton
/ddownloadfile.php?fileId=1 HTTP/1.0 for the request as normal Hope this helps Andrew - Original Message - From: Narvaez, Teresa To: 'Andrew Brampton' ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Friday, March 01, 2002 10:21 PM Subject: RE: [PHP] Unable to display images on browser

Re: [PHP] Accessing Mainframe

2002-03-05 Thread Andrew Brampton
When you say accessing, how do you mean? Access the file system? Access a service running on the Mainframe? Please be a little more specific Andrew - Original Message - From: Sridhar Moparthy [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:15 PM

Re: [PHP] Accessing Mainframe

2002-03-05 Thread Andrew Brampton
[EMAIL PROTECTED] To: 'Andrew Brampton' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:50 PM Subject: RE: [PHP] Accessing Mainframe Thank you Andrew for the reply! Actually I have requirements for booth. I also have a requirement to access the DB2 databases and VSAM files

Re: [PHP] Dan...

2002-03-06 Thread Andrew Brampton
Can you please move your private conversation with Dan off the list... Send a email direct to him, Andrew - Original Message - From: GENESiS DESiGNS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 06, 2002 11:09 AM Subject: [PHP] Dan... Dan, I tried using the username

Re: [PHP] HTML Buffer

2002-03-08 Thread Andrew Brampton
flush() outputs everything in the buffer, and I think U can turn buffering off completly, but I'm too lazy to open my PHP chm help file ;-) andrew - Original Message - From: Mario Montoya Martínez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 5:48 PM Subject: [PHP]

Re: [PHP] How to remove ^M characters from a directory?

2002-03-26 Thread Andrew Brampton
Whats showing the ^M? a Linux Editor? Well the ^M are part of the newline code on windows. There are programs out that which will strip them, The only one I have personally used is UltraEdit (but thats a general all purpose text/hex editor). But I'm pretty sure there are linux command line

Re: [PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread Andrew Brampton
If you can use CGI there are 100s of perl ones, like UBB which don't use a database engine Andrew - Original Message - From: MiXmAsTeR [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 12:44 PM Subject: [PHP] Forum with PHP, without using mySQL.. Hi, I run a Sports

Re: [PHP] Please help with code

2002-04-01 Thread Andrew Brampton
You are not actually posting the form to a page with your PHP on... so its trying to insert that form into your DB before u actually fill it out. either check if the form has been posted before running your PHP, or split this into 2 pages Andrew - Original Message - From: Denis L.

Re: [PHP] Custom 404

2002-04-02 Thread Andrew Brampton
.htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 1:36 PM Subject: [PHP] Custom 404 Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP FAQ (again)

2002-04-03 Thread Andrew Brampton
Small flaw in this. The new user would have to actually go and read the FAQ... I'm a member of many lists, and I've never read the FAQ about the list... but I've allways been aware that posting newbish questions is frowned on, so I never did so. So unless the FAQ was placed infront of them when

Re: [PHP] closing a security hole on user accounts possible? - confirming accounts - history function

2002-04-03 Thread Andrew Brampton
This comes up on the list again and again. Force the person to logout, so that the session is closed... check the posts in the past week for other suggestions. Andrew - Original Message - From: andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 6:16 PM Subject:

Re: [PHP] Using ob_gzhandler

2002-04-04 Thread Andrew Brampton
I would guess before any output to the browser... so nearer the top the better Andrew Daniel Swarbrick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can someone please confirm the correct place to call ob_start(ob_gzhandler) in a script? I am using sessions

Re: [PHP] Using ob_gzhandler

2002-04-04 Thread Andrew Brampton
(), or any other headers for that matter... Andrew Brampton [EMAIL PROTECTED] wrote in message 012401c1dbd9$c4266000$0100a8c0@STUDENT5830">news:012401c1dbd9$c4266000$0100a8c0@STUDENT5830... I would guess before any output to the browser... so nearer the top the better Andrew Daniel S

Re: [PHP] nl2br returns BR /? normality or a bug?

2002-04-05 Thread Andrew Brampton
br / is that XML style newline or something... Don't worry about it, it parsed the same as br Andrew - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 1:13 AM Subject: [PHP] nl2br returns BR /? normality or a bug? I've

Re: [PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread Andrew Brampton
Yes you can place one in a style sheet you just need to tell apache (or whatever) that .css should be parsed by PHP, this can be done via a .htaccess or something similar... Here is a example in a .htaccess file: AddType application/x-httpd-php .css andrew - Original Message - From:

Re: [PHP] Is this a BUG?

2002-06-23 Thread Andrew Brampton
If the code is in a function then don't you need to call global $HTTP_POST_VARS; at the top of the function so that it knows you can use that varible? Andrew - Original Message - From: César Aracena [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Sunday, June 23, 2002

Re: [PHP] PHP with IIS

2002-06-24 Thread Andrew Brampton
Does the user to which ISS runs under have network permissions to access p:\ ? IIRC you need to set up ISUR_machine_name to have permission to the remote share. Andrew - Original Message - From: Dave Leather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 6:29 PM

Re: [PHP] Design Tips

2002-06-26 Thread Andrew Brampton
Not so long ago (well last week), I wrote a PHP proxy script which worked in the form: www.myserver.com/proxy/www.whatever.com/blah and it would request the page www.whatever.com/blah and then display it changing all the links on the page to point to my proxy script... The whole script took a

Re: [PHP] [more info] Finding all instances

2002-06-30 Thread Andrew Brampton
Well I'm not good enough at SQL to do this, but how about you get PHP to figure out all the combinations, ie 1, 3, 5, 2, 6, 52, 32, 321, 51, 61, 21, 31 Then do a set of SELECT * FROM table WHERE number=1 SELECT * FROM table WHERE number=3 SELECT * FROM table WHERE number=3 OR number=1 Then

Re: [PHP] upgrading php...

2002-07-02 Thread Andrew Brampton
Takes the time of the download + 5minutes Download the full version of php... extract the zip file to where php is currently... then copy the new versions of php.ini and php4ts.dll into your c:\windows\ directory... Then make any minor changes you need to to the php.ini and voila all done (don't

Re: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ

2002-07-09 Thread Andrew Brampton
If you read the 3 emails he sent previous to his spam you will see that he tried to get the moderators to remove him but after 6 hours he is still on the list, so I guess he thinks that if he starts to spam he will be kicked Andrew - Original Message - From: Rodolfo Gonzalez [EMAIL

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Andrew Brampton
the $HTTP_USER_AGENT varible contains nothing... Try doing a phpinfo(); to see what the correct varible to use is, it is most likly $_SERVER['HTTP_USER_AGENT'] since the way these varibles are handled changed a few versions ago Andrew George Hester [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] ob_start

2002-07-14 Thread Andrew Brampton
I don't think you need to do the if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { because ob_start(ob_gzhandler); checks to see if the browser will accept gzip content before gzipping it.. But I think the reason that it isn't working for you is that you don't have the correct compression

Re: [PHP] Poor results with GD

2002-04-15 Thread Andrew Brampton
They looked ok to me, but I don't know what the orginals looked like. But the problem might be that your JPeg quality is set lower than you would like. You can increase it be setting a parameter in ImageJPEG() or most likly whatever function you are using Andrew - Original Message -

Re: [PHP] web spider?

2002-04-15 Thread Andrew Brampton
You most certainly can use PHP to do this. And if i'm not wrong I think there are allready scripts which do this (which wouldn't be too hard to hack up for yourself) Check out hotscripts.com Andrew - Original Message - From: Ryan Govostes [EMAIL PROTECTED] To: PHP People [EMAIL

Re: [PHP] PHP browser uploads = PASV?

2002-04-16 Thread Andrew Brampton
If you are uploading a file with php then you are using a http connection NOT ftp... so PASV doesn't come into it at all. PASV is a FTP command not http. and if you did try and compare them, then http is passive (ie no connections are tried to be made to the user with the browser). Andrew -

Re: [PHP] php in a layer trouble

2002-04-24 Thread Andrew Brampton
If you mean a layer as in a layer tag, then Netscape or any other browser shouldn't know or care that it was PHP. PHP is server side therefore the client knows nothing about the PHP or what jobs went on at the server... You most likly have a bug in your HTML that netscape just doesn't like to

Re: [PHP] HTML in PHP

2002-04-28 Thread Andrew Brampton
echo mysql_result($result,$i, NAME);br should be: echo mysql_result($result,$i, NAME) . 'br'; Andrew - Original Message - From: Christian Ista [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 28, 2002 2:51 PM Subject: [PHP] HTML in PHP Hello, I have a newbie question

[PHP] SQL Query (Group By)

2002-04-30 Thread Andrew Brampton
Hi, This is more a SQL question that a php one, but here goes: I have a table with 3 fields, Date, IP, ISP. Basically I have written some php to store the following in the table each time someone hits a page on my site. Now I want to display some info about the users currently on my site, but

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Andrew Brampton
You can put your error level up to show you when you try to use a varible that hasn't be initalised yet, I tend to do that to ensure good coding, and that I don't mistype varibles etc Andrew - Original Message - From: Andy Arbon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

[PHP] reg exp problems

2002-06-01 Thread Andrew Brampton
Hi, I've never used a reg exp, but I was trying to do something simple, and I just can't seem to do it :) I have a varible $fdata which contains the contents of a webpage, and I want to strip out the base tag. I try: $fdata = preg_replace(base.*,,$fdata); But its stripping out everything

Re: [PHP] reg exp problems

2002-06-01 Thread Andrew Brampton
: [PHP] reg exp problems On Saturday 01 June 2002 23:56, Andrew Brampton wrote: Hi, I've never used a reg exp, but I was trying to do something simple, and I just can't seem to do it :) I have a varible $fdata which contains the contents of a webpage, and I want to strip out the base tag

Re: [PHP] Smart URLs

2002-06-02 Thread Andrew Brampton
You can do this with just PHP, but I think php must be installed as a module. Basically place a file called thumbnails.php in your site route, then whenever a URL like mysite.com/thumbnails/funny/4 i called the thumbnails.php is excuted, in which you chop up the URL, and find all your varibles...

Re: [PHP] Smart URLs

2002-06-02 Thread Andrew Brampton
Hey try it, it works when are running the PHP Module in apache. I have a server with proxy.php yet I access it via myserver.com/proxy/whatever and it works with no special changes to the config files. Andrew - Original Message - From: Adrian Murphy [EMAIL PROTECTED] To: Andrew Brampton

Re: [PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Andrew Brampton
Just install apache (for windows), MySQL (for windows), and PHP... voila a local webserver, and the only way to view your pages, no need to upload since you can point your webserver to where you are developing your php. andrew - Original Message - From: Marcus Unlimited [EMAIL PROTECTED]

Re: [PHP] php3 to php4 migration woes

2002-07-31 Thread Andrew Brampton
Since 4.1.? the way things worked changed... Instead of using $album you need to use $_GET['album'] you can default back the old behaviour with a php.ini change, but the new way is prefered andrew - Original Message - From: Bruce Riddle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] .htaccess

2002-08-02 Thread Andrew Brampton
place a phpInfo() page behind the .htaccess and you will see what varibles php has :) I'm pretty sure there is ones contianing the username/password that was entered Andrew - Original Message - From: Oliver Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 3:21

Re: [PHP] PHP Hosting

2002-08-02 Thread Andrew Brampton
This has been discussed in great detail before.. but the simplist solution is running PHP in safe mode, it does limit the user to certain things, but it stops them bringing the server down or altering others files andrew - Original Message - From: Matt Babineau [EMAIL PROTECTED] To:

[PHP] Safe Mode seems to turn on and off randomly

2002-08-03 Thread Andrew Brampton
Hi, I was discussing with a friend at a webhost I use and they have been experience a wierd problem recently with their php safe mode, I went to help and after spending a while in the bug database I couldn't find anything to explain it. Basically every time you view a phpinfo page it will

[PHP] Vote to ban Acer

2002-08-03 Thread Andrew Brampton
Ok, I'm not a professional PHP developer, I'm just a plain student that loves PHP, I don't have the money to spend on Encoders and high end IDEs or whatever is out there, I just love the fact that I have a near unlimited supply of software out there which free to use, comes with source, and

Re: [PHP] which function can do so ?

2002-08-04 Thread Andrew Brampton
I read his question as wanting to know how to figure out the URL of his site, use the varible $_SERVER['HTTP_HOST'] or $HTTP_HOST on old PHP versions, that will return the full domain, from the www. to the .com so you may want to do some spliting of that varible to figure out what just the bit in

Re: [PHP] Case Sensitivity

2002-08-11 Thread Andrew Brampton
Linux file systems are case sensitive... So the file Hello.php is different to hello.php... Both can exist at the same time and contain different content, but they are different...On the windows file system files aren't case sensitive so Hello.php would be the same as hello.php... So I suggest

Re: [PHP] Making PHP faster?

2002-08-12 Thread Andrew Brampton
I don't know any good ways of making PHP go faster, but may I suggest that the time you use in coding and figuring out ways to make PHP faster would be greater than the time you have saved by using such features... If this is a one of thing I think 30minutes is better than 15minutes plus

Re: [PHP] PHP-Ebay Interface

2002-08-13 Thread Andrew Brampton
Well not a legal idea no :) Andrew - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:52 PM Subject: [PHP] PHP-Ebay Interface Anyone have any idea how to easily interface with the Ebay engine other then with the expensive

Re: [PHP] requesting sites running OS X

2002-08-13 Thread Andrew Brampton
A good reference I can point you to is Netcraft.com, they record what OS/Webserver 1000s of sites are using, you can type in a website name and it will tell you all sorts of stats... Usally it will also tell you other similar sites running on the same OS and or Server... but for some reason it

Re: [PHP] Shared network server failing to include files

2002-08-14 Thread Andrew Brampton
Hi, I don't think this is a PHP question, but the line Alias /cs/ //192.168.0.253/apachedir/ try Alias /cs/ \\192.168.0.253/apachedir/ Because //isn't valid for UNCs, but \\ is.. If this doesn't work, then with dos map \\192.168.0.253/apachedir/ to a network drive and point apache at that

Re: [PHP] A Doubt!

2002-08-19 Thread Andrew Brampton
In the php.ini file there is somewhere to set the smtp server to use if you don't have sendmail... Look for that and that might help Andrew - Original Message - From: Thiruvelraj Pokkishamani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 19, 2002 5:55 PM Subject: [PHP] A

Re: [PHP] exec problem

2002-08-27 Thread Andrew Brampton
If you are trying to receive the output of the command line you can use the backtick notation $list = `ls`; Hope that helps Andrew Mark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm basicly trying to execute an executeable with this following script.

Re: [PHP] Does this call for an array?

2002-08-28 Thread Andrew Brampton
It calls for a intermediate table. You need 3 tables: pf_survey, categories and survey_cat They look like: pf_survey survey_id, Questions, Whatever, but no categories fields categories category_id, category_name survey_cat survey_id and category_id for each record in pf_survey you will have

Re: [PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread Andrew Brampton
the striptag function is what I think you want, it just removes all HTML tags and returns whatever is left php.net/striptag Andrew - Original Message - From: Charles Fowler [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:58 PM Subject: [PHP]

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread Andrew Brampton
I can't seem to see a pre-built functions but here is one I just wrote in my email client: function average($numberArray) { $sum = 0; for ($i=0;$icount($numberArray);$i++) $sum += $numberArray[$i]; return $sum / count($numberArray); } echo average(array (1,2,3,4,5)); Hope

Re: [PHP] few things...

2002-08-31 Thread Andrew Brampton
comments inline - Original Message - From: Matt Zur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 4:40 AM Subject: [PHP] few things... First of all... I'm a bit confused is there really a difference between echo and print? They seem to do the same thing?

Re: [PHP] Download site down?

2002-08-31 Thread Andrew Brampton
It seems that php.net does load balancing of its downloads and every time you open the downloads page it displays downloads from different mirrors... so keep refreshing http://www.php.net/downloads.php until you find a mirror which works for you. Usually all the mirrors work first time but I did

Re: [PHP] whois query

2002-09-12 Thread Andrew Brampton
If you can't do a exec or system call on your server, then look at the many examples of whois scripts here: http://www.hotscripts.com/PHP/Scripts_and_Programs/Networking_Tools/Whois/ some of which use sockets or other methods which might be allowed on your server Also for reference,

Re: [PHP] Download the whole directory

2001-10-21 Thread Andrew Brampton
U can either use something to zip the whole directory up, and then download that 1 zip file. OR You could use some JScript or something to make X number of windows popup, each with a file to be saved... Other than that I'm not sure what u can do... Unless you generate GRX files or similar things

Re: [PHP] Error POP3 Class

2001-10-23 Thread Andrew Brampton
I had the exact same problem with another class that used Sockets like this one does... Apparently Sockets do NOT work correctly/or at all on Windows, So when it gets to $line.=fgets($this-connection,100); it is trying to read from a socket, and it will not work (and produce the error u see)

Re: [PHP] help needed for multimania.com

2001-10-27 Thread Andrew Brampton
http://babelfish.altavista.com That URL may help you translate the page... Andrew - Original Message - From: Kamran H. Hassan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 27, 2001 7:22 PM Subject: [PHP] help needed for multimania.com Hi, Thanks for the info. about

Re: [PHP] How Do I Re-Compile PHP4

2001-10-28 Thread Andrew Brampton
I actually have never compiled or re-compiled PHP, but if you are so concerned about not crashing PHP, how about you set up a test server first, play with that for a while, and then once you are happy with the results apply them to the real server... If you don't have a spare machine to do this

Re: [PHP] documentation comment

2001-11-04 Thread Andrew Brampton
Have you seen a MSDN subscription latly? Its many many CDs of Help Files and such... Php.net has comments added by coders on the end, but other than that they have nothing over M$ unless i'm missing something? Andrew - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Nope: Text Wrapper

2001-11-10 Thread Andrew Brampton
now use explode with /n as the seprating character, Andrew - Original Message - From: jtjohnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 10, 2001 9:15 AM Subject: [PHP] Nope: Text Wrapper In This case, nope, won't work:

Re: [PHP] Re: executing another php.script

2001-11-15 Thread Andrew Brampton
How about you do readfile('http://server.com/yourPHP.php'); That just opens that file, ie the same as clicking it... Andrew - Original Message - From: David Tod Sigafoos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 8:42 PM Subject: [PHP] Re: executing

Re: [PHP] small window scripts in Javascript?

2001-12-04 Thread Andrew Brampton
NOT a php question, but the only solution I know of is making a HTML page for the picture with the margin's set to zero (and whatever options u want)... This would mean you would have to create 100 HTML pages if you had 100 Popup images... Another solution would be to use PHP to make 1 page,

Re: [PHP] Costum Error Page

2001-12-08 Thread Andrew Brampton
how about you make a phpInfo() page, and set that as 404 error, then you can find the correct variable to use :) Andrew - Original Message - From: Daniel Urstöger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 12:43 PM Subject: Re: [PHP] Costum Error Page

Re: [PHP] copy image from database

2001-12-08 Thread Andrew Brampton
read the specs on copy() it copys a source file to a destination file... You are not copying files!... You should use something like fwrite to write the contents of $image to a file... Andrew - Original Message - From: Jan Grafström [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday,

[PHP] SQL Query Question

2001-12-08 Thread Andrew Brampton
Hi, This isn't a php question, more of a SQL question, but I don't know any where better to send it, and I guess its trival enough for someone here to answer. Anyway, I have a list of members each with a score field. How can I say that Member 3 is ranked 10 out of 100 members for example.

Re: [PHP] help with ftp command

2001-12-09 Thread Andrew Brampton
How about you just create the file locally (with some random name) upload it (with correct name) then delete the local copy... Andrew - Original Message - From: Kansas Territory [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 09, 2001 5:32 PM Subject: [PHP] help with ftp

Re: [PHP] variables

2001-12-10 Thread Andrew Brampton
I don't see any reason not to. But you should allways try and make your varible names meaningful... In some cases I do end up having the same, for example if I'm passing X,Y coords around. But in othercases they have totally different names. Also out of interest, activator=formal parameter, the

Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Andrew Brampton
Well just looking at the source of your HTML, you could save yourself some bandwidth by shrinking it a bit. For example change the br / into br place your JavaScript into a .js file remove a lot of the new lines also remove the tabs. Just doing this I changed the file size of a random forum page

Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-13 Thread Andrew Brampton
You can set the max_timeout varible to zero at the begining of the script and it will continue forever... I once did this for a PHP IRC Bot... (which was kinda cool :)) Andrew - Original Message - From: bain [EMAIL PROTECTED] To: jimtronic [EMAIL PROTECTED] Cc: php general list [EMAIL

Re: [PHP] PHP on win2k/Weblogic?

2001-07-28 Thread Andrew Brampton
I think you can use ActivePerl PHP on that type of webserver. I personally haven't tried installing on there, but ActivePerl has instructions for installing on weblogic, and PHP can run as a exe so hopefully weblogic can do that... Andrew - Original Message - From: Rory O'Connor [EMAIL

Re: [PHP] Uptime script

2001-08-06 Thread Andrew Brampton
it seems that www.uptimes.net has shut down, I would of liked to see a site like that. And tsk tsk, couldn't you of moved your machine while it was on :).. All the hard core web server admins carry theirs with a UPS attacked and a Radio Link net connection :) hehehe Andrew - Original

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Andrew Brampton
Just a very big guess. Can you use system or exec command to run one of those telnet commands from a PHP script? Or even better idea, can you ask your hosts to do it for you :) Andrew - Original Message - From: elias [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07,

Re: [PHP] AudioGalaxy-like stuff

2001-08-21 Thread Andrew Brampton
When you click on the image it reloads the image which is really a PHP page which returns a image. That way when it loads the image, it can actually run some PHP and do whatever is required, once done it returns the approiate image That make sense? Andrew - Original Message - From:

Re: [PHP] AudioGalaxy-like stuff

2001-08-25 Thread Andrew Brampton
SID are used for something) Where this is actually calling a PHP script, that returns a image to be displayed while also doing some DB stuff... Does this clear it up for you? Andrew - Original Message - From: Christian Dechery [EMAIL PROTECTED] To: Andrew Brampton [EMAIL PROTECTED] Cc

Re: [PHP] Best Way?

2001-08-28 Thread Andrew Brampton
Make a login screen that can save cookies (so they don't have to type username again) and keep a Session Varible of their username/password so u know if they are Auth to enter certain areas... This way if they don't have cookies they can login anyway... but if they do allow cookies then it saves

Re: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Andrew Brampton
So is javascript :) or should I say that IE NS don't agree on standards. Andrew - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 12:47 PM Subject: Re: Re: [PHP] Sorry, i need HTML help Sorry to post here but i need to know this

Re: [PHP] Really weird problem: cross-server databasing *g*

2001-09-02 Thread Andrew Brampton
How about you make a simple script on Server B that will handle Database stuff, and you get a Script on server A to fopen http://B/myscript.php and do calls like myscript.php?a=addname=fredaddress=uk etc and you can do the same to retrieve data but just parse out the popup with the script on

[PHP] Load testing

2001-09-04 Thread Andrew Brampton
Hi, I'm looking for a app that I can run across my network that will load test my webserver pages... Something like a program that will open 100 pages at once and tell me the response times or error occuring etc... Does anyone know of such a app? Thanks Andrew

Re: [PHP] Site Layouts/Designs

2001-09-09 Thread Andrew Brampton
I got a couple of URLs http://www.uidesign.net/ Not sure whats there but I bookmarked it http://www.guistuff.com/ This site is REALLY REALLY good... it contains lots of free templates in many different formats to allow easy use Hope these help Andrew - Original Message - From: ReDucTor

Re: [PHP] IE and '404 not found' custom script

2001-09-10 Thread Andrew Brampton
you said you added some headers, how about padding the html out with nbsp; but I'm not sure what you are doing here, so that may not apply/work :) Andrew - Original Message - From: Enrique Vadillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 1:56 AM Subject:

Re: [PHP] \n not working

2001-09-16 Thread Andrew Brampton
Browsers don't parse \n as a new line, try using br which will make a new line Andrew - Original Message - From: alpherjo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 16, 2001 9:51 PM Subject: [PHP] \n not working I am just learning PHP. I have it installed on my

Re: [PHP] chewing up apache logs

2001-09-17 Thread Andrew Brampton
I've not used webalizer, but I do use awstats for my site, its only a small little script but its cool get from http://awstats.sourceforge.net/ Also I use the free stat4all.com hitcounter thingy on my site, and it produces pretty damn detailed reports for you... click the little blue circle on

Re: [PHP] Polls

2001-07-08 Thread Andrew Brampton
have 2 tables. Questions Table: Question ID Date Question Answers Table: Question ID Answer Then you can make as many answers as you like as long as the Question ID is for your question This make sense? Andrew - Original Message - From: Marius Pertravèius [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] GET Command

2001-07-17 Thread Andrew Brampton
that is basically going to the URL www.whatever.com/scripts/..%255c..%255cwinnt/system32/cmd.exe?/c+dir+c:\ so do what the other guy said $site = fopen(http://www.whatever.com/, r); $contents = fread($site, 102400); fclose($site); but like this: $site =

Re: [PHP] sleep() function question

2001-07-22 Thread Andrew Brampton
I know very little about PHP, but in other languages, what u describe happens because the webserver doesn't send the output until the excution is done... But you can make it write your output as its generated... check out the function flush also after 20seconds of looking, I found

Re: [PHP] IE - View Source

2001-07-26 Thread Andrew Brampton
How about you get one of these HTML encypting type JScripts... it converts the page into /0D type codes, and then decodes it with a built in JScript function... If you view source they will only see lots of /0D looking things, but the page will display like normal (but maybe a bit slower) Andrew

Re: [PHP] IE Not Following Header(Location: /path/to/file.php);

2007-09-06 Thread Andrew Brampton
That is not valid, the Location field must contain the full URL, so /path/to/file.php should be http://yourserver/path/to/file.php Read RFC rfc2616, section 14 Will help find it: http://www.google.com/search?hl=enq=HTTP+Header+FieldbtnG=Google+Search Andrew - Original Message -

  1   2   >