Re: [PHP] Execute a shell command using thttpd-php

2006-03-15 Thread James E Hicks III
Nelson Carreira wrote: James E Hicks III wrote: Nelson Carreira wrote: Yes, I've tried using both absolute and relative paths. The system output is 0 when I execute, for example, nvram show from the php. From what I know this output means success. Although there's no output on php

Re: [PHP] Bar codes

2005-05-20 Thread James E Hicks III
Emil wrote: Hello! Sorry if this is off topic. I'm making a php site where one can order a kit and now I would like to mark the kits with bar codes generated by the php script. I would also need some kind of bar code hardware reader and some way for a computer to read the result from the bar

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread James E Hicks III
Lee Chen wrote: Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. Looks like you need to check this in your php.ini file. Could be your

Re: [PHP] str_replace on words?

2005-05-12 Thread James E Hicks III
Merlin wrote: Hi there, I am trying to strip some words from a sentence. I tried it with str_replace like described here: http://www.totallyphp.co.uk/code/find_and_replace_words_in_a_text_string_using_str_replace.htm Unfortunatelly it does not work the way I want, because if I want to replace

Re: [PHP] PhP e COBOL

2004-11-19 Thread James E Hicks III
Andre wrote: Hello I need some help in this subject php + COBOL. I need to load data of a program in COBOL for a site written in php. The data must be loaded for a DB in mysql. Every night a job runs on our Mainframe here that creates a big file filled with SQL updates. Every morning a CLI

Re: [PHP] Arrays

