[PHP] cache

2002-03-06 Thread Jeroen Timmers
is there some command with php dat the page some images not load out the cache but reloading the image? Thx Jeroen

[PHP] How can i download 32000 images from another server to my server

2002-03-06 Thread Vishak Tomy
Hello, i tried to download 32000 images from another to my server, through the code, $conn_id = ftp_connect("$ftp_server"); $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"); if ((!$conn_id) || (!$login_result)) { echo "Ftp connection has failed!"; echo

Re: [PHP] cache

2002-03-06 Thread bvr
Hallo Jeroen ;) There are several ways to control the caching of pages and images, including sending headers and META tags. These are ofcourse HTML/HTTP features and not specific to PHP. Because it seems to be needed to send a combination of these to make it work for a situations, I prefer a

Re: [PHP] Version difference (4.0.4pl1-4.1.2)

2002-03-06 Thread bvr
Check the release notes or changelogs.. I believe there was a notable change in 4.0.5 regarding 'referencing' you may have to deal with, and 'reference counting' was added later on but this should have little affect on backwards compatibility. Also, the input mechanism has changed, although you

Re: [PHP] timestamp iin MySQL not compatible to the one in PHP???

2002-03-06 Thread DL Neil
Hi Andy I apologise. The way I wrote the suggestion looks very much like a SQL query doesn't it? It wasn't! It would have been better expressed if I had said: retrieve the MySQL timestamp field as a UNIX (epoch) timestamp, by using the UNIX_TIMESTAMP function within the SELECT statement > I trye

[PHP] Debate Scripts

2002-03-06 Thread Tshering Norbu
Hello list, Do you think I can get 'debate' scripts somewhere? It should be like this: Only administror posts a particular topic to be debated on. Rest of the users participate on 'FOR' and ' AGAINST' the topic. Thanks heaps NOBBY -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-06 Thread DL Neil
Erik, Apologies, I missed your reply in the mass of mailings and a rushed start to the week... > > The choice comes down to how you are generating the time data prior to > > its storage in the db, and how you plan to use it afterwards. If you are > > going to be doing lots of temporal processing

RE: [PHP] how the "ticks" works?

2002-03-06 Thread Sven Jacobs
Hey I want to run a shell script, all the values that are returned normal by that script I want to put as var. For example tracert X.X.X.X 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X] 2 <10 ms10 ms10 ms RFC1918-Host [X.X.X.X] 3 <10 ms10 ms10 ms BUOPS [X

[PHP] Return values from shell_exec command into db

2002-03-06 Thread Sven Jacobs
Hey I want to run a shell script, all the values that are returned normal by that script I want to put as var. For example tracert X.X.X.X 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X] 2 <10 ms10 ms10 ms RFC1918-Host [X.X.X.X] 3 <10 ms10 ms10 ms BUOPS

[PHP] How can I use & install IMP in windows???

2002-03-06 Thread hei
How can I use & install IMP in windows??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-06 Thread Alexis Birkill
Jon Abernathy wrote: > After reviewing your code, I was wondering if there was a reason you aren't > using PHP's built-in mail() function, rather that using popen() and a series > of fputs(), which seems rather expensive, especially inside of a loop. Also, Sounds like a much better idea, looking

Re: [PHP] Return values from shell_exec command into db

2002-03-06 Thread Jason Wong
On Wednesday 06 March 2002 18:23, Sven Jacobs wrote: > Hey > > I want to run a shell script, all the values that are returned normal by > that script I want to put as var. > For example > > tracert X.X.X.X > > 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X] > 2 <10 ms10 ms1

RE: [PHP] Re: Is there a "GoTo Page" Function?

2002-03-06 Thread Brian Drexler
Andre, In your php database storage code, after mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 7:04 PM To: hugh danaher Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Is there a "GoTo Page" Function? Hi Hugh, Thanks - I can access the next page now. But I've got a new problem:

Re: [PHP] PHP and passwords

2002-03-06 Thread John English
William Lovaton wrote: > > If you use just and .inc file any user with a browser can hit in the > URL: http://www.site.com/connect.inc and see what is inside. ...unless you keep your include directory outside the web tree (which is what I always do). That way the files can only be accessed by an

