[PHP] sessions problem, need help

2003-02-19 Thread Noel Akins
Hello, I'm new to sessions and I know a little php, but don't use it enough to remember it. I'm trying to use sessions for a couple of reasons. I will explain as i go along. My index.html is this (www.loveobjects.com) -not porn my host uses version 4.0.6 html head script language=javascript

[PHP] Re: file not opening in internet explorer

2003-02-19 Thread John Taylor-Johnston
Ok, someone help him out. Maybe, just maybe the file belongs to someone else than you. I had that happen to me once too. CuteFTP can show you that. Is this possible people? What happened when you checked the permissions? 644? Then CHMOD it 644 again yourself to see if it makes a difference.

Re: [PHP] file not opening in internet explorer

2003-02-19 Thread Jason Wong
On Wednesday 19 February 2003 15:27, DIKSHA NEEL wrote: $fp = fopen(\bdoi_change\sundar.html, w); i am able to write to this file through my php page filecheck.php and even am able to read the written contents. but when i enter http://192.168.0.1/bdoi_change/sundar.html in my internet

Re: [PHP] Re: file not opening in internet explorer

2003-02-19 Thread Ernest E Vogelsinger
At 09:07 19.02.2003, John Taylor-Johnston said: [snip] What happened when you checked the permissions? 644? Then CHMOD it 644 again yourself to see if it makes a difference. [snip] Make sure the webserver can

[PHP] Re: file not opening in internet explorer

2003-02-19 Thread John Taylor-Johnston
dear john, i made the CHMOD myself to 644. but the file is still not opening. do u have any more ideas? Sorry no. Tapped out. But I'm not a pro coder myself. Someone will answer. Someone is awake and coding. Come on guys. Give the lady a break. and i am not 'he'.i am 'she'. I stand corrected

Re: [PHP] file not opening in internet explorer

2003-02-19 Thread John Taylor-Johnston
the file permissions are rw-r-r Stupid question -- are you running a webserver? Charming isn't he? /* The fact that 47 PEOPLE are yelling and sweat is cascading down my SPINAL COLUMN is fairly enjoyable!! */ Indeed. Help the colleague out Jason, or get off the channel. -- PHP General

Re: [PHP] file not opening in internet explorer

2003-02-19 Thread Ernest E Vogelsinger
At 08:27 19.02.2003, DIKSHA NEEL said: [snip] $fp = fopen(\bdoi_change\sundar.html, w); i am able to write to this file through my php page filecheck.php and even am able to read the written contents. but when i enter

[PHP] Re: file not opening in internet explorer

2003-02-19 Thread Paul Chvostek
On Wed, Feb 19, 2003 at 07:27:02AM -, DIKSHA NEEL wrote: hi all, Hi Diksha, $fp = fopen(\bdoi_change\sundar.html, w); Mind your slashes. Is this PHP script running on a unix/Linux box, or in MS Windows? If it's unix, remember that a backslash is *not* the characters used to identify

[PHP] BBS software in PHP?

2003-02-19 Thread Jean-Christian Imbeault
Can anyone recommend a simple (and free) BBS module/software written in PHP. preferably something that writes to a DB and preferably PoserSQL. I would like to add some bulletin board functionality to my web pages but don't feel like reinventing the wheel :) Jc -- PHP General Mailing List

[PHP] DB row selection

2003-02-19 Thread Hans Prins
Hello, I recently learnt that with the code as stated below, I can select one row: $query = SELECT * FROM polls ORDER BY pollID ASC LIMIT 0,1; However as far as I could figure out, I can only select the top row or tell it at what rownumber to start and end. What if I wanted to select the bottom

[PHP] PDF_OPEN_IMAGE

2003-02-19 Thread Joel Colombo
I am lost on this pdf_open_image(); i am creating an image... can i do this $image = ImageCreateTrueColor(100, 100); $red = ImageColorAllocate ($image, 255, 0, 0); $blue = ImageColorAllocate ($image, 0, 0, 255); ImageFilledRectangle($image, 0, 0, 100, 100, $red);

Re: [PHP] DB row selection

2003-02-19 Thread Ernest E Vogelsinger
At 10:57 19.02.2003, you said: [snip] Hello, I recently learnt that with the code as stated below, I can select one row: $query = SELECT * FROM polls ORDER BY pollID ASC LIMIT 0,1; However as far as I could figure out, I can only select the top row or tell

