[PHP] running php with .html files?

2002-07-27 Thread Henry
Hi All, I'm sure I saw a posting on this subject a month ago so please excuse me for not paying attention the first time ;-| I have a php script that I wish to execute but I want to put it in index.html (not index.php) I know there is a solution involving configuration files in either the direc

Re: [PHP] How do I show the sourse code?

2002-07-27 Thread Michael Sims
On Sun, 28 Jul 2002 03:41:19 +0200, you wrote: >I have seen on some of the script-sites around some nice ways of presenting >the source code. Often in nice colors. So, the natural question is: how is >that done (cause I don't think anyone has the patience to put < and > >around all the <>) http:

RE: [PHP] PHP/MySQL Search Engine Query Question

2002-07-27 Thread Naintara Jain
You can use explode/split functions on the search parameters - that will give u an array with each search token indexed individually. Suppose the search input was 'abc xyz' $strsearch = "abc xyz"; $search=explode(" ",$strsearch); your array "search" will contain $search[0]=abc $search[1]=xyz

Re: [PHP] php 'mail()' security

2002-07-27 Thread Dennis Gearon
What I meant was, how to sanitize the input on the forms so that malicious stuff cannot be put as commands, etc. in the email address, or body, or 'extra' field of the 'mail()' function in PHP. -- - Joy is just a thing (to be).. rais

[PHP] setcookie question

2002-07-27 Thread Gaylen Fraley
I need to create a cookie that is accessible from more than 1 application, but on the same server. What would be the proper syntax? What I tried was setcookie ("myCookie","$cookie_value",$timeToExpire,'/'); Right or wrong or impossible? Should I not have used the "/"? Thanks. -- Gaylen PHP K

Re: [PHP] Extra spacing with in HTML

2002-07-27 Thread Jason Stechschulte
On Sat, Jul 27, 2002 at 08:08:34PM -0400, Kevin Breit wrote: > Lets say I have > > > Blar > > > ln2br() will crunch that and put out: > > Blar > > > That creates a lot of white space when that HTML is rendered. How do I > tell PHP not to put line breaks in a situation like that? There

Re: [PHP] How do I show the sourse code?

2002-07-27 Thread Bob Lockie
>I have seen on some of the script-sites around some nice ways of presenting >the source code. Often in nice colors. So, the natural question is: how is >that done (cause I don't think anyone has the patience to put < and > >around all the <>) Probably some PHP wrapper that highlights the right p

Re: [PHP] php 'mail()' security

2002-07-27 Thread Bob Lockie
On Sat, 27 Jul 2002 17:31:16 -0700, Dennis Gearon wrote: >How can I make my form which entered by a user, then sent to a company >employee, secure, not vulnerable attack? >-- >- >Joy is just a thing (to be).. raised on, >Love is jus

[PHP] How do I show the sourse code?

2002-07-27 Thread Øystein Håland
I have seen on some of the script-sites around some nice ways of presenting the source code. Often in nice colors. So, the natural question is: how is that done (cause I don't think anyone has the patience to put < and > around all the <>) -- PHP General Mailing List (http://www.php.net/) To u

[PHP] PHP/MySQL Search Engine Query Question

2002-07-27 Thread Paul Maine
I am currently working on a website that is implemented using PHP and MySQL. The site currently has a simple search engine that allows a shopper to type in a search string that is stored in $search. For example, if a shopper types in 1972 Ford Mustang $string ="1972 Ford Mustang" Using the follo

[PHP] Apache 2

2002-07-27 Thread Kasper
/usr/local/include/pth/pth.h:526: warning: this is the location of the previous definition In file included from /usr/local/apache/include/apr_portable.h:90, from /usr/local/apache/include/http_protocol.h:64, from sapi_apache2.c:38: /usr/local/include/pth/pthread.

RE: [PHP] RTRIM() - Won't accept 2nd Param

2002-07-27 Thread David Freeman
> When I issue this command to remove any commas at end of string: > > $query = rtrim($query, ","); > > PHP give me an error saying "Wrong parameter count for > rtrim()". How can > this be? The online manual shows rtrim can accept two > parameters. Shouldn't > this work? I have PH

[PHP] php 'mail()' security

2002-07-27 Thread Dennis Gearon
How can I make my form which entered by a user, then sent to a company employee, secure, not vulnerable attack? -- - Joy is just a thing (to be).. raised on, Love is just the way to Live and Die, John Denver.

Re: [PHP] Sending a File to User's Browser

2002-07-27 Thread Support
This works on everything I've tested so far. $file = "/some/path/to/file"; header("Content-Disposition: inline; filename=" . basename($file)); header("Content-Type: application/octet-stream"); header("Content-Type: application/force-download"); header("Content-Type: application/download"); header

[PHP] Extra spacing with in HTML

2002-07-27 Thread Kevin Breit
Hey guys, I am using a textarea to pass information to PHP. I want to be able to include HTML tags inside the text area. I am using ln2br() to properly convert line breaks to HTML. This is where my issue comes up. Lets say I have Blar ln2br() will crunch that and put out: Blar

RE: [PHP] RTRIM() - Won't accept 2nd Param

2002-07-27 Thread Mark Charette
>From the man page: Note: The second parameter was added in PHP 4.1.0 -Original Message- From: Monty [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 27, 2002 7:28 PM To: [EMAIL PROTECTED] Subject: [PHP] RTRIM() - Won't accept 2nd Param When I issue this command to remove any commas at

[PHP] Re: removing html...

2002-07-27 Thread JJ Harrison
Thanks, I had never used regular expressions before and will look into them a bit more. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have search around on google/php.net to try and fi

[PHP] RTRIM() - Won't accept 2nd Param

2002-07-27 Thread Monty
When I issue this command to remove any commas at end of string: $query = rtrim($query, ","); PHP give me an error saying "Wrong parameter count for rtrim()". How can this be? The online manual shows rtrim can accept two parameters. Shouldn't this work? I have PHP 4.0.6 installed on the serv

[PHP] CMS systems using PHP and PostgreSQL?

2002-07-27 Thread Glenn Sieb
Does anyone know of a good CMS using both PHP and PostgreSQL? I see a lot of CMS' out there like pHpSlash, but I'd like to find one that works with PostgreSQL if possible.. :) (I use PostgreSQL for a few other things, and would much rather not have to load MySQL on the server as well) Than

RE: [PHP] call to undefined function: mysql_connect

2002-07-27 Thread Richard Pijnenburg
It seems then that your mysql support isn't installed correctly with your php. Richard Pijnenburg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 28, 2002 12:25 AM To: [EMAIL PROTECTED] Subject: [PHP] call to undefined function: mysql_connect

[PHP] Sending a File to User's Browser

2002-07-27 Thread Oscar F
Hello, I need a user to save an image file to their disk. Normally when someone clicks on an link to a .jpg file, the fil will display on the same browser window, since it is capable of displaying such files. Now, I don't want this to happen, I need to be able to show the user the "Save As.."

RE: [PHP] Pulling a data from array of checkboxes

2002-07-27 Thread John Holmes
> I am passing a value of checkboxes in a form to a new page like this (see > example here: http://www.gibsonusa.com/test/check/) > In a new page how can I pull the data from a MySQL database according to > each value I passed from a previous page? In other words: Assume that the > value of a chec

[PHP] call to undefined function: mysql_connect

2002-07-27 Thread lfindle
Hi. I'm running PHP 4.2.1 & MySQL 3.23. I'm getting the error message "Call to undefined function: mysql_connect()" when I try to use it in my code. If anyone has any ideas as to why this might be happening, I'd be appreciative. Thanks! -- PHP General Mailing List (http://www.php.n

[PHP] Pulling a data from array of checkboxes

2002-07-27 Thread V Sharapov
I am passing a value of checkboxes in a form to a new page like this (see example here: http://www.gibsonusa.com/test/check/) In a new page how can I pull the data from a MySQL database according to each value I passed from a previous page? In other words: Assume that the value of a checkbox eq

Re: [PHP] File Browser like Win Explorer in php

2002-07-27 Thread Bob Lockie
On 27 Jul 2002 17:16:52 -0400, Reuben D. Budiardja wrote: >Hi, >I am wondering if anyone has created or know where I can get a code for >browsing files and directory in using php in linux. The one I am looking >for is file browsing capability that is similar to Window Explorer, >meaning you can e

[PHP] Dijkstra's Algorithm

2002-07-27 Thread Ville Mattila
Hello there, I found this very good snippet of Dijkstra's Alogrithm here. http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=714 Anyway, I have a rather big node network (5 nodes) and this is getting a bit low. I noted that the script calculates the shortest distance to every node

[PHP] File Browser like Win Explorer in php

2002-07-27 Thread Reuben D. Budiardja
Hi, I am wondering if anyone has created or know where I can get a code for browsing files and directory in using php in linux. The one I am looking for is file browsing capability that is similar to Window Explorer, meaning you can expand and collapse directory. I just don't want to re-invent the

RE: [PHP] Combining Columns in MySQL for PHP

2002-07-27 Thread John Holmes
You have a bad database design if you need something like what you are describing. The columns should probably be in another table, with a second column, a number, saying which column the number is for. So your second table would look like the result you want to have... You may be able to do it

Re: [PHP] Combining Columns in MySQL for PHP

2002-07-27 Thread Chris Earle
Thanks for the reply, and I see that I didn't get specific enough (my fault! sorry). Here's what I want to take from: +-+--+ | col_1| col_2 | +-+--+ | 2.0| 6.8| +-+--+ | 4.1| 8.9| +-+--+ I want to do something like SELECT COMBINE(col_1, col_2) as

Re: [PHP] CURL & SSL

2002-07-27 Thread Tech Support
cURL needs to be compiled with SSL support. ./configure --with-ssl=SSLPATH where SSLPATH is the actual path to where openssl can be found. ./configure --with-ssl=/usr works for me. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Oscar F" <[EMAIL P

Re: [PHP] failure notice (fwd)

2002-07-27 Thread Tech Support
That's what happens when ISP's aren't careful about what happens on their network. Getting your IP's on the black list is probably one of the worst things you can let happen as an ISP. They warn you and give you time to rectify the situation (cancel accounts/access of offenders) before they actual

RE: [PHP] Combining Columns in MySQL for PHP

2002-07-27 Thread John Holmes
> SELECT COMBINE(column_1, column_2) As column FROM column_list; > > Would give me the results of column_1 and column_2 simply by going through > "column". Use CONCAT() where you have COMBINE(). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Combining Columns in MySQL for PHP

2002-07-27 Thread Chris Earle
I was wondering if there was any way to get MySQL to combine the specified SELECT columns into one column. i.e., SELECT COMBINE(column_1, column_2) As column FROM column_list; Would give me the results of column_1 and column_2 simply by going through "column". Is there any thing that does this

Re: [PHP] Stopping Multiple Entries in mySQL DB

2002-07-27 Thread Chris Earle
do that plus with your insert, just do "INSERT IGNORE ". "John Holmes" <[EMAIL PROTECTED]> wrote in message 01c2358a$bd729fc0$b402a8c0@mango">news:01c2358a$bd729fc0$b402a8c0@mango... > > I just want my Adding Into Database script to check if > > the Name/Country already exists, and if

[PHP] failure notice (fwd)

2002-07-27 Thread Miguel Cruz
Is this for real? Rackspace hosts an awful lot of good-hearted people (including myself). Is there a specific reason why the entire ISP's customer base has been blocked from posting to php-general? I guess I have to give up participating on the PHP list... miguel -- Forwarded message ---

Re: [PHP] Is it possible...

2002-07-27 Thread apollo
thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CURL & SSL

2002-07-27 Thread Oscar F
Jonathan, The exact same thing is happening to me right now, only that I'm working with the "Concord" people, not with authorize... it says SSL is enabled when I ask for the info. The reason why you're not getting the values, is that cURL is telling PHP: curl: (1) libcurl was built with SSL disa

Re: [PHP] what is http://127.0.0.1?

2002-07-27 Thread Duncan Hill
On Sat, 27 Jul 2002, Matthew K. Gold wrote: > ever since I put up a personal firewall, when I start MySQL I''ve been > getting alerts that MySQL is trying to access this ip address when I start > it... > > what, exactly, is it, and is there any reason why MySQL would need to access > the interne

[PHP] CURL & SSL

2002-07-27 Thread Jonathan Rosenberg
I am on a server that has CURL & OpenSSL enabled. I assumed that this meant that I could do https: requests via CURL. But for some reason, my attempts to do this are not working. If I do a CURL http: request, everything works fine (i.e., I get the web page, as expected). But if I use an https:

[PHP] what is http://127.0.0.1?

2002-07-27 Thread Matthew K. Gold
ever since I put up a personal firewall, when I start MySQL I''ve been getting alerts that MySQL is trying to access this ip address when I start it... what, exactly, is it, and is there any reason why MySQL would need to access the internet if I have apache on my own machine? thanks, Matt --

RE: [PHP] Re: Table formatting

2002-07-27 Thread Wouter | esctoday.com
I'd use the following code: -- // DB QUERY $query = "SELECT columnFirst, columnSecond, columnThird FROM table_name"; $result = mysql_query($query) or die(mysql_error()); // NOW THE LOOP while ($row = mysql_fetch_assoc($result)) { echo ""; echo ""; echo

[PHP] portal / content management

2002-07-27 Thread M.E. Suliman
Hi Can anyone recommend a good portal system / content management system (polls, forums, etc.) I have tried phpnuke but am bound to the standard layout of it i.e content in the centre and blocks on the left or right. Any recommendation will be appreciated. Mohamed -- PHP General Mailing Li

Re: [PHP] uploading pictures

2002-07-27 Thread Oliver Witt
Alexander Kuznetsov schrieb: > Hello Oliver, > > Thursday, July 25, 2002, 1:42:05 PM, you wrote: > > OW> Alexander Kuznetsov schrieb: > > >> i think u should set write permissions to directory > >> where u r trying to copy file > > OW> Thank you for answering. > OW> But how do I set write permisi

RE: [PHP] string comparison

2002-07-27 Thread John Holmes
Strcmp() is case sensitive. So use it when you need a case sensitive comparison. ---John Holmes... > -Original Message- > From: Bas Jobsen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 12:35 PM > To: PHP General > Subject: [PHP] string comparison > > Hello, > > When should

[PHP] string comparison

2002-07-27 Thread Bas Jobsen
Hello, When should i prefer strcmp() above == or !=? I have test it out (see code below). But a == comparison seems to be faster always. First i thought is was cause, if(strcmp($1,$2)!=0), needs two comparisons (strcmp and !=). But even if($1!=$2) is faster then if(strcmp($1,$2)). Thanks, Bas

RE: [PHP] Stopping Multiple Entries in mySQL DB

2002-07-27 Thread John Holmes
> I just want my Adding Into Database script to check if > the Name/Country already exists, and if it does, it > shouldn't be allowed. > > If some with > Name : Jackson > Country : USA > exists in my DB, no one with same name/country should > be able to add his name/country in the DB. Have your

[PHP] Stopping Multiple Entries in mySQL DB

2002-07-27 Thread Thomas Edison Jr.
Glory! I just want my Adding Into Database script to check if the Name/Country already exists, and if it does, it shouldn't be allowed. If some with Name : Jackson Country : USA exists in my DB, no one with same name/country should be able to add his name/country in the DB. Can anyone hint?

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

2002-07-27 Thread Steve Buehler
Install PHP on your desktop. You will need a web server too. I use PHP/MySQL/Apache on my Laptop, Desktop, Servers and workstations. Steve At 07:56 AM 7/27/2002 -0700, you wrote: >I guess I should reiterate; > >"What is the easiest way to test locally (on my desktop) without having to >upload

Re: [PHP] High Resolution Images

2002-07-27 Thread [EMAIL PROTECTED]
Justin, I did what you said, just uploaded the file and downloaded it again, and the weirdest thing is happening. When I Form-Upload/FTP-Download it, I can see it on my local computer, it opens everywhere. Now, when I try to see it from the web site it is uploaded (http://ebsite/file.jpg), it

RE: [PHP] removing html...

2002-07-27 Thread John Holmes
> I have search around on google/php.net to try and find a way to remove > , everything above , and everything below it in a html page. FYI on the two methods I suggested: preg_match("/(.*)<\/body>/i",$html_text,$matches); eregi("(.*)",$html_text,$matches); Preg vs. Ereg name

RE: [PHP] Password Generator Script

2002-07-27 Thread Naintara Jain
The following code was created to generate a random password. But it can be used to generate a random string for any purpose. The basic idea was to create an array that would contain all the letters of the English alphabet, and pick out random values from that array. I have outlined two methods b

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

2002-07-27 Thread Tim Luoma
Marcus Unlimited wrote: > "What is the easiest way to test locally (on my desktop) without having to > upload?" If you follow the route that several folks suggest and go with one of the 'install everything' routes, be sure to install the same versions ... for example, some of them install olde

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

2002-07-27 Thread J. Cox
"Andrew Brampton" <[EMAIL PROTECTED]> wrote in message 014a01c2357e$77a15b50$0100a8c0@andrew">news:014a01c2357e$77a15b50$0100a8c0@andrew... > 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 > sinc

RE: [PHP] Quotes getting screwed up in form fields

2002-07-27 Thread John Holmes
> If someone enters this into a field... > >New York "City" > > and I need to re-display it in the field (if an error occurred, for > example), this is what's in the field... > >New York \ > > I have another multi-line text field that I used quotes in and this > doesn't > happen with t

RE: [PHP] Is it possible...

2002-07-27 Thread John Holmes
> Is it possible download php scripts from webpages ? for example i need > php.net scripts or others :-) If yes, how ? Not unless they let you and give you a link to show the source or to download it. You can't get the source for just any PHP page b/c it's parsed on the server and only HTML is s

RE: [PHP] Re: How to UPDATE two MySQL Tables

2002-07-27 Thread John Holmes
> You can use REPLACE instead of making two separate queries (UPDATE and > INSERT) because it checks if it is there, and if it's not, then it adds > it; > otherwise it updates it. I think that's right ... but the SQL server's > SQL > server is broken! (the irony!) Just note that REPLACE is MySQL

[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread Julio Nobrega
I would guess your value doesn't have double quotes around. Because what might happen is this: http://www.inerciasensorial.com.br "Monty" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If someone enters this into a field... > >New York "City"

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

2002-07-27 Thread John Holmes
.bat is a Batch file. All it's going to do is go through and start up Apache and MySQL for you. Then you can call up your local pages in any browser you have installed. You can run a .bat file to stop Apache and MySQL when you are done, too. It's all explained in the install instructions for the

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

2002-07-27 Thread Marcus Unlimited
Wow hey sorry I missed that. Thank you, _Marcus "[EMAIL PROTECTED]" wrote: > Marcus, > > A quote from my eMail YESTERDAY: > > "There is a nice bundle for windows, it's perfect to test basic php/mysql > stuff. it includes Apache, MySQL and PHP. You can find it at > http://www.firepages.com.au/de

RE: [PHP] removing html...

2002-07-27 Thread John Holmes
Or... preg_match("/(.*)<\/body>/i",$html_text,$matches); ---John Holmes... > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 9:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] removing html... > > Hi, > > I have search around on google/p

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

2002-07-27 Thread [EMAIL PROTECTED]
Marcus, A quote from my eMail YESTERDAY: "There is a nice bundle for windows, it's perfect to test basic php/mysql stuff. it includes Apache, MySQL and PHP. You can find it at http://www.firepages.com.au/dev4.htm"; ... Hope you read it now. Oscar.- --- Me

RE: [PHP] removing html...

2002-07-27 Thread John Holmes
Use a regular expression. Something like this should work. eregi("(.*)",$html_text,$matches); $matches[1] should contain the text you are after. ---John Holmes... > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 9:41 AM > To: [EMAIL PR

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

2002-07-27 Thread Marcus Unlimited
Hmm, .bat that is a new one for me, will I still be able to test my pages in regular windows browsers like IE and NN? -Marcus THANKS John Holmes wrote: > Search on Google for PHPTriad or Firepages, or look on hotscripts.com or > sourceforge. There are a couple packages out there that'll insta

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

2002-07-27 Thread John Holmes
Search on Google for PHPTriad or Firepages, or look on hotscripts.com or sourceforge. There are a couple packages out there that'll install Apache, PHP, and MySQL automatically for you on Windows. It's nice and painless. Once it's installed, you run a little .bat program to start it all up, and

RE: [PHP] Re: Date() Problem

2002-07-27 Thread John Holmes
> I store all dates in unix timestamp format. It's the easiest one to work > with, and it's easy to do things like "date + three days", because it's > just > a case of adding the right number of seconds to the current stamp. > > You don't have to split anything, or get substr()'s of anything...

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 PROTECTE

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

2002-07-27 Thread Marcus Unlimited
I guess I should reiterate; "What is the easiest way to test locally (on my desktop) without having to upload?" Thanks,-Marcus Tim Luoma wrote: > Marcus Unlimited wrote: > > > So what is the absolute simplest and easiest path to open my .html pages > > with some php mysql in em. and see them a

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

2002-07-27 Thread Tim Luoma
Marcus Unlimited wrote: > So what is the absolute simplest and easiest path to open my .html pages > with some php mysql in em. and see them as they will work on the web??? To quote a friend of mine: "The only way to see how this will work is to see how this will work." Get some server space

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

2002-07-27 Thread Marcus Unlimited
Hello, Okay, Here's what I want to do. Simply test my PHP stuff and practice with MySQL. I don't want to learn to master Unix or anything at all like that but these vague and arcane install instructions are leading me nowhere except to frustrations. So what is the absolute simplest and easies

[PHP] Fw: ezmlm warning

2002-07-27 Thread Matt \"TrollBoy\" Wiseman
I'd be upset if my virus filter got me unsubscribed.. Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft

[PHP] Re: need help with unusual php/mysql/array manipulation script

2002-07-27 Thread spam
On Sat, 27 Jul 2002 01:08:12 -0400, [EMAIL PROTECTED] (Chris Earle) wrote: > Ahhh, good old UO. I remember GMing my taming, crazy what they've done to > the game since I've quit (120 skill, insane!). > > I'm not completely sure of a few things about your question and I think that > I could he

php-general Digest 27 Jul 2002 13:38:56 -0000 Issue 1489

2002-07-27 Thread php-general-digest-help
php-general Digest 27 Jul 2002 13:38:56 - Issue 1489 Topics (messages 109909 through 109957): Re: calling user-defined php functions from tag 109909 by: Justin French 109911 by: Michael 109912 by: Mathieu Dumoulin 109913 by: Michael 109915 by: Mathie

[PHP] removing html...

2002-07-27 Thread JJ Harrison
Hi, I have search around on google/php.net to try and find a way to remove , everything above , and everything below it in a html page. eg. test Blah Blah Blah would become: Blah Blah Blah I know how to use php to convert html to pure text etc but I don't know how to remove the unwanted

Re: [PHP] Re: Date() Problem

2002-07-27 Thread Justin French
I store all dates in unix timestamp format. It's the easiest one to work with, and it's easy to do things like "date + three days", because it's just a case of adding the right number of seconds to the current stamp. You don't have to split anything, or get substr()'s of anything... and since da

[PHP] Re: Date() Problem

2002-07-27 Thread Tony Harrison
I tried using UNIX stamps but it dont work, and why the hell does it default to that date anyway? I thought it was supposed to default to the current time? "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Alternativly you could store the dates as U

[PHP] Re: Date() Problem

2002-07-27 Thread JJ Harrison
Alternativly you could store the dates as UNIX timestamps. That is what I do. It is then eaiser to do certian things(ie show stuff released in the last month) -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Tony Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PRO

[PHP] Re: How to defeat winroute [proxy]?

2002-07-27 Thread Peter
Do you still get the cached version when you press the refresh button in the browser? Going back to a page will nearly always return a cached version of the page unless it was created as result of a form post. "Evgeny Chuykov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

[PHP] Re: High Resolution Images

2002-07-27 Thread Peter
I've had problems in some graphics viewers opening JPEGs saved in progressive format. Maybe saving them at such high resolution (or interlaced) isn't part of the JPEG specifaction that GD uses. "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Date() Problem

2002-07-27 Thread Jome
> Yeh, ive allready looked at that before, but where and when do i use > DATE_FORMAT() ? When im inserting the row or selecting it? > Replace your existent query with this one and try: SELECT `artist_id`,`title`,`content`,`user_id`,DATE_FORMAT(date,'%d-%m-%Y %H:%i:%s'),`type`,`views` FROM `resou

Re: [PHP] calling user-defined php functions from tag

2002-07-27 Thread Justin French
So you want to load Page A, click on a link, stay on Page A, but execute a function located in a script on Page B, without leaving A I've never done it, but I believe you call a javascript function which can do it I think... maybe it's a POST form... sorry I can't be more help, but I've never

[PHP] Re: Date() Problem

2002-07-27 Thread Tony Harrison
Yeh, ive allready looked at that before, but where and when do i use DATE_FORMAT() ? When im inserting the row or selecting it? "Jome" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, im making a tab/lyric portal, and for viewing tabs i want to display > t

[PHP] Re: Date() Problem

2002-07-27 Thread Jome
> Hi, im making a tab/lyric portal, and for viewing tabs i want to display the > time the lyric/tab was submitted. So I retrive it from a MySQL database (as > a timestamp) and format it using the date function. The problem is, that the > date: 19-01-2038 04:14:07 is allways returned, even though i

[PHP] Date() Problem

2002-07-27 Thread Tony Harrison
Hi, im making a tab/lyric portal, and for viewing tabs i want to display the time the lyric/tab was submitted. So I retrive it from a MySQL database (as a timestamp) and format it using the date function. The problem is, that the date: 19-01-2038 04:14:07 is allways returned, even though in the `d

Re: [PHP] Using Javascript

2002-07-27 Thread Zoltan Konyves
Hello Uma, Monday, July 22, 2002, 8:09:44 AM, you wrote: UST> Hello, UST> I need to display a value on the text box during onClick event where the UST> data is fetched from the database..I have given the code like this but it UST> is giving unterminated string constant.. UST> "); UST> Can

[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread lallous
if you're using Apache, try creating an .htaccess file with this line in it: php_value magic_quotes_gpc 1 "Monty" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If someone enters this into a field... > >New York "City" > > and I need to re-display it in

[PHP] Re: Logging: Best archive method

2002-07-27 Thread lallous
No matter how much you compress you'll always come across the size grow problem. try RAR (www.rarsoft.com) execute it from PHP when necessary. good luck, "Julio Nobrega" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I am serializing every ge

[PHP] Re: I hate to do this - Parse error...

2002-07-27 Thread JJ Harrison
Thanks. I've never seen an error that far up from the qouted line. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Chris Earle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think the Parse error might actually be on the last line of your query ( > the

[PHP] Re: Is it possible...

2002-07-27 Thread Lars Olsson
No. Since PHP is executed on the server, the only thing that is sent to the browser is pure HTML (and client-sided scripts like JavaScript). This means you cannot just get the source code of a PHP page by just browsing it. /lasso ([EMAIL PROTECTED]) Apollo wrote: > Is it possible download p

[PHP] Re: Calling a function without variable params

2002-07-27 Thread lallous
you can pass an unlimited number of variable through the array() constructor. as: data_interface(array($table1, $table2, $table3)) you can use an Array manipulation functions for that order too. good luck, "Mathieu Dumoulin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: How can I get my session variable to pass to another page?

2002-07-27 Thread lallous
you have to add: session_start() in your second file. "Donpro" <[EMAIL PROTECTED]> wrote in message 005001c234df$fe6e7b80$[EMAIL PROTECTED]">news:005001c234df$fe6e7b80$[EMAIL PROTECTED]... > Hi, > > I have a form that calls a PHP script which sets a session variable and > redirects to anopther UR

[PHP] Re: Is it possible...

2002-07-27 Thread lallous
You can't download a script when it is being parsed. If it is not going to be parsed you can download it as text. as for php.net , they have got a button on their site called: showsource click it and have the source of any page you want, "Apollo" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

[PHP] Re: How to UPDATE two MySQL Tables

2002-07-27 Thread Chris Earle
You can use REPLACE instead of making two separate queries (UPDATE and INSERT) because it checks if it is there, and if it's not, then it adds it; otherwise it updates it. I think that's right ... but the SQL server's SQL server is broken! (the irony!) That won't solve all of your problems, but

Re: [PHP] PHP / Apache 2.0.39 issues

2002-07-27 Thread electroteque
geez i thought they had it right this time , i had the same problem with php 4.2.1 , i downloaded the latest snapshot and just copied over the php_functions.c from there and the install worked after that "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > > >Hello again..

[PHP] Re: I hate to do this - Parse error...

2002-07-27 Thread Chris Earle
I think the Parse error might actually be on the last line of your query ( the " .'; "). I tested that on my page and if I put in the query, as is, it gave me a parse error. Without the ending .' it was okay though. > function view_post($tid){ __ > $q

[PHP] Re: phpMyAdmin and apqache 2.0.39 cache problems

2002-07-27 Thread electroteque
i am using IE "Julio Nobrega" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Electroteque em Friday 26 July 2002 11:19 foi agraciado com uma resposta > por: > > > hi guys i am having major caching issues in phpMyAdmin when i moved to > > apache 2.0.39 has anyone else expeirence t