[PHP] Re: Deleting a Record

2002-03-06 Thread Henrik Hansen
[EMAIL PROTECTED] (Chuck \"Pup\" Payne) wrote: > Hi, > > I a seting up a php page that will let me delete a record from my mysql > database, but I want it be able to match to fields before it will let a user > delete that record. I know the basic sql command is > > DELETE FROM $table WHE

[PHP] Re: Deleting a Record

2002-03-06 Thread Julio Nobrega Trabalhando
First of all, make a copy of your database to test things. Never test code on production enviroment. Then, the delete syntax most of the time is: DELETE FROM table_name WHERE column = 'value'; Let's see: There isn't a space between field and 1, at least I don't think SQL compliant

[PHP] test

2002-03-06 Thread marcbey
-- --- magic garden GmbH - Agentur für Informationsarchitektur Hermannstr. 15 | 70178 Stuttgart (Am Feuersee) http://www.magic-garden.de | [EMAIL PROTECTED] Tel (07 11) 619 57-31 | Fax (07 11) 615 01 38 -- PHP General Mailing List (http://w

[PHP] Reading A file

2002-03-06 Thread Sven Jacobs
Hey I have a TEXT file that I want to make visual via the web using php

[PHP] test

2002-03-06 Thread marcbey
-- --- magic garden GmbH - Agentur für Informationsarchitektur Hermannstr. 15 | 70178 Stuttgart (Am Feuersee) http://www.magic-garden.de | [EMAIL PROTECTED] Tel (07 11) 619 57-31 | Fax (07 11) 615 01 38 -- PHP General Mailing List (http://w

RE: [PHP] Reading A file

2002-03-06 Thread Jon Haworth
> I have a TEXT file that I want to make visual > via the web using php HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reading A file

2002-03-06 Thread Julio Nobrega Trabalhando
If it's a file ending in .txt, you don't need PHP at all to make visual on the web, most browsers will just display it on the screen. Just link to it. But, if you want to echo it inside html, do: From here, you might go with readfile(); or file(), that will display the pointer's content

Re: [PHP] Reading A file

2002-03-06 Thread Ing. Fernando Proll Segura
> Hey > > I have a TEXT file that I want to make visual via the web using php > > > Maybe this isn't the best way but to do this I use the following code: "; } $lines=file("yourfile.txt"); array_walk($lines,'do_print'); ?> As you can see I use the file() function to get each line of text in

[PHP] Problem with backslashes disappearing

2002-03-06 Thread Torkil Johnsen
Hello! I have a simple form taking in some user text input and storing it in a mysql database. My problem is that PHP strips off any backslashes in the text. I realize that backspace is used as an escape character in PHP, but sometimes i DO want it in there!! Is there a way to do this so that I

Re: [PHP] Problem with backslashes disappearing

2002-03-06 Thread Richard Crawford
Have you tried escaping the backslash character with another one: "\\"? On Wed, 2002-03-06 at 06:34, Torkil Johnsen wrote: > Hello! > > I have a simple form taking in some user text input and storing it in a > mysql database. My problem is that PHP strips off any backslashes in the > text. I re

RE: [PHP] Problem with backslashes disappearing

2002-03-06 Thread Dan Vande More
try $new_string=addslashes($old_string); before doing anything else with it. This will prevent from anything removing the " \ ' etc because they will all automagically be escaped with that command. When you pull the data back out use: $newer_string=stripslashes($new_string); Dan -Original

RE: [PHP] Reading A file

2002-03-06 Thread Sven Jacobs
Ok I have a file like this and a want to isert this into a mysql table It has to be field Date data Mar 06 15:45:24 field bksvr buops field Message NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Log file Mar 06 15:45:24 buops: NetWorker Saveg

[PHP] PHP Daemon

2002-03-06 Thread Ergin Aytac
Following boxes are running: server1 (win2000), not allowed to use a web-server on it, only port 22(ssh) is open to internet server2 (unix) has apache and php, only port 22 and 80 are open to internet I have to write a php-daemon on server1, which should simulate a database-trigger. Every 5 min.

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Erik Price
On Wednesday, March 6, 2002, at 01:10 AM, hugh danaher wrote: > My wife knows I spend too much time in here. What's a wife? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Re: PHP Daemon

2002-03-06 Thread Karl Pietri
Hey i think you might wanna look up the socket functions in php. you could use them to have one php script talk to another php script. even send the file over that connection (but it wont be secure unless you encode and then send in your php script). fsockopen() has some problems, but you may b

[PHP] registering a session variable from a select * query.

2002-03-06 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
hi, I have been working on updating my user auth section. to authorise users I have a simple select * from my_users if there is a matching row I register the input from a text box (username and password textboxs) once I have the username and passsword registered as a sessaion var I want to

RE: [PHP] Re: Is there a "GoTo Page" Function?

2002-03-06 Thread Mullin, Reginald
You can also use JavaScript to redirect the user to another page. After your form has finished updating your database, do the following: window.location.href='NEXT_PAGE.html';"; ?> Note: Your client's browser must support JavaScript for this to work. As suggested by Hugh, it's much better to u

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Erik Price
On Tuesday, March 5, 2002, at 07:56 PM, Andre Dubuc wrote: > And thanks again! > I like the 'function print_name_form()' -- I gather you could do this > for all > the NOT NULL variables that a form requires. Further, would you just > change > the "print_name" to 'print_whatever-other-variable

[PHP] How does attachment works with sybase?

2002-03-06 Thread Caleb Carvalho
Hi, How does attachment works with sybase? I mean if I wanna create a table to accept attachments, what data type do I use, any examples would be much appreciated; Thanks, C. _ MSN Photos is the easiest way to share and print y

[PHP] help with date formatting

2002-03-06 Thread Ryan
Hi, I'm trying to create an events page, where it shows the posted events. I enter data using phpmyadmin. Currently, the ouput is like this: Conference in New York 2002-03-06 There is going to be a conference in New York next week. -

[PHP] passing large quantities of form data

2002-03-06 Thread Erik Price
I have a huge form that takes place over several pages. Well, actually it's one script that calls itself many times. Passing the user data from one instance of the script to another has certainly been educational. (I am avoiding session variables for this particular form.) I finally have

[PHP] PHP and Majordomo

2002-03-06 Thread Phillip S. Baker
Greetings Folks, Is there a PHP application out there that handles admin functions to majardomo email lists? If so where can I get something like that? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help needed with speading up a function.

2002-03-06 Thread William Bailey
Hello again. I have the following function that generates a prime number of x bits. It seems to work but i am just trying to see if i can make it any faster as generateing 1024 bit prime can take a while. so i thoought i would ask here to see if anybody has any ideas or suggestions.

Re: [PHP] help with date formatting

2002-03-06 Thread Anas Mughal
Sure, you could do something like: $event_month = substr($event_row["Date"], 5, 2); $event_day = substr($event_row["Date"], 8, 2); $event_year = substr($event_row["Date"], 0, 4); $msgBody = "Date: " . date("l", mktime(0,0,0,$event_month, $event_day, $event_year)) . ", " . date("F",

Re: [PHP] Re: Value of $_* variables

2002-03-06 Thread Erik Price
On Tuesday, March 5, 2002, at 09:12 PM, James Taylor wrote: > Yeah, the curly braces work great. I was at first doing a > "where id = " . $_SESSION['id'], $db); but I like the curly braces > better. > I like the curly braces too, but there's one time when they DON'T work: for ($i = 0; $i <

[PHP] [REPOST] Converting Image Data Directly from MySQL

2002-03-06 Thread Josh Trutwin
Sorry for the repost but I did not get any responses to my first post. :( Anyone have any suggestions for fixing this one? <> Hello list, I've been stumped on this for a while, I have a large project where I am storing image data in a MySQL db for reasons I will not get into. The images are

[PHP] How does attachment works with sybase?

2002-03-06 Thread Caleb Carvalho
Hi, How does attachment works with sybase? I mean if I wanna create a table to accept attachments, what data type do I use, any examples would be much appreciated; Thanks, C. _ Send and receive Hotmail on your mobile device: htt

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Andre Dubuc
Thanks Jim, Now that looks better. New problem: in one of the almost identical tables I've used it in, the title for each row is in black and not the color that the page text is set for. The other table is correctly set. Any idea what would cause the discrepancy? Tia, Andre On Wednesday 06

[PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, If I were to download that thing would I have to be connected 24/7? If so, I can't be. A man at VCN thought the address would be '209.193.72.9', but it still doesn't work. Do you have MSN Messenger? If so I would like to add you to it so we could talk instant message. Thanks, -GENESiS D

RE: [PHP] Reading A file and placing data into db

2002-03-06 Thread Sven Jacobs
Ok I have a file like this and a want to isert this into a mysql table It has to be field Date data Mar 06 15:45:24 field bksvr buops field Message NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Log file Mar 06 15:45:24 buops: NetWorker Save

[PHP] PHP_PRINT.DLL not found in ZIP package

2002-03-06 Thread MRXM-SYS
Hi ! The PHP 4.1.1 zip package for Win32 available in PHP.NET does not contain the PHP_PRINT.DLL file that is required to enable the PRINTER extension and use functions like PRINTER_OPEN() or PRINTER_WRITE(). Does anybody know why? Where can I get the file? Javier Urrutia Computer Specialist D

[PHP] Re: Create Word Document from PHP??

2002-03-06 Thread J Wynia
Don't know what code you're using to do this, but here's a spellcheck function that creates a new Word doc. See if this works for you. function spellcheck($string){ $word = new COM("word.application") or die("The spellcheck function requires MS Word."); $word->Visible = 0; $word->Documents->Add()

RE: Re: [PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, What state do you live in? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > I have MSN messenger but won't be able to use it until I get home 3-4MST. > Though I partially run the network here, it is best I do not use it. > > > -Original Message- > From: GENE

[PHP] OK Dan!

2002-03-06 Thread GENESiS DESiGNS
Dan, OK! I downloaded that thing, and I need to know what to put in it. Because I tried 209.193.72.9 for my hostname. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Jon Haworth
> > My wife knows I spend too much time in here. > What's a wife? // Wife class class Wife extends Human () { // Constructor function Wife () { if ($developer->priorities[0] == "usenet") die ("Can't create wife: must be higher priority than usenet"); } } HTH Jon -- PHP Ge

[PHP] RE:Re: [PHP] OK Dan!

2002-03-06 Thread GENESiS DESiGNS
Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok you tried 209.193.72.9, what does it say? > Use you

[PHP] Re: Create Word Document from PHP??

2002-03-06 Thread jeremy spielmann
Thanks for the spell check... I'm sure it will come in handy once I get this thing to work. I've adjusted my permissions for the COM permissions on the server. I have given Internet Users access to open/close/read/create the word file. Is there anything else that needs to be done?? Here's m

[PHP] How it went...

2002-03-06 Thread GENESiS DESiGNS
Dan, After I entered the first line it said 'Enter Password'. I tried a couple diffent passwords, but no luck. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok, thats good, we know mysql server is up and you should be feeling a > little more comfortable. > Now

Re: [PHP] How does attachment works with sybase?

2002-03-06 Thread William Lovaton
mmm... an attachment could be anything, a text file, a picture, a song, etc. May be you will need a BLOB. Look for the BLOB (at least in Oracle) data type in the SyBase documentation William. El mié, 06-03-2002 a las 10:47, Caleb Carvalho escribió: > Hi, > > How does attachment works with sy

[PHP] What do you mean?

2002-03-06 Thread GENESiS DESiGNS
Dan, I already called my host and they are working on it. What do you mean by 'What page is it'? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok, we have to solve that problem first. > You see, linux and mysql have different 'users' > You can be gdesigns on the Linux b

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Any updates / takers on this problem ?? thanks, Matt. -Original Message- From: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:04 PM To: '[EMAIL PROTECTED]' Subject: [PHP] registering a session variable from a select * query. h

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
What exactly are you trying to accomplish here? In my script I have a login form. On the valdation script all my session vars are registered. I run a script to check to see if the username and password are auth. If they are I then run some scripts to set the values of the various session variabl

Re: RE: [PHP] What do you mean?

2002-03-06 Thread GENESiS DESiGNS
Dan, The error is: Couldn't connect to MySQL. -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > I was asking so I could visit it, and see if there are any error messages. > The page that asks you for the mysql hostname, what is the name of that page > (eg index.php install.php etc)

[PHP] contents of fetch array into a string

2002-03-06 Thread Kris Vose
I have a problem with reading the contents of $r[1] into a string called = $mail. Does anyone have any suggestions? Any help is greatly appreciated. Kris Vose if ($czero != "") { $t = mysql_query("SELECT * FROM AddExisting"); $number_of_customers = count($t); while($r = mysql_fetch_

[PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, I tried using the username and password that vcn gave me for mysql and I used the host name gdesigns.vcn.com and it connected (with the mysql front thing), but it wont connect with my php script? Why? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General

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

Re: RE: [PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, I typed in 'ifconfig' and it doesn't work? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Good news... > > My next would be to telnet to the server once more and run > 'ifconfig' > (This gives a printout of current InterFace CONFIGurations) > > Let me know what tha

[PHP] Re: Deleting a Record

2002-03-06 Thread Paul DuBois
At 7:46 -0500 3/6/02, Chuck \"PUP\" Payne wrote: >Hi, > >I a seting up a php page that will let me delete a record from my mysql >database, but I want it be able to match to fields before it will let a user >delete that record. I know the basic sql command is > >DELETE FROM $table WHERE field

[PHP] RE: Deleting a Record

2002-03-06 Thread Chuck \"PUP\" Payne
Thanks I have now five ways to try. | Chuck Payne | | Magi Design and Support | | [EMAIL PROTECTED] | -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:43 AM To

Re: [PHP] contents of fetch array into a string

2002-03-06 Thread Steve Cayford
On Wednesday, March 6, 2002, at 12:13 PM, Kris Vose wrote: > I have a problem with reading the contents of $r[1] into a string > called = $mail. Does anyone have any suggestions? Any help is greatly > appreciated. > > Kris Vose > > > if ($czero != "") > { > > $t = mysql_query("SELECT * FROM

[PHP] Arrays/OOP

2002-03-06 Thread Joshua E Minnie
This is for anyone who was following this post, I found a work-around for the problem I was having with my array of objects. The original code looked like this: function getEvents($filename) { //string $filename $event_list = array(); $event_object = new event(); $i = 0; @ $fp = fopen($

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Matthew Darcy
Hi Phil thanks for taking the time to reply back. allow me to share my code (still learning so be gentle.) I register 2 session vars from 2 input boxes. I then select * from the user table where the to variables match (username and password) if they match I want to register the auth_level field

[PHP] ODBC Cobol Driver

2002-03-06 Thread William Lovaton
Hello people, I would like to use a Cobol database with PHP... it's urgente to get the information contained in that DB. I need the ODBC driver for cobol, it doesn't care the operating system, it could be Linux, Windows 2000 or Windows 98. Especifically, I have a .NDX file (indexed i guess) but

[PHP] Multiple Time Stamps

2002-03-06 Thread James Taylor
I'm working on a project for a friend of mine that is basically a web log. When he makes a post, it inserts the data into a MySQL database, and also inserts a timestamp which is data("g:ia") (shows hh:mm am/pm). It then just displays all of the posts with the timestamps underneath them. Well

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
A few things here. Is this the full code you are using? First thing however is that you have to specifically assign values for a session variable. It is simply not enough to register the session variable. So if you >session_register("login_username"); And echo $login_username it will print not

[PHP] preload dynamic image problems

2002-03-06 Thread Adrian Murphy
This seems strange to me but i promise it's happening. I'm dynamically creating images for a page ,calling them so: I'm also preloading the mouseover versions. the problem is that the images are not being preloaded: javascript problem you say? the strange thing is that when i use the source of th

[PHP] COM and php.... Several issues....

2002-03-06 Thread jeremy spielmann
I've read through most of the documentation on how to use COM to create MS Word documents via PHP, but I'm still having some issues that I can't seem to find any help on. CODE: Version)\n"; $word->visible = 1 ; $word->Documents->Add(); $word->Selection->Typetext("This is a test"); ?> RE

[PHP] PHP and Majordomo

2002-03-06 Thread Phillip S. Baker
Greetings Folks, Is there a PHP application out there that handles admin functions to majardomo email lists? If so where can I get something like that? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FYI Using Qmail & PHP

2002-03-06 Thread Steven Walker
To whom it may concern, I recently had an ordeal trying to get PHP generated email to work using with qmail. After switching web servers, suddenly my automated emails were not working, coming out blank or with mime attachments. If anybody runs into the problem, the fix is quite simple (but obs

[PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Caleb Carvalho
Hi all, PHPBuilder.com Has an Easy File Upload Article, i find it to be very useful and helpful for my situation, does any one know of a similar but for download the uploaded file? I would like to upload and download file in my server directory using php, please, please let me know of any art

[PHP] Re: FYI Using Qmail & PHP

2002-03-06 Thread Michael Kimsal
Steven Walker wrote: > For some reason (I don't know why) qmail doesn't like the CRLF. > Probably because Dan Bernstein didn't invent it. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP-Based Authentication Security?

2002-03-06 Thread Coggeshall, John
Hey all.. I've got a question -- I'd like to restrict access to entire directories based on if the user has been authenticated or not. Basically, I'd like to set up a auto-include *FROM APACHE* to run a PHP script prior to sending any documents what-so-ever and only send the requested document i

[PHP] Evaluating code

2002-03-06 Thread Ernesto
Hi, I have code stored on a server which I retrieve via fsockopen() and put it into a variable (It's like if it were on a database). Now, I want to eval that code, but eval() won't work because it has HTML and PHP mixed, with and everything. I know I can eval this code saving it to a file an

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread Michael Kimsal
John Coggeshall wrote: > Hey all.. > > I've got a question -- I'd like to restrict access to entire directories > based on if the user has been authenticated or not. Basically, I'd like > to set up a auto-include *FROM APACHE* to run a PHP script prior to > sending any documents what-so-ever and

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread J Smith
An easier way to do it might be to use HTTP authentication with apache using .htaccess and .htpasswd files, which can be placed in the secure directories. (Or use one global .htpasswd file and have all .htaccess files point to it.) Another possibility would be to set up two PHP scripts, one b

[PHP] Perl and PHP

2002-03-06 Thread lists
I need to pass a variable to Perl from a PHP script. I am somewhat know PHP but I do NOT know perlI am running my perl script off of the command line. I tried /path/to/somewhere/script.pl?var=var but it did not work. I would love any help you could provide me Thanks, Michael -- PHP G

[PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
heres my example: I want to break up the search words in a string. eg: $q = green eggs would like that to be $q1 = green $q2 = eggs ... then the mysql process $sql = ""; for ($i = 0; $i < $num; $i++) if (strlen($getme_arr[$i]) > 0) $sql .= " '%".$getme_arr[$i]."%'";

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Jim Koutoumis
Not without seeing some html code. If you haven't altered any of the other font/color settings I'd have thought they'd all be the same color, black. Look up some info on 'Cascaded Style Sheets',... then it'd be as simple as and all of the text/alignment, etc,.. takes the settings of whatever is

Re: [PHP] Perl and PHP

2002-03-06 Thread Chris Boget
> I need to pass a variable to Perl from a PHP script. I am somewhat know > PHP but I do NOT know perlI am running my perl script off of the > command line. I tried /path/to/somewhere/script.pl?var=var > but it did not work. > I would love any help you could provide me it would be /path/

Re: [PHP] Perl and PHP

2002-03-06 Thread Steve Cayford
If you're running a perl script on the command line you would use /path/to/perl/script.pl value1 value2 value3 ... In your perl script $ARGV[1] should hold value1, $ARGV[2] should hold value2, etc. -Steve On Wednesday, March 6, 2002, at 02:48 PM, [EMAIL PROTECTED] wrote: > I need to pass a v

[PHP] Makeing $string into CAPS

2002-03-06 Thread Philip J. Newman
How can I make a $string = hello into $string = HELLO? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

Re: [PHP] Makeing $string into CAPS

2002-03-06 Thread Jason Lotito
-- Original Message From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 4:18 PM Subject: [PHP] Makeing $string into CAPS How can I make a $string = hello into $string = HELLO?

Re: [PHP] Help with a search array.

2002-03-06 Thread Hank Marquardt
$words = explode(" ",$keywords); foreach($words as $word) { Create your sql. } .. or $words[0] = 'first word', $words[1]='second word' That will do what you asked, though I suspect you'll be back when you want to add quoted phrases, such that you could have $q = green eggs "and

RE: [PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Boaz Yahav
Search http://www.weberdev.com for "download". Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:31 PM To: [EMAIL PROTECTED] Sub

[PHP] PHP output during longer program run times

2002-03-06 Thread Ando Saabas
Lets say i have a script that runs for a longer period of time, 1-10 minutes. Id like the script to give output as to what it is doing while it runs, but the problem is, that it wont print output on runtime, but it will output everything at the same time after it has completed the whole job. Even

[PHP] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
Hi there, I want to include some data into my website which covers malaria and yellow feewer related to each country. On the WHO website are all the infos I need. Their webmaster told me that unfortunatelly there is no db behind that and everything gos with html files. But I am free to extract th

Re: [PHP] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Erik Price
On Wednesday, March 6, 2002, at 01:49 PM, Andy wrote: > I want to include some data into my website which covers malaria and > yellow > feewer related to each country. To each his own, I suppose... > Now I have a table in a MySQL db naming all those countries. The goal > is to > extract the

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
Hi Andy, The little snippet you showed from the text file made me think that the data layout for each country is not consistent. For example: For Algeria there is the country name and right underneath goes the info about yellow fever and malaria as opposed to American Samoa where underneath the c

[PHP] Re: [PHP-DB] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
Hello Gurhan, thanx for your help. You are right, the file is not consistent. But some things are. For example that every line contains one data set and that every line begins with the name of the column I would like to have followed by a : I could yous win32, linux rh72 and osx to do this. The

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
Yeah it is getting really off the topic i will email you in private.. :) Gurhan -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Difficulty on how to extract data out of a text w

[PHP] ImageTTFText function does not work with freetype 2 on Solaris 2.8

2002-03-06 Thread Ziying Sherwin
We installed php 4.1.2 with gd 2.0.1 and freetype 2.0.5 library support on our Solaris 2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() stopped to work properly with the new installation. No text generated in the image. When we tried to use cyberbit fonts to generate a UT

Re: [PHP] Evaluating code

2002-03-06 Thread Paul Roberts
You can do eval("?>$fp"); this will echo the evaluated $fp data. as you exit php mode before the eval, so any php in the file needs to be in tags you can also catch it with output buffering if you need to. Paul Roberts [EMAIL PROTECTED] - Original Message - F

Re: [PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
So basicly what your saying is this ... I have to split the words into into the different veriables ... count the veriables and then put them into a loop in the mysql thingie. $words = explode(" ",$keywords); don't give me veriabe1 verible2 etc - Original Message - From: "Hank Marquar

RE: [PHP] passing large quantities of form data

2002-03-06 Thread Boaz Yahav
Why not split the form into several tags where only one of them is visible at a time. A "Next" button will move the users to the next part of the form (Next ). and a Previous button will allow them to go back to the previous part of the form and fix anything they like. This way, you only actually

[PHP] Re: Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
For anybody interested in this topic. I solved the prob with followin php script: $datei = "malaria_yellowfeewer.txt"; $line = file($datei); for($x=0;$x"; } */ // malaria if (substr($line[$x+3],0,4)== 'Mala'){ $malaria = str_replace("Malaria: ", "",$line[$x+3]); #insert into

Re: [PHP] Help with a search array.

2002-03-06 Thread Hank Marquardt
I think it does what you want .. explode returns an array, so then you iterate the array and build your 'like' clauses. On Thu, Mar 07, 2002 at 10:33:54AM +1300, Philip J. Newman wrote: > So basicly what your saying is this ... > > I have to split the words into > > into the different veriables

  1   2   >