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
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
co
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
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 t
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
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.
Array Example");
echo ("");
for ($i=0; $i
echo (
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
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 session_st
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
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 cook
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 Reset");
> $_SESSION['start_time'] = time();
>
> yet when Test2 loads, you haven't called $_SES
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
4.
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/)
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
c
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 "";
while ($record = mysql_fetch_array($results)) {
if ($_POST["record"] == $record["ID"]){
$SELECTED = " SELECTED ";
} else {
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 her
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
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 th
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 (is_array($_
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, t
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 ques
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
>
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 (http://ww
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 #!
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,
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
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
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
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
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
ON['last_time'] = time();
>
> 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 t
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 co
How do I get this to work? the input box is only showing
He said,
James Hicks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 in
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 me
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 dis
Try this.
mysql_query("INSERT INTO $table (
salutation,
name,
city
} VALUES {
\"".$_SESSION['salutation']."\",
\"".$_SESSION['name']."\",
\"".$_SESSION['city']."\"
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
why
> \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 addsla
006\\BUBBLER VALVE");
EBCO\030774-006\BUBBLER VALVE
How can I handle this description 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
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 12-6-0
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.
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: Th
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: [
and before the IF
statement.
$i - $target, By God, the are equal in value.");
} else {
echo ("$i - $target, Eternal Damnation, they aren't
equal!");
}
}
?>
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ex
> 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 da
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 to
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 (
--
Why does PHP Version 4.2.3 ignore my (string) - cast to string 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 Gen
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 nee
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 w
The only way this would work with PHP on the webserver would be to
the sound file in the webpage or some other 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 Ballestero
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: We
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 [m
same problem. How can I fix this and what is the
problem?
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
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]
How bout this for just a little better than IP logging.
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:24 AM
To: Justin French
Cc: php
Subject: Re: [PHP] basic voting
Most sites log by IP but if its the IP of a firewall, it wou
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]
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
age/png . 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/unsub.php
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
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,
with the owner 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 uns
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 DATAB
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...
James
-Original Message-
From: Félix García Renedo [
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?
2002 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(&
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_atta
#!/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
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-
Fro
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
$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 fil
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 PROTECTED]]
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: [
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
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
How
## 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(
tString;
header("Location: $go");
?>
James E Hicks III
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
80 matches
Mail list logo