RE: [PHP] Block direct image loads but allow them in PHP

2003-02-19 Thread Rich Gray
[snip] if(isset($i)) { //codeImageURL decodes $i into an image path that we can work with $link=codeImageURL($i); if($link!= (isAdmin() || !isThisFileBlocked($link))) { header(Cache-control: private); header(Content-type: image/jpg);

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
That's weird.. that was the first thing I tried (DESC), but it gave me a syntax error at runtime.. however, when I tried it now, it worked.. I probably had another error that confused me. Thx a bunch :-) Ernest E Vogelsinger [EMAIL PROTECTED] schreef in bericht [EMAIL

Re: [PHP] DB row selection

2003-02-19 Thread Joel Colombo
same thing $query = SELECT * FROM polls ORDER BY pollID DESC LIMIT 1; dont need both params for LIMIT. just the num of rows u want back works too. Joel Hans Prins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That's weird.. that was the first

[PHP] Passing info to forms

2003-02-19 Thread Chris Blake
Greetings all, Whenever I run the code below, it bombs out with error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/data/ClientWebs/chrisplay/CustAmend.php on line 15

Re: [PHP] DB row selection

2003-02-19 Thread Richard Whitney
You might want to look at mysql_data_seek() HTH RVW Quoting Hans Prins [EMAIL PROTECTED]: ### Hello, ### I recently learnt that with the code as stated below, I can select one ### row: ### ### $query = SELECT * FROM polls ORDER BY pollID ASC LIMIT 0,1; ### ### However as far as I could

Re: [PHP] Passing info to forms

2003-02-19 Thread Richard Whitney
Quoting Chris Blake [EMAIL PROTECTED]: ### Greetings all, ### ### Whenever I run the code below, it bombs out with error ### ### ### Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or ### `T_NUM_STRING' in

Re: [PHP] Passing info to forms

2003-02-19 Thread Richard Whitney
Quoting Chris Blake [EMAIL PROTECTED]: ### Greetings all, ### ### Whenever I run the code below, it bombs out with error ### ### ### Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or ### `T_NUM_STRING' in

RE: [PHP] escaping quotes for redisplay

2003-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 18:11 PS: I am using htmlentities() on the output before displaying it in the browser, but it doesn't apply to singlequotes. Ahem! I quote from

[PHP] online tutorial

2003-02-19 Thread DIKSHA NEEL
dear all, i am a final year engineering student and have started studying PHP since last 10 days. can anybody suggest some good online tutorial for mastering PHP? regards, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] BBS software in PHP?

2003-02-19 Thread Tim Fletcher
PoserSQL? do you mean PostgreSQL? my favorite is PHPBB (www.phpbb.com) HTH t. -Message d'origine- De : Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Envoye : mercredi 19 fevrier 2003 10:25 A : [EMAIL PROTECTED] Objet : [PHP] BBS software in PHP? Can anyone recommend a

Re: [PHP] BBS software in PHP?

2003-02-19 Thread John Wards
On Wednesday 19 Feb 2003 9:25 am, Jean-Christian Imbeault wrote: Can anyone recommend a simple (and free) BBS module/software written in PHP. preferably something that writes to a DB and preferably PoserSQL. If you want a simple and non bloated forum software you could do worse than use

RE: [PHP] online tutorial

2003-02-19 Thread Rich Gray
dear all, i am a final year engineering student and have started studying PHP since last 10 days. can anybody suggest some good online tutorial for mastering PHP? regards, diksha. Hi Diskha try these urls... http://www.zend.com/zend/tut/

Re: [PHP] online tutorial

2003-02-19 Thread Awlad Hussain
http://www.devshed.com http://www.phpfreaks.com Search Google - PHP Tutorials - Original Message - From: DIKSHA NEEL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 11:50 AM Subject: [PHP] online tutorial dear all, i am a final year engineering student

[PHP] limit contral

2003-02-19 Thread James Shergold
Hi, all I'm quite new to php and still finding my way round and came across a problem. I'm making a script that pulls property (house) from a mysql database in categories e.g. there cat1, cat2 ect and in each category I only want to show 10 properties a time then click next to show the next 10

