You need to include settings.php in functions.php.
- Original Message -
From: Jaxon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 12:48 PM
Subject: [PHP] RE: help, weird include problem with functions
oh, this still happens when I fix the missing () in the
I have a question:
Does anyone know what PHP stands for?
It's not in any of the FAQ's I've looked at.
-Clayton
- Original Message -
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Wednesday, August 01, 2001 11:40 AM
Subject: RE: [PHP] Re: FAQ
and adding a little
Try this:
---cut---
###
# Finds all *.inc from current directory and rename then to *.inc.php
# then edit that file and replace all references to it as well
# I haven't tested this, but it should work, but don't be a dumbass and not
make a backup copy
# of your files before
:-)
--
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:47 PM
Subject: RE: [PHP] Find and Replace
www.boutell.com
- Original Message -
From: Manu Verhaegen [EMAIL PROTECTED]
To: 'Php-General (E-mail) [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 12:51 PM
Subject: [PHP] GD library
I want to install the GD library for PHP
I seek libpng and zlib and jpeg-6b can you help me
Works fine for me...
- Original Message -
From: Dennis Gearon [EMAIL PROTECTED]
To: PHP Mailing Listl (E-mail) [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 11:17 AM
Subject: Re: [PHP] IE - View Source
Please try to read any of the browser printed text in this URL(I can't do
it in
Can someone tell me why this doesn't work?
$home_street = ereg_replace ( , + , $home_street);
The input is 123 happy trail
I need the output to be 123+happy+trail
Thanks,
Clayton
I have a row in sql that is binary data (a jpeg)
I need to echo that data to a table on the web page in the form of the
original jepg, when I echo it now, I just get the actual data stream.
How can I fix this?
- Original Message -
From: Mark Roedel [EMAIL PROTECTED]
To: Clayton Dukes
Hi everyone,
Forgive my ignorance, I'm trying to re-write an old contact databse that didn't work.
I have everything written out, but the old code used pointers (ie: this-$db).
I'm not familiar with that type of code, how can I convert it?
---snip---
$sql=select distinct site from
='$uid'
));
Can someone tell me why this is yeilding:
MySQL Error: (1064) You have an error in your SQL syntax near '( 'Clayton Dukes',
'ÿØÿà\0JFIF\0\0H\0H\0\0ÿÛ\0C\0' at line 1
???
TIA!
--
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Nevermind, I got it...
Now, how do you reset header information if you need to redclare the
header();
ie:
Warning: Cannot add header information - headers already sent by (output
started at ...
-Clayton
- Original Message -
From: Clayton Dukes [EMAIL PROTECTED]
To: Php-General
(Content-disposition: filename=.$filename);
@header( Content-type: image/jpeg );
*/
$db-p(bin_data);
} else {
echo No Picture Available;
-Clayton
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'Clayton Dukes' [EMAIL PROTECTED]; 'Php-General
Does anyone have a simple script that will GET a
web page and return the reply?
Something like this:
function getpage($host, $path, getstr)
{$getstr="whatever\r\n";
$host=www.whatever.com;
$hdr=sprintf("GET $getstr",
$path); $hdr .="Content-type:
application/x-www-form-urlencoded\r\n";
)
And it runs this test, telling the user if it passes or fails, and returns
the output?
Btw, the security advisory comes from http://grc.com/dos/grcdos.htm which
outlines some very interesting things happening with IRC based DoS attacks,
in case your interested.
Thanks!
Clayton Dukes
CCNA, CCDA, CCDP
Is there a utility available that will get PHP
based websites?
Wget doesn't do it
TIA!
Clayton DukesCCNA, CCDA, CCDP, CCNPDownload
Free Essays, Term Papers and Cisco Training from http://www.gdd.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
I'd like to cast my vote for Webmin :-)
www.webmin.com
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'Steve Brett' [EMAIL
I'm no expert by any means, but couldn't you set a variable=now();
then when the user clicks again, set a variable2=now();
then subtract the difference and store the result?
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Download Free Essays, Term Papers and Cisco
','','title','location','text','',0,0,'','','','field',10,'',0,0,0,'',0,
'','Default',4096,0);
ie:
if the email field is bad (test using sendmail?)
remove that entry from the database.
How can I do this?
TIA!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training
[yesterday.getMonth() +
1];
document.write( 'option value=\' + yesterdayMonth
+ ' ' + yesterday.getDate() + '\yesterday/option');
/script
/select
/form
-
TIA!
Clayton Dukes
CCNA, CCDA
, it checks every thirty minutes
or so starting a few hours before, and if there's any delay or cancellation,
it sends an email.
Can this be done?
If so, can someone point me in the right direction? Specifically, how to get
the CGI Post data returned from thier server?
Clayton Dukes
CCNA, CCDA, CCDP
!
P.S.
Thanks for the Awesome List!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
==)
|| (!eregi(^[_\.0-9a-z-]+@domain.+[a-z],$email))
|| (!eregi(^[_\.0-9a-z-]+@otherdomain.+[a-z],$email))
)
$stop = center._ERRORINVEMAIL./centerbr;
---snip---
This doesn't work. (it returns the error no matter what I enter)
Thanks guys (and gals?)
Clayton Dukes
CCNA
Hey folks,
Do you know if there is anything like this that works on PDF's and can
actually look decent?
Not pdf2htm or something like that, it sux :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Download Free Essays, Term Papers and Cisco Training from http
for the
Banner admin page, does anyone have an update/better english language file?
3. Does anyone know how to incliude a themesidebox monthly view of the
calendar?
If you answer all these for me, I'll name my firstborn after you ;-)
TIA!!!
Clayton Dukes
--
PHP General Mailing List (http
Why not just set your filter to look for [EMAIL PROTECTED] in the to
or cc line?
Clayton Dukes
MicroMuse, Inc.
CIC Product Engineer
CCNA, CCDA, CCDP, CCNP
(c) 904-631-4131
(o) 904-880-5996
-=]-Original Message-
-=]From: bard [mailto:[EMAIL PROTECTED]]
-=]Sent: Monday, June 18, 2001 6:00
Fair enough, I'll give you that :-)
-=]-Original Message-
-=]From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
-=]Sent: Monday, June 18, 2001 6:01 PM
-=]To: Clayton Dukes
-=]Cc: bard; John Donagher; [EMAIL PROTECTED]
-=]Subject: Re: [PHP] Re: Lists are back up
-=]
-=]
-=]So sprach
Try PHPWebsite, it's a cleaned up version of Nuke and runs very well.
http://phpwebsite.appstate.edu
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Tyrone Mills [EMAIL PROTECTED
Does anyone know where I can find some type of
Expense Report/Tracking system written in PHP?
I'm tired of tracking all my stuff in Excel and
sending it in so I thought I'd take a crack at making an online tracking system
for multiple employees that could possibly export to Excel if needed.
I did actually look there first. Nothing listed
Thanks anyways :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Navid Yar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 19
Definately, thanks!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Kurth Bemis [EMAIL PROTECTED]
To: Clayton Dukes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday
I don't know if he'll be impressed, but I am :-)
http://www.gdd.net
Offers free Cisco Training as well as High School and College level essays.
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h
This is off topic, but I have a RAQ 2 for sale. If any of you are
interested, please e-mail me off this list.
Thanks :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
-
Download Free Essays, Term Papers and Cisco Training from http
Actually, the "lite" only works with versions of Redhat lower than 7 (or
something like that).
The full version is only like 89 bux.
But it is an awesome product, only takes about 5 minutes to install and
works perfect.
Clayton Dukes
Download Free Essays, Term Papers and Cisco Tra
This is set by max_execution_time, did you restart apache to re-read your
php.ini file?
Clayton Dukes
-
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From
Arrrgh,
Something went haywire with my site a little while
ago, can somebody tell me why I'm getting:
Warning: Failed opening 'themes/JET/theme.php' for
inclusion
Heh,
Thanks.
Btw, the web site I'm trying so frantically to fix has all the study materials for the
Cisco Certs, free of course :-)
http://www.gdd.net
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c
Yes,
I've got it now.
Scared the crap out of me
I must have typo'd on a perm change, man that'll ruin your friggin day!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881
So, I went back through my command line history and found the culprit, if
anyone's interested
I typed:
chmod 666 file.php *
When I should have typed
chmod 666 file.php*
Damn, I love Unix :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management
I have a REQUEST_URI that comes in,
REQUEST_URI=//training/olddata/file.htm
How can I extract just the filename? (
$str=file.htm)
Clayton
Dukes-Download
Free Essays, Term Papers and Cisco Training from http
Hey everyone,
Doesn anyone knowhow to escape the following
line in a perl print statement?
if(!isset($mainfile)) { include("mainfile.php");
}
ie:
sub
header{ print "?php echo
if(!isset($mainfile)) { include(\"mainfile.php\"); } ?\n";
}
What all needs to be escaped?
Thanks!
Clayton
ot;;}
When I use the function though, the web page
(source) comes up as:
?php include("mainfile.php");??php
include("header.php");?titleSearch/title...data?include("footer.php");?
What am I doing wrong? Why is it printing the php
tags instead of executing them?
C
$message .= $Info;
$message .="br";
$message .=$Phone;
$message .="br";
$message .=$Email;
This should append everything, but I could be wrong, I'm no Guru :-)
Clayton Dukes
-
Download Free Essays, T
I was afraid you were going to say that...
Anyone care to show me how to write that?
Clayton Dukes
-
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: "Andrew
ace:]]+", " " ,
$titlematch[1]));
else
$title = ""; if ($title ==
"")
$title = "Untitled
Document"; return
$title;}itruns okay...But, when I use
the function, everything is coming back as "Untitled Document".
Any suggestions? Clayton
I'm having a hard time chasing down a
bug.
I have themes installed on my website, the color
choices are stored in the database.
I need to search all tables within the database for
the word "red"
how can I do this?
Thanks :-)
Clayton Dukes
--
PHP General Mailing
Yeah,
I just can't figure out how to do it.
Anyone care to enlighten me?
Clayton Dukes
- Original Message -
From: Chris Anderson
To: Clayton Dukes
Sent: Wednesday, March 14, 2001 1:04 PM
Subject: Re: [PHP] form post without pathinfo
Sounds like you just need
What's the proper syntax for
headers_sent?
I tried:
if(!isset(headers_sent)) { include("header.php");
}
But I get:
Parse error: parse error, expecting `T_VARIABLE' or `'$''
in /home/www/websites/pw/cisco/config/index.htm on line
3
Clayton DukesCCNA, CCDA, CCDP,
CCNPInternetwork
Thanks :-)
- Original Message -
From: "Jack Dempsey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Clayton Dukes" [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 12:08 AM
Subject: RE: [PHP] headers_sent
don't you need the () after headers_sent?
if(!isset(hea
I'm sure everyone's seen the
following:
Warning: Cannot add header information - headers already
sent by (output started
But,
How can I add check to see if the header
information has notbeen sent and add it if it hasn't (else just print
without the header info)?
TIA!
Clayton Dukes
Thanks,
How do I do something like:
if headers_sent=false
include header.inc
else
some other thing
Please forgive my inexperience, I'm still learning :-)
Clayton Dukes
- Original Message -
From: "Gianluca Baldo" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL P
Thanks :-)
Clayton Dukes
- Original Message -
From: "Brett" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 9:17 AM
Subject: Re: [PHP] Headers
How do I do something like:
if headers_sent=false
include header.inc
if (hea
ent
on the path, so if I post using the method above, the path changes and screws up
the images, colors, etc after the user submits.
TIA!
Clayton Dukes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CanPHP work with interactive shells such as
telnet like Expect does?
ie:
waitfor "ogin:"
put $login
waitfor "assword:"
put $password
etc.
TIA! :-)
Clayton DukesCCNA, CCDA, CCDP,
CCNPInternetwork Solutions EngineerInternetwork Management
EngineerThrupoint, Inc.Tampa, FL(c)
Hey everyone,
I just upgraded from php v4.03pl1 to php
4.04pl.
Everything seems to work okay except my
IMP/Webmail.
When I load the url, I get:
Fatal error: Call to undefined function: page_open() in
/home/www/websites/horde/imp/index.php3 on line 15
Is this something that is no longer
Nevermind.
The php.ini was replaced which changed my include path.
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881
- Original Message -
From: Clayton Dukes
it's an older app.
But I got it. Thanks :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881
- Original Message -
From: "Jack Dempsey" [EMAIL PROTECTED]
To
Try IMP webmail
- Original Message -
From: Chad Cunningham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 08, 2001 8:30 PM
Subject: [PHP] demo application suggestions
I am going to be manning a booth on apache at a Linux trade show, and I'm
looking for suggestions on
Juan,
I'm not sure, but isn't there a wrap function?
- Original Message -
From: Juan Germano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 6:29 PM
Subject: [PHP] Cutting long strings for tables
Hi. I use this function with the strings I'll be showing in
It can bee .poopoo if you want it to be :-)
- Original Message -
From: "Harshdeep S Jawanda" [EMAIL PROTECTED]
To: "PHP General" [EMAIL PROTECTED]
Sent: Wednesday, February 28, 2001 10:04 AM
Subject: [PHP] A small Q
Hi,
Does the extension of files that are require()-d or
Ouch!
At $250.00, I'll stick to using Vim for free :-)
- Original Message -
From: "James Moore" [EMAIL PROTECTED]
To: "Luke Loeffler" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 2:14 PM
Subject: RE: [PHP] good ide?
May I suggest the Zend IDE, at the moment
Try DGS Search, very easy and works great!
http://www.digitalgenesis.com/software/dgssearch.html
- Original Message -
From: "Ali" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 2:22 PM
Subject: [PHP] search + sitemap scripts
could anybody help with links
resource in /home/www/websites/gdd/inc/funcs.inc on line
76Fatal Error - Can't fetch docid
when I call it from a web page using:
viewdoc($docid);
What have I done wrong?
TIA!
Clayton Dukes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Thanks :-)
- Original Message -
From: "Simon Garner" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 9:59 PM
Subject: Re: [PHP] Converting code to a function
Clayton,
The problem is that some of
Hi :-)
Can someone tell me how to do the equivalant of
this Perl script in PHP?
## This function prints all lines between
the dashes read in a text file###
### The file looks like this:
# -
# Somedata:
something
# Someother:
something else
#
How?
I don't know perl all that well, I am just trying to convert some scripts.
- Original Message -
From: "kevin1" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 10:29 AM
Subject: Re: [PHP] PERL to
im(str_replace("'", "''", $line)) .
"\n"); }
Simply adding the $data = in front of it doesn't
work, I assume it needs to be enclosed by () or ; or something
right?
Thanks :-)
Clayton Dukes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
) as $line) {
$data .= ("" . trim(str_replace("'", "''", $line)) . "\n");
}
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Making a variable
How c
a variable
you can concatentate the variable inside the foreach loop.
foreach (file("$file.txt") as $line) {
$data .= ("" . trim(str_replace("'", "''", $line)) . "\n");
}
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROT
Dan...
You are the man, thanks! :-)
- Original Message -
From: "Dan Olsen" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 12:30 PM
Subject: RE: [PHP] Making a variable -Trim output
clayton-
the only pro
how can I force them to wrap at
the edge of the browser?
Thanks,
Clayton Dukes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
= $text[$i]." ";
$i++;
} else {
$output .= "\n";
$length = 0;
}
}
return $output;
}
Then in the php file:
echo (wraptext($row[0],80));
I'm learning :-)
- Original Messag
e -
From: [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 2:28 AM
Subject: Re: [PHP] Unwanted Characters
Clayton Dukes wrote:
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over
How can I get php to print a long string and ignore
any of the characters in the string?
ie:
$string = "some'strin^g";
print $string;
isn't there some kind of command to use that keeps
the string exactly as it is?
Clayton DukesCCNA, CCDA, CCDP,
CCNPInternetwork Solutions
Hi everyone,
I'm working on converting my site to
PHP/MySql.
I need to figure out a way to import several
thousand text files into the database while applying certain PHP functions to
them.
From now on, when a user submits a new document, it
gets a random docid assigned to it using the
1. Local Server
2. Either one, I'm trying to learn PHP
3. Yes, this is just a project for which I am not making any money, but I can pay
someone in respect and admiration ;-)
- Original Message -
From: Todd Pillars
To: Clayton Dukes
Sent: Saturday, February 24, 2001 2:25 PM
the first field, ID, is just for keeping a standard sequence and isn't
called from any web pages. The second ($docid) is a random field which is
called from a web page, which makes it harder (if not impossible) to
guess/hack. This makes it a bit more secure.
A note about the old docid #'s, my
How can I do something like the following shell script, in PHP? (I know this won't
work normally, but you get the idea).
if [ $id = 59 ]; then
$id=81
TIA!
Clayton Dukes
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over my dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Thanks :-)
Clayton Dukes
Hello,
This is my first attempt, so I'm prolly doing
something stupid, but can someone tell me why this doesn't work?
All it returns is "Unable to INSERT to database"
---BEGIN---
? $time =
time(); $rand = Random_Password(5); $docid =
$time . $rand;
if (isset($email)
isset($docid)) {
),
authorcomments varchar(200),
teachercomments varchar(200),
approve enum('Y','N'),
docdata text,
PRIMARY KEY (id),
UNIQUE id (id)
- Original Message -
From: "Philip Olson" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent:
Thanks! :-)
Man, what a great list! You guys kick a$$
- Original Message -
From: "Kyndig" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]; "Philip Olson" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 8:50 PM
Subject: Re:
81 matches
Mail list logo