2004-11-11 Thread James E Hicks III
Ben Miller wrote: edit I hope this is not a stupid question, but I am learning how to work with Arrays, and am having trouble figuring out how to move array values [the whole array and all of it's values] from page to page and/or store in a db. ? echo (htmlheadtitleArray

Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread James E Hicks III
On Thursday 30 September 2004 10:18 am, [EMAIL PROTECTED] wrote: Thank you, You can't expect that people in government know how to read! Much less think! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session understanding

2004-09-02 Thread James E Hicks III
On Thursday 02 September 2004 10:09 am, Michael Gale wrote: So if I try and store a variable that would be unique to each window it would get over written. Is this a configuration problem ? It sounds to me like you need to turn off session.auto_start in your php.ini file and call

[PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
OK, so it wasn't the nut behind the wheel after all. I am still having problems with sessions after upgrading to PHP 4.3.8. The test code below works as expected on server equipped with PHP 4.3.6 and keeps the session start time the same no matter what link you click on. However with version

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 01:14 pm, Torsten Roehr wrote: James, have you tried with manually calling session_start() and setting auto_start = 0? If not, please try this. Haven't followed your previous thread so please forgive me if I'm asking something you already wrote. Are you using cookies?

Re: [PHP] Securing Forms???

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 02:57 pm, Gerard Samuel wrote: I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden

[PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On a server that is running PHP 4.3.6 I can use a link like this and the accompanying javascript to get a popup window in my application. After upgrading to PHP version 4.3.8 this no longer works. For some reason when you click on this link now, it looks like it creates a new session which of

Re: [PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On Thursday 12 August 2004 10:32 am, James E Hicks III wrote: On a server that is running PHP 4.3.6 I can use a link like this and the Please disregard this request for help, as the problem seems to be the nut behind the wheel. James -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread James E Hicks III
I'd like to make a few changes here to hopefully answer the original question. On Wednesday 28 July 2004 01:35 pm, Ed Lazor wrote: echo select name=\record\; while ($record = mysql_fetch_array($results)) { if ($_POST[record] == $record[ID]){ $SELECTED = SELECTED ;

Re: [PHP] Printing using php script CRON

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 08:33 am, Vern wrote: Actually it's a netwotl printer and in order to print the job I need to type the following on the box:     lpr -P hp1300n myfilename.txt So I'm not exctaly sure how I can do that This works great for me. Except that I use lp -d printername

Re: [PHP] freeTDS

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 03:54 pm, Edward Peloke wrote: My web host recompiled php with the freeTDS library for me so that I can use the php mssql extensions but it still doesn't seem to work. He has told me that I can change the configuration file...what needs to be done? Just guessing here,

Re: [PHP] background=#

2004-07-22 Thread James E Hicks III
On Thursday 22 July 2004 10:23 am, Tobias Brasier wrote: The problem is that when I run the page, the log files show that the page was accessed twice. I would be looking for calls to the header() function or a meta refresh tag in the header of this program. Maybe there is an include() file

Re: [PHP] Log all GET AND POST?

2004-07-15 Thread James E Hicks III
On Thursday 15 July 2004 09:58 am, Robert Sossomon wrote: I was wondering if anyone knew of a way to log all GET and POST information being passed to a log file? Thanks, Robert $DEBUG_DATA = $_SERVER['PHP_SELF'].\n; while (list ($key, $val) = each ($_REQUEST)) { if

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread James E Hicks III
On Tuesday 13 July 2004 04:57 am, [EMAIL PROTECTED] wrote: Hi there... My misses has just started a new job, but has got loadsa websites blocked, including hotmail. So I've decided to see if there's a php alternative, that I can code/steal etc... If I can host a series of php pages, that

Re: [PHP] MySQL Database Connection Question

2004-07-08 Thread James E Hicks III
On Thursday 08 July 2004 09:59 am, Harlequin wrote: I have a user registration form that asks new users to register. However, Do I post the MySQLconnection string in the page they are completing or in the later page that the data is posted to, or both...? I don't think I understand your

[PHP] Re: Form + database / PHP survey + database

2004-06-23 Thread James E Hicks III
On Wednesday 23 June 2004 03:32 pm, tommie ramirez.andujar wrote: Dear colleagues.. I am new to mysql and I am trying to do the following, to create a php file that may contain some kind of form or survey and the data entered may be added to a database. Here's the code of the html form

Re: [PHP] phpmyadmin

2004-05-24 Thread James E Hicks III
On Monday 24 May 2004 04:04 pm, Chris W wrote: It sounds like this is for adding the date and time to file name for the backup but I can't figure out how it works. Maybe an email to the phpMyAdmin list will get you an answer faster than in here? James -- PHP General Mailing List

Re: [PHP] cron job for php not working

2004-05-20 Thread James E Hicks III
On Thursday 20 May 2004 11:35 am, Jay Blanchard wrote: At the command line type which php and it will return the full path to php. Modify your line in the crontab with the full path... 0 6 * * * /usr/local/bin/php /home/www/project/app_cron/follow_up_new_members.php I always put the

Re: [PHP] Webcapture to PDF

2004-05-13 Thread James E Hicks III
On Thursday 13 May 2004 11:59 am, Ashley M. Kirchner wrote: Looking for a (open source) solution here: is there some way that I can convert an already existing HTML page to a PDF file, by means of a script (on a unix box)? What I'd like to do is have a button on all of our pages that,

Re: [PHP] Uploading and directory permissions

2004-05-10 Thread James E Hicks III
On Monday 10 May 2004 05:20 am, Mario wrote: Anyways I was wondering if there is a way to upload through PHP without having write permission to all. Is there a way maybe, for the script, to change permission to write before the upload and then take it off? or anything else I can do to protect

Re: [PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread James E Hicks III
On Monday 19 April 2004 12:22 pm, Marco Schuler wrote: Hi I want to prevent the user to use the browser's back-/refresh-button in my multipage registration form (as well as in other forms). How can I do this? If you look back in the archives of this list you will see the way that I did

[PHP] How to disable browser's back button, refresh button and multiple clicks of submit buttons using PHP.

2004-04-19 Thread James E Hicks III
This is the only way that I have been able to insure that the users can not use any of the bad buttons (back,refresh,double-click submit). The java-script solutions will only work for users that have java-script enabled. I put the following in my authenticate.php which is included at the top of

[PHP] No Back Button in forms

2004-04-09 Thread James E Hicks III
On Friday 09 April 2004 02:14 pm, Daniel Clark wrote: Another question envolves the use of the back button. My client wants the use of the back button to be turned off for security reasons for some pages. His preference is to have a page expire if it is arrived on by pressing the back

Re: [PHP] Really Annoying Require/Include Error

2004-03-30 Thread James E Hicks III
On Tuesday 30 March 2004 12:33 pm, Mike R wrote: I am getting this error: You came to the right place. Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in include_path='' says that your php.ini does not have default

[PHP] session.bug_compat_42

2004-03-23 Thread James E Hicks III
What does the code look like that is causing this error? I know I can turn the error off but how do I fix the code that is causing it? Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not

Re: [PHP] session.bug_compat_42

2004-03-23 Thread James E Hicks III
(); It's shorter and it will make the warning go away. -Rasmus On Tue, 23 Mar 2004, James E Hicks III wrote: What does the code look like that is causing this error? I know I can turn the error off but how do I fix the code that is causing it? Warning: Unknown(): Your script possibly relies

[PHP] input type=text value=He said, How do I get this to work?, with a frown size=50

2004-03-16 Thread James E Hicks III
How do I get this to work? the input box is only showing He said, input type=text value=He said, How'm I gonna get this to work?, with a frown size=50 James Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread James E Hicks III
On Thursday 11 March 2004 10:47 am, Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? I ain't never heard anything like this before. I do it all the time. Just

Re: [PHP] bar code scaning in intranet ap

2004-02-12 Thread James E Hicks III
On Thursday 12 February 2004 08:26 am, Michal wrote: Great idea. Can I use a keyboard and bar code scanner together? How to use a keyboard, if i connect a scanner into a keyboard port? Michal You use a thing called a wedge. It plugs into your keyboard port on your computer. Then you plug in

Re: [PHP] php header information

2004-02-02 Thread James E Hicks III
On Monday 02 February 2004 08:57 am, Angelo Zanetti wrote: HI all I have a page that has been written by someone else and when I run it and click on a button to valid the username and password to login it sends me back the same page with the following: Warning: Cannot modify header

[PHP] Max GET size?

2004-01-07 Thread James E Hicks III
I've seen the post_max_size in the php.ini. Is there a corresponding get_max_size? I couldn't find anything about this anywhere in the php.ini or apache.conf. I want to send a lot of information via header(Location: http//server.com/program.php?val[]=1) Is there any limit on size of GET

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread James E Hicks III
Try this. mysql_query(INSERT INTO $table ( salutation, name, city } VALUES { \.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\ } James

[PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread James E Hicks III
I have a program that when an operator clicks on a button initiates an ftp transfer of a large file. The program also checks for succesful completion of the transfer and advises the operator of the transfer status. How do I keep the operators browser from timing out so that the status can be

RE: [PHP] Help with my code

2003-06-18 Thread James E Hicks III
What is the value of $subject? fwrite() expects the third value passed to it to be the number of bytes to write. James -Original Message- From: Mark Clarkstone [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Help with my code

[PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
correctly with PHP? James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
\0 is a NULL character, IIRC. Either use single quotes: echo ('EBCO\030774-006\BUBBLER VALVE'); or use two slashes, like you did above: echo (EBCO\\030774-006\\BUBBLER VALVE); ---John Holmes... Problem is that this description is coming from a DB, that's why I was trying to use addslashes,

[PHP] Easier way to delete all entries in an array?

2003-06-12 Thread James E Hicks III
There's got to be an easier way, is there? for ($i=0; $i count($the_array); $i++){ array_pop($the_array); } James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Easier way to delete all entries in an array?

2003-06-12 Thread James E Hicks III
The following has solved my problem. Thanks to all who helped. $the_array=array(); -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Easier way to delete all entries in an array? At 16:13

RE: [PHP] Importing emails

2003-03-27 Thread James E Hicks III
Your going to have to look at your MTA for the answer to this. Basically you need to tell you MTA to invoke a PHP script when it receives an email for this specific address instead of normal delivery. James Hicks -Original Message- From: Alexis Antonakis [mailto:[EMAIL PROTECTED] Sent:

[PHP] IF statement madness

2003-03-14 Thread James E Hicks III
!); } } ? James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] IF statement madness

2003-03-14 Thread James E Hicks III
Comparing a float with an integer can have problems. You could try something like: if(abs($i - $target) .1) { //then they are essentially equal } Kirk -Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:22 AM To: [EMAIL PROTECTED

RE: [PHP] javascript

2003-03-07 Thread James E Hicks III
And what are you doing if the javascript is not enabled in the browser of the client ??? There will be no verification and the user can enter what he want in the field of your form And it's a bit dangerous for your DB if your insert data in a DB... Wow, the only safe way to insure data

RE: [PHP] internal site search

2003-02-18 Thread James E Hicks III
Great news, there is a new tool on the internet called a search engine. What you do is enter a search topic, press enter, and all kinds of links with articles related to your search are returned. Some say this might signal an end to mailing lists, which have been historically used to get answers

RE: [PHP] PHP FTP a security risk?????

2003-02-11 Thread James E Hicks III
Please correct me if I am wrong, but it is impossible for a remote machine to make an ftp connection to local machine running just PHP/Apache/Mysql. The ftp functions available in PHP enable PHP scripts to act as an FTP client and can not be used to accept remote FTP connections. Other functions

[PHP] Variable Fun

2003-01-30 Thread James E Hicks III
in the if evaluation? I even tried putting the (string) inside the IF statement with no difference in execution. P.S. The variables were reporting string before I even tried (string). James E Hicks III -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] uploading + downloading Large files ...

2002-12-27 Thread James E Hicks III
This might be your answer. http://www.phpbuilder.com/columns/florian19991014.php3 James -Original Message- From: Jimmy Brake [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 1:31 PM To: [EMAIL PROTECTED] Subject: [PHP] uploading + downloading Large files ... Hi! My users

RE: [PHP] e-mail

2002-12-26 Thread James E Hicks III
Maybe you need to add the -f to your sendmail command? James -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: [PHP] e-mail hi i found a 'formmail' scripts from somewhere.. the problem isthe email

RE: [PHP] Sound with PHP

2002-12-19 Thread James E Hicks III
The only way this would work with PHP on the webserver would be to embed the sound file in the webpage or some other HTML to do it. I even think there is a way to queue files like you are asking about, but this would be an HTML thing and not PHP. James -Original Message- From: Alfonso

RE: [PHP] sorting files in directory

2002-11-27 Thread James E Hicks III
I've done this by reading the directory contents into an array and then sorting that array. This really sorts on filename and not date, but your filenames seem to contain dates so this might work for you. James Hicks -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Re: who's in the chat?

2002-10-10 Thread James E Hicks III
My chat stores usernames, timestamps in a table on DB. When refresh script runs, it updates the timestamp on usernames and deletes rows in DB with stale timestamps (no refresh run). Pulling usernames from this table gives current chat users. James -Original Message- From: Oliver Witt

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread James E Hicks III
Have a look at this php.ini setting, I think it will help you! ; The domain for which the cookie is valid. session.cookie_domain = James -Original Message- From: David Buerer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:39 PM To: '[EMAIL PROTECTED]' Subject: [PHP]

RE: [PHP] basic voting

2002-09-11 Thread James E Hicks III
How bout this for just a little better than IP logging. ? if (getenv(HTTP_X_FORWARDED_FOR)){ $internalip=getenv(HTTP_X_FORWARDED_FOR); } if (getenv(REMOTE_ADDR)){ $externalip=getenv(REMOTE_ADDR); } echo $externalip.-.$internalip; ? -Original Message- From: Adam Williams

RE: [PHP] faxing

2002-08-28 Thread James E Hicks III
system(html2ps document.html); system(hylafax -somedirectives document.ps); I haven't got around to actually figuring this out, but this is my plan. James -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 1:14 PM To: [EMAIL PROTECTED]

RE: [PHP] question about executing a bash shell script...

2002-08-16 Thread James E Hicks III
try something like: $bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles pathtogetfiles'); if that doesn't work can you use the system() function instead? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] png image doesn't show

2002-07-05 Thread James E Hicks III
. graphit.php should do two things; First send the header, Second send the PNG data. -- James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Whos online at the moment in PHP

2002-06-24 Thread James E. Hicks III
Why not; 1. Record each visitors IP that connects and the connect time. 2. Delete from this table all records that are 5 mins old. 3. Count the remaining records as people currently viewing page. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] PHP with IIS

2002-06-24 Thread James E. Hicks III
It looks like apache doesn't have permission to write the file //flcintranet/pi2000/ordentry/5788/pappexpt.dbf . If you were using a linux/unix machine I'd tell you to check the permisions on this directory to make sure that apache can write to it. I wish I could help you out further, but I don't

[PHP] Log files.

2002-06-21 Thread James E. Hicks III
being root. Then when the website users started creating errors (later in the morning), apache was unable to write to the file because it was owned by root. Duhhh!! Maybe this will help someone in the future. James E Hicks III -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] OT - php/mysql/cron

2002-06-03 Thread James E. Hicks III
Here's a little tweak to gzip the backup results. I put this into another script that gets called by crontab. Are my DB userid and password still visible when run this way? I'm never here to see it run, because it happens late at night. /usr/bin/mysqldump --user=DBUSER --password=DBPASSWORD

RE: [PHP] Show an image

2002-05-29 Thread James E. Hicks III
I found a solution to this on the web somewhere. What they did was create image.php wich extracts your image from the DB and echo's it to the page after sending the correct content type header. Then in your other .php's/.html's use... img src=image.php?name=TEST.jpg James -Original

RE: [PHP] tmpfile() errors?

2002-05-22 Thread James E. Hicks III
I'd check the owner of the directory you are trying to write to. It needs to be owned by the same user as the httpd process runs as. James -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] tmpfile() errors?

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread James E. Hicks III
#!/path.to/php -q I'd like to suggest the -q option for PHP shell scripts, which I rely on every day. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP PDF

2002-05-17 Thread James E. Hicks III
I do a system(html2ps SOME.html SOME.pd); then I do a system(ps2pdf SOME.pd); which gives me SOME.pdf Which I then read into a variable with binary option, $fi=fopen(SOME.pdf,rb); $binfile = fread ($fi, filesize (SOME.pdf)); fclose($fi); then $encoded_attach =

RE: [PHP] PHP PDF

2002-05-17 Thread James E. Hicks III
2:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP PDF On Fri, 17 May 2002, James E. Hicks III wrote: I do a system(html2ps SOME.html SOME.pd); then I do a system(ps2pdf SOME.pd); How about just: system('html2ps some.html | ps2pdf some.pdf'); ? miguel -- PHP General

RE: [PHP] Is it possible to verify that a form submision is not being spoofed?

2002-04-30 Thread James E. Hicks III
This random number, because it is being sent to the user is just as easy to forge as the rest of the fields on the form. The only thing you can do is check the refferer on the submitted page, but alas even this can be forged with enough technohow. Good luck! James -Original Message-

RE: [PHP] Open Download-Box

2002-04-18 Thread James E. Hicks III
try header(Content-type: application/pdf); James -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Open Download-Box Hello! I have a PDF-File, which the user should download (it should not

RE: [PHP] email attachments

2002-04-16 Thread James E. Hicks III
You need a Content-Disposition in yer $mime variable. I'll leave it up to you to figure out where, because I've forgotten where it goes exactly. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 8:46 AM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Performance question

2002-04-16 Thread James E. Hicks III
I think you've got the best set up already. I have a PDF library that I do a similar thing with. To update the site I just dump the new PDF's into their directory and the users reload the page to see the new content. James -Original Message- From: Fifield, Mike [mailto:[EMAIL

RE: [PHP] attachment filename

2002-04-16 Thread James E. Hicks III
$mime .= Content-type: application/octet-stream;\r\n; $mime .= Content-type: application/octet-stream; name=\$attach_name\\r\n; -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 2:45 PM To: [EMAIL PROTECTED] Subject: [PHP] attachment filename

RE: [PHP] mysql question

2002-04-08 Thread James E. Hicks III
Why don't you just increment a counter as you are retrieving them. mysql_select_db(some_DB) or die(DB not available); $query = select some_data from some_table; $result = mysql_query($query); $rowcounter=0; while ($row=mysql_fetch_array($result)){ extract($row); $rowcounter++; echo(You

RE: [PHP] date expressions

2002-04-02 Thread James E. Hicks III
Convert it to timestamp and then compare or if the date's in a mysql database let mysql handle the comparison for you. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] date expressions

RE: [PHP] Displaying Image with PHP

2002-03-29 Thread James E. Hicks III
## Heres where I add images to DB with field type of BLOB for image if ( ($submit == 'Add Image') ($userid != 'demo') ){ if ($image != 'none'){ $name = strtr($name, ', ); $image = addslashes(fread(fopen($image, r), filesize($image))); mysql_select_db($dbase) or die( Unable

[PHP] header() problem??

2002-03-11 Thread James E. Hicks III
); ? James E Hicks III -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php