[PHP] Backticks and echo

2003-02-19 Thread SLanger
Hello everyone I reread the manual again on the topic of backticks and from that I have security / usabilitiy issue. Here is the issue: When I check formdata from a simple form I use regular expression to make sure the input confirms to certain guidlines before including them into my

Re: [PHP] Backticks and echo

2003-02-19 Thread Ernest E Vogelsinger
At 13:27 19.02.2003, [EMAIL PROTECTED] said: [snip] happens when I echo the text out. So if I don't allow backticks in my input field and I want to redisplay that input I execute the code right? Meaning I can'T redisplay the text as the user inputed it.

Re: [PHP] limit contral

2003-02-19 Thread Jono Bacon
James Shergold wrote: Hi, all I'm quite new to php and still finding my way round and came across a problem. I'm making a script that pulls property (house) from a mysql database in categories e.g. there cat1, cat2 ect and in each category I only want to show 10 properties a time then click

[PHP] hi

2003-02-19 Thread DIKSHA NEEL
hi jason, my file is opening perfectly fine now. thanks. take care, diksha. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recursion with database tables

2003-02-19 Thread Jono Bacon
Hi all, I am still pretty new to PHP, but I was chatting to a friend the other day and he put some thoughts into my head about how tables are laid out and processed. At the moment I have three tables: Topic, Message, Comment. A topic has messages and each message can have comments. I have set

Re: [PHP] limit contral

2003-02-19 Thread Ernest E Vogelsinger
At 13:11 19.02.2003, James Shergold said: [snip] I'm making a script that pulls property (house) from a mysql database in categories e.g. there cat1, cat2 ect and in each category I only want to show 10 properties a time then click next to show the next 10

[PHP] Best way to sort a multidimentional array....

2003-02-19 Thread Mark Cubitt
Hello, I need to manipulate, the following data in a number of diffierent ways (specifics follow). Telephone extension number - 4 digits in the range 2000-2119 Total time on phone - seconds integer values Total No. of calls - integer value Name - A persons name I'm purposely NOT using a

[PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread Abu Musaab
I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. silly hah ..? Thanx in advance. _ Add photos to your messages with MSN 8. Get 2 months FREE*.

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread Jono Bacon
Abu Musaab wrote: I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. silly hah ..? Thanx in advance. _ Add photos to your messages with MSN 8. Get 2 months

Re: [PHP] Recursion with database tables

2003-02-19 Thread Ernest E Vogelsinger
At 14:43 19.02.2003, Jono Bacon said: [snip] At the moment I have three tables: Topic, Message, Comment. A topic has messages and each message can have comments. I have set this up with a table each and a field for the id of the parent (e.g. a comment will

Re: [PHP] Recursion with database tables

2003-02-19 Thread Jono Bacon
Ernest E Vogelsinger wrote: At 14:43 19.02.2003, Jono Bacon said: [snip] At the moment I have three tables: Topic, Message, Comment. A topic has messages and each message can have comments. I have set this up with a table each and a field for the id

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread Abu Musaab
I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. silly hah ..? Thanx in advance. EXPLAINING MY IDEA (in other words): I mean making a script that goes to my email in, say Hotmail, and get all the messages and store them

RE: [PHP] Best way to sort a multidimentional array....

2003-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Mark Cubitt [mailto:[EMAIL PROTECTED]] Sent: 19 February 2003 12:43 I need to manipulate, the following data in a number of diffierent ways I'm storing the data in a multidemensional array, the stucture of which is below, and I need to sort it by

Re: [PHP] security issues on shared servers

2003-02-19 Thread David Feldman
Thanks. Looks like a properly configured safe mode could eliminate a lot of problems. A few follow-up questions: 1. I see in the PHP doc comments a patch for Apache (http://luxik.cdi.cz/~devik/apache/) that runs different virtual hosts as different users. Anyone know anything about it, in

Re: [PHP] online tutorial

2003-02-19 Thread David Feldman
I originally learned PHP from the section in O'Reilly's book, Webmaster in a Nutshell. I did have extensive prior programming experience though. Since then, the PHP online manual has been more than sufficient. --Dave On Wednesday, February 19, 2003, at 07:10 AM, Awlad Hussain wrote:

Re: [PHP] is it possible to retrieve email from HOTMAIL

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 12:57:42 +, you wrote: I wonder if it is possible to retrieve emails from an email account say in hotmail, yahoo, or any other email provider. http://people.freenet.de/courierdave/ http://httpmail.sourceforge.net/

Re: [PHP] Recursion with database tables

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 13:56:49 +, you wrote: One questions though - if I delete a topic, I need to delete all of its child messages and all of the child comments from each message. What is the best technique to do this? This has been driving me up the wall as it seems to involve some kind of

Re: [PHP] Recursion with database tables

2003-02-19 Thread Jono Bacon
David Otton wrote: On Wed, 19 Feb 2003 13:56:49 +, you wrote: One questions though - if I delete a topic, I need to delete all of its child messages and all of the child comments from each message. What is the best technique to do this? This has been driving me up the wall as it seems

Re: [PHP] security issues on shared servers

2003-02-19 Thread David Feldman
OK, my question #2 below is answered by the docs: Safe mode disabled the backtick operator. But having turned on safe mode on my local test server, I have another question: Suddenly my include statements that user relative paths don't work. For example: include

Re: Re[4]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread Martin Marques
On Mar 18 Feb 2003 16:00, [EMAIL PROTECTED] wrote: Very weird - I thought RedHat would have enabled it too. I did When I say RH, I mean RedHat. The diference seems to be that I'm on 7.3, while you're on 7.1. Still, it should be compiled with ftp support. copy-and-paste the problem command to

Re: [PHP] Recursion with database tables

2003-02-19 Thread rblack
I'm assuming the comments don't include the topid id - if they did this would be trivial. So I'm assuming the following structure... Topics: topicid Messages: messageid topicid Comments: commentid messageid So, say you want to delete topic 23, and all

Re: [PHP] Recursion with database tables

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 14:16:47 +, you wrote: Otherwise, yes, in MySQL you have to recurse down the tree deleting comments. How would I go about recursing down the tree? Has anyone done this before? I have, but it's been a while. Something like (pseudo-code) . def delete_comments(a) : for

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Al
Are you guys it works for in Europe, or outside the USA? I can traceroute to their site just fine, both phpEdit.com and phpEdit.net. And, I can use the IP 212.43.196.19; but it won't open the page. Is it technically feasible to block visitors from a specific country? John Nichel wrote: It

Re: [PHP] php.ini for UNIX sendmail????

2003-02-19 Thread Scott Fletcher
Not that I know of.. Found out the reason Yahoo reject the email I send to Yahoo is because the 'From: ' address isn't [EMAIL PROTECTED] with the proper domain name. What Yahoo got is root@chevy in the 'From: ' section of the email. This is the email that is send from the Unix server. So, I

[PHP] Find IP address

2003-02-19 Thread Christian Ista
Hello, I'd like when a customer fill in a form to recover his IP address, is there a PHP function to do that ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] safe mode not working

2003-02-19 Thread David Feldman
I've enabled safe mode on my local test server, but it doesn't seem to be working. If I run a script owned by one user (me), and within it include (using include()) another script or file owned by another user, the include is successful, whereas it shouldn't be in safe mode. I can verify

Re: [PHP] Recursion with database tables

2003-02-19 Thread Ernest E Vogelsinger
At 15:16 19.02.2003, Jono Bacon spoke out and said: [snip] How would I go about recursing down the tree? Has anyone done this before? [snip] Given the DB layout I sketched before, you would: 1) delete all comments

[PHP] Passing emails to database

2003-02-19 Thread Alberto Brea
Hi, list Is there any way in PHP to pass the emails received automatically into a local MySQL database on the same machine (i.e. the fields datetime, from, to, message, subject, etc), without copying and pasting each message? Maybe by retrieving and parsing the Outlook Express files that keep

Re: [PHP] Find IP address

2003-02-19 Thread David Otton
On Wed, 19 Feb 2003 14:59:27 +0100, you wrote: I'd like when a customer fill in a form to recover his IP address, is there a PHP function to do that ? echo ($_SERVER[REMOTE_ADDR]); Be warned: This is NOT a reliable way to identify a user. These days you are probably /more/ likely to get the

Re: [PHP] Find IP address

2003-02-19 Thread Christian Ista
Be warned: This is NOT a reliable way to identify a user. These days you are probably /more/ likely to get the address of a proxy than the address of the user. Is there a better way to be sure, I have the IP address of the user (the ISP ip address) Your suggestions are welcome. Christian,

[PHP] upgrade from 4.0.6 to 4.3.0

2003-02-19 Thread Billy Chamberlain (W)
Can I upgrade directly from version 4.0.6 to 4.3.0 or should I apply all the patched of the other versions as well. I have difficulty when trying to start Apache to get PHP up and running. It seems if some of the DLL's can not be loaded. Can anyone maybe help me on this? Billy -- PHP General

Re: [PHP] Recursion with database tables

2003-02-19 Thread Ernest E Vogelsinger
At 14:56 19.02.2003, Jono Bacon spoke out and said: [snip] The code that you posed is the technique I have used at the moment. This technique works fine, but like my mate said, this limits me to a single parent for a comment/message. I admit that is

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
Thanks a lot guys, the feedback so far has been most usefull Hans Joel Colombo [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... same thing $query = SELECT * FROM polls ORDER BY pollID DESC LIMIT 1; dont need both params for LIMIT. just the num of rows u

[PHP] Sessions or Cookies?

2003-02-19 Thread Sidar Lopez Cruz
1, What i got to do for manages sessions in my RedHat 8, 2, What i got to do for manages cookies in my RedHat 8, I try to use session vars, but no work I try to use cookies, and when i open two browser, the same cookie is in two browser... this is a problem, I need to carry the user_id in my

Re: [PHP] BBS software in PHP?

2003-02-19 Thread John Nichel
I use phpBB ( http://www.phpbb.com ), and have been quite pleased with it. It supports MySQL, MSSQL, PostgreSQL, and Access. Jean-Christian Imbeault wrote: Can anyone recommend a simple (and free) BBS module/software written in PHP. preferably something that writes to a DB and preferably

[PHP] Document(),passing argument

2003-02-19 Thread William S.
I am trying to get document() to work when the content of an xml file is passed as an argument using Sablotron. My goal is to apply this method to bringing in several xml files to the stylesheet. Below is the test situation. Can anyone see where I am going wrong? --- begin doc_test.php --- ?php

Re: [PHP] Sessions or Cookies?

2003-02-19 Thread Ernest E Vogelsinger
At 15:49 19.02.2003, Sidar Lopez Cruz spoke out and said: [snip] 1, What i got to do for manages sessions in my RedHat 8, 2, What i got to do for manages cookies in my RedHat 8, I try to use session vars, but no work I try to use cookies, and when i open

[PHP] imagick version 0.9.5 released

2003-02-19 Thread Michael Montero
Thanks to Christian Stocker for actually putting the newest release up. It's available here: http://pear.php.net/imagick/ Here are the recent changes: - functions added: imagick_newimagelist() imagick_pushlist() imagick_poplist() imagick_mosaic()

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Mirek Novak
Al wrote: Are you guys it works for in Europe, or outside the USA? I can traceroute to their site just fine, both phpEdit.com and phpEdit.net. And, I can use the IP 212.43.196.19; but it won't open the ... and what about so called 'transparent proxy-cache' ? Ask your ISP. Or try

[PHP] Cannot add header information

2003-02-19 Thread G
I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Mirek Novak
Mirek Novak wrote: Al wrote: Are you guys it works for in Europe, or outside the USA? I can traceroute to their site just fine, both phpEdit.com and phpEdit.net. And, I can use the IP 212.43.196.19; but it won't open the ... and what about so called 'transparent proxy-cache' ? Ask your

[PHP] Javascript function

2003-02-19 Thread Christian Ista
Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

[PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
Finally a workaround to the problem in mail() in PHP I did the posting somewhere, so I'll cut to the chase by posting it here My recent posting does not work too well --clip-- This is for any Unix or Linux machine using the Sendmail. However, no guarentee that it would work in

[PHP] PHP, LDAP - Can't delete from more than 1 group

2003-02-19 Thread Greg
I'm using PHP to add users to my ldap directory. When I create a user they can be added to 1 or more groups. When that user is deleted, I want to remove them from all groups. The code I wrote only removes them from the first group, then gives an error for any other group. Here is the code,

[PHP] Javascript function

2003-02-19 Thread Christian Ista
Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like that : MyExampleFunction('form_name.element_name'); And do that : void function MyExampleFunction(theelement){

Re: [PHP] Javascript function

2003-02-19 Thread John Nichel
You'll probably have better luck addressing your question to a list that supports JavaScript. Christian Ista wrote: Hello, Example, I have this function : void function MyExampleFunction(){ document.form_name.element_name.focus(); } I'd like do something like that, I call the function like

RE: [PHP] Javascript function

2003-02-19 Thread Van Andel, Robbert
Try this. void function MyExampleFunction(theelement) { theelement.focus() } body onload=MyExampleFunction(document.form_name.element_name) The variable theelement will refer to document.form_name.element_name so there is no reason to repeat that portion in the function. Robbert van

[PHP] php, xml and mysql with netscape and ie

2003-02-19 Thread Sunfire
hi.. was just wondering when i use php xml and mysql (standard xml) it seems that netscape 4.7 and below wont see the web page with results from a mysql query on them... we dont know about ie5 or below yet but does anybody know why this is or how to fix it? the nature of the web pages is a table

Re: [PHP] Cannot add header information

2003-02-19 Thread Chris Hayes
At 15:33 19/02/03, you wrote: I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? Are you sure you did not edit a file? Take care that there is

RE: [PHP] file not opening in internet explorer

2003-02-19 Thread Kelly Protsko
You may also need world execute on the file before it will work. I've had this problem myself with certain files and they would only show up once I had world execute on them. rw-r-r-x IF you are looking for a good tutorial there is an awesome book PHP and MySQL web development by welling and

Re: [PHP] Javascript function

2003-02-19 Thread Mincu Alexandru
If you realy need string parameter you could do some string parsing and the function would look something like this: /* * focusTheElement(string) * the parameter should have the folowing format : * 'form_name.element_name' */ fuction focusTheElement(element) { var

[PHP] mail() using Return-Path: and Error-To:....

2003-02-19 Thread Scott Fletcher
Hiya fellas I'm doing the test on sending emails and what I found is that I haven't got these two to to work which is Return-Path: and Error-To: Does anyone know why does it not work??? Here's my sample codes --clip-- $Header = From: [EMAIL PROTECTED]\r\n; $Header

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Danny Shepherd
I'd say an even simpler workaround would be to add '[EMAIL PROTECTED]' as the fifth parameter to the mail function - just as in example 3 of the docs. Danny. - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 3:43 PM

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
That doesn't work either because this machine's SMTP doesn't know it's user in it's own domain, so a modification of the /etc/hosts file is necessnary Danny Shepherd [EMAIL PROTECTED] wrote in message 023901c2d836$773f83c0$6400a8c0@DANNYS">news:023901c2d836$773f83c0$6400a8c0@DANNYS... I'd

[PHP] define(DOC_HOME_PATH, what goes here)

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this img src=? echo IMG_HOME_PATH ?stuff/image.jpg a href=? echo DOC_HOME_PATH ?stuff/index.jspClick Here/a form action=? echo CTL_HOME_PATH ?stuff/process_order.php **do I need to echo? **not

[PHP] syntax question

2003-02-19 Thread Anthony Ritter
Greetings... The following is the _third_ part of a script found in Julie Meloni's book PHP Essentials on page 118. The script dynmically generates a form box of field names, field types and field sizes for a mysql table depending on what the user chooses. My question is about syntax or logic in

Re: [PHP] Backticks and echo

2003-02-19 Thread Jim Lucas
you could always to a preg_replace() and replace the backticks with their #xxx; equal. Jim - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 4:27 AM Subject: [PHP] Backticks and echo Hello everyone I reread the manual again on the

[PHP] prepend file

2003-02-19 Thread Dennis Gearon
How can I get a prepend file to work out of my .htaccess file when the host provider is running safe-mode? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array declarations

2003-02-19 Thread Ernest E Vogelsinger
At 22:56 18.02.2003, Joachim Krebs spoke out and said: [snip] Is there any speed difference at all from the following two code blocks (miniscule or not)? If so, which is faster? $cfg[db][host] = ; $cfg[db][user] = ; $cfg[db][pass] = ; or

Re: [PHP] syntax question

2003-02-19 Thread Ernest E Vogelsinger
At 18:06 19.02.2003, Anthony Ritter spoke out and said: [snip] The question: Is the reasoning that a comma *must* be added since this is _within_ a loop? As in: CREATE TABLE chairs ( id INT(5), item VARCHAR(50), desc TEXT , price FLOAT , // common should

[PHP] Re: Cannot add header information

2003-02-19 Thread Pete
G wrote: I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? ?php // error is the space after the last below - yes its a space ? -- PHP

[PHP] sending uploaded images as mail attachments

2003-02-19 Thread David Feldman
I'm working on a script that allows the user to upload several images, then base64 encodes them and attaches them to an email to me. I'm having trouble getting the images readable on the other end. I've managed to get all the MIME types and message parts straight enough to be recognized as

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Al
Tried both of your suggestions with IE6 and Moz. Nothing worked. I did get though via a link from a site in France. I sent an email to [EMAIL PROTECTED] using their message popup. I also mentioned that i had intended to make a contribution; but, that it would be pointless if I couldn't reach

Re: [PHP] syntax question

2003-02-19 Thread Anthony Ritter
This is what I was getting at. The following is correct mysql syntax in which a comma must be added after each field - except for the last field - in this case price: i.e., . CREATE TABLE chairs( id int(5), item varchar(50), desc text, price float ); .

[PHP] Re: sending uploaded images as mail attachments

2003-02-19 Thread Philip Hallstrom
http://www.phpguru.org/mime.mail.html makes it pretty easy. On Wed, 19 Feb 2003, David Feldman wrote: I'm working on a script that allows the user to upload several images, then base64 encodes them and attaches them to an email to me. I'm having trouble getting the images readable on the

Re: [PHP] Cannot add header information

2003-02-19 Thread Chris Shiflett
--- Chris Hayes [EMAIL PROTECTED] wrote: At 15:33 19/02/03, you wrote: I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why?? Are you sure you

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
The reason for this is due to the fact that PHP can override Sendmail but Sendmail can not override the Unix/Linux Operating System. So, once sendmail work without a problem in O/S, including inside the domain on the local network where hte machine reside and outside of the local network then you

[PHP] Date/Time Logic

2003-02-19 Thread Pushpinder Singh Garcha
Hello Everyone, My php/mysql application needs to keep track of the first time that a User logs on to the site. Afterwards the User should be allowed either 3 days / 3 months/1 year of access to the site. Once the stipulated time period is over the system should invalidate the login of the

[PHP] Re: mail() using Return-Path: and Error-To:....

2003-02-19 Thread Scott Fletcher
Okay, saw the other posting I made earlier today and someone spoke about using the 5th parameter, '[EMAIL PROTECTED]'. So, I tried it and it work with the Return-Path: and Error-To:... Finally!!! I have been working on the sendmail problem for a week and now I'm glad to see it coming to an

[PHP] Re: Date/Time Logic

2003-02-19 Thread Philip Hallstrom
Store the timestamp of their first login to a database. Also store the number of days (3, 90, 365) that there account is valid. Setup a script to nightly go through the database and for any records where: first_login_timstamp + number_of_days right_now is true invalidate their login and send

[PHP] open_basedir Option

2003-02-19 Thread Joachim Krebs
How do I set the php.ini setting open_basedir on a per-directory basis? Ideally, I would like to set it using .htaccess files... Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating a file to write to?

2003-02-19 Thread Beauford.2002
Hi, I want to be able to check to see if a file exists and if so I want to be able to overwrite it. If it doesn't exist I want to be able to create it and then make sure it is writable. A lot of this I have found in the PHP manual, but I can't find anywhere on how to just create the file or

Re: [PHP] Creating a file to write to?

2003-02-19 Thread Adam Voigt
http://www.php.net/fopen fopen(filename,w); On Wed, 2003-02-19 at 13:13, Beauford.2002 wrote: Hi, I want to be able to check to see if a file exists and if so I want to be able to overwrite it. If it doesn't exist I want to be able to create it and

Re[2]: [PHP] syntax question

2003-02-19 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 3:34:31 AM, you wrote: AR This is what I was getting at. AR The following is correct mysql syntax in which a comma must be added after AR each field - except for the last field - in this case price: AR i.e., AR . AR CREATE TABLE chairs( AR id

  1   2   >