First, I'd create a simple test to see what the value of
$newDir = $HomeDir."themes/".$ThemeFolder;
print $newDir;
And see what that yields. You might have a problem with your slashes.
I find it extremely useful to have test variables print to the screen
along the way to ensure that each new p
Maybe you should try to reference it from
http://localhost/MyScript/default/style.css
?
-M
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 12:02 PM
To: Matt Matijevich; php-general
Subject: RE: [PHP] linking with home directory
I am testi
You're close but instead of try
That will print the return value of your function - which by example is
"Daniel Szasz".
-M
-Original Message-
From: Daniel Szasz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to use ph to set m
By the context, I'm sure it should read "...not all email clients
support HTML."
(I got a laugh out of it though ;)
-Original Message-
From: Johnny Martinez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 7:21 PM
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subject: RE: [PHP] HTML email w
Justin, when you echo/print your CSS info, you can add tabs /t and
newlines /n to your documents for indentation and organization in the
source if that's what you're after.
Otherwise, when you output it to the browser it's going to print it to a
few lines with no discernable order.
-M
-Origi
I've been using PHP for a few years now and I'm quite familiar and
comfortable with it.
I'd like to start to seriously do some OOP coding and "take things to
the next level". But as I understand it, PHP5 is going to make quite a
few changes/improvements to PHP4's current handling of OOP.
Given t
Do you have an SMTP server installed on your machine? If not, add one to IIS
(probably the simplest way to do it in Win2k).
-M
-Original Message-
From: Sean [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Mail
I cannot get mail() to
You can do so with JavaScript and have that pass the information onto your
PHP scripts to do whatever it is that you want.
-M
-Original Message-
From: Uma Shankari T. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 12:12 AM
To: PHP
Subject: [PHP] Screen Resoultion
Hello,
C
While sometimes a new perspective is extremely useful on a topic, I think
the problem is that a huge percentage of people don't try for themselves. If
they've done all the steps in the proposed message, then it tells you to
send a message explaining where you're at to the list.
While it can be pre
To expand on Curt's suggestion (which is a very good one), add your local
network IP (192.168.#.#), the external IP the machine has (if any) and
localhost (127.0.0.1) to the "Only the list below" box.
If you have to add any other machines in your network to relay mail through
this server, try to
And don't forget, the user-added notes at the bottom of the functions pages
are extremely useful to see actual code usage along with tips or potential
conflicts on various systems!
Those alone offer countless user-generated examples that are usually similar
to content that people on the list might
Why don't you try to use mkdir() instead of shell commands?
http://us2.php.net/manual/en/function.mkdir.php
-M
-Original Message-
From: Sævar Öfjörð [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 8:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] executing a shell command within a fu
Yes, it's Sobig-F: http://www.sophos.com/virusinfo/analyses/w32sobigf.html
Just don't run the attachment and everyone will be fine.
It's just one of those viruses that spoofs the from address from somebody
that it finds in the infected user's address book or their out/inbox.
Hopefully the site
I'm having some problems with imagerotate() - e.g. it won't work.
I've tried many different ways to get it to work, but I have yet to see it
do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working
properly because I can do other image-manipulation with it without error.
Plus, I in
This is what I did for a dynamic zero-fill for renaming batches of files:
// Get "Zero Padding" For New Image Names
$zero_padding = strlen(count($image_array));
foreach($image_array as $temp){
$n++;
$n_length = strlen($n);
for($i = 0; $i < ($zero_padding - $n_length); $i++){
It really depends on what you want to do.
Cookies are client-side information and thus you can run into issues where
clients don't allow cookies, have cookie-blocking apps or have outdated
software that doesn't support them (though the latter continues to become
less of an option as time passes).
I'm having some problems with imagerotate() - e.g. it won't work at all.
I've tried many different ways to get it to work, but I have yet to see it
do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working
properly because I can do other image-manipulation with it without error.
Plu
How I deal with images and resizing is by uploading the image to the server,
and at that time creating a thumbnail. I have the /images folder with a
/thumbs folder inside it for the thumbnails.
The database simply refers to the name of the image and it's ID and other
associations.
This is optimal
Realize that when you see "error line..." it doesn't mean that the error is
definately on that line. PHP is only *so* smart. You'll find that making
mistakes on line X will result in errors being reported on line X+1 or
further down in your code.
Don't take the errors at face value all the time -
I'm having some problems with imagerotate() - e.g. it won't work.
I've tried many different ways to get it to work, but I have yet to see it
do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working
properly because I can do other image-manipulation with it without error.
Plus, I in
I've had good experiences with www.phpwebhosting.com for smaller sites
(virtual hosting). I haven't had any super-high traffic sites hosted on
them though. Full support of PHP & mySQL and fairly inexpensive.
-M
-Original Message-
From: Martin, Stanley G [mailto:[EMAIL PROTECTED]
Sent: Tu
What I've done is created a separate account for the PHP & mySQL mailing
lists for that purpose. If the spam count gets crazy on this address,
it's simple to just create a new account and send all of that mail to
the trash.
-M
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROT
Addslashes()
http://us3.php.net/manual/en/function.addslashes.php
-M
-Original Message-
From: Steve Marquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 4:28 PM
To: MySQL List; PHP eMail List
Subject: Characters
I am inserting a file via a PHP form. It works great, however, i
Mark,
One thing that you might want to consider is to just get the book you
think is best and has the most solid content and then build your
ciriculum around certain chapters. It shouldn't be hard to have a
student read a chapter a night or even two chapters over the course of a
week. Most of the
DROP TABLE `tablename`
-Original Message-
From: zavaboy [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How do I delete a mySQL table?
How do I delete a mySQL table? (Just what's in the subject)
--
- Zavaboy
[EMAIL PROTECTED]
www.zava
Another way you can do it if you don't have that much access to the machine
is to record the last time it was updated and when someone loads the page,
you take the amount of time between the last incriment and now().
You then find out how many sets of 10 minutes have passed and incriment it
that
I've had to use CF and .Net on the same machines before and have had only
minor issues with it.
I've never had an issue mixing PHP and any other language before since it's
pretty stand-alone, whereas CF and .Net want to "own" a lot of Windows
functionalities as servers.
I don't forsee any real p
I don't really know much about Curl, but what it -sounds- like is that Curl
isn't sending the proper headers/MIME types to the PHP script and PHP isn't
putting the input into the $_FILES array. You might want to look in your
$_GET or $_POST array for existance of the file to see if it's being sent
Well, any service that listens for external access requires certain ports to
be open. Basic web traffic is listened for on port 80 for example. If you
get a personal (software) firewall application (ZoneAlarm for example), then
you can block access to these ports. I'm not sure how well the XP firew
Yes and no - even with Linux you still need to know HOW to lock down the
machine and without doing so, there are still exploits that can be as, or
more, dangerous than some Windows exploits (take the SSH exploit recently
found that can give an intruder root access!).
Bottom line is that any OS has
I think I know the answer to this, but want some confirmation from someone a
bit more knowledgable about Apache and .htaccess files.
My webhost has the default 404 page set to 404.html. For the sake of
consistancy on a number of levels, I prefer a PHP file for this (404.php).
So to do this, I crea
Did you try to browse to it on your machine such as:
http://localhost/phpinfo.php
This is what they're referring to. PHP doesn't interpret pages when you just
double-click on them since they're not being run through the web server
(Apache) which will trigger PHP to parse the file.
-M
-Origi
I think it all falls under the "cryptography" category, but you're right -
it doesn't fall into the encryption/decryption scheme since it is only
one-way.
-M
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:43 PM
To: php-gen
Subject: Re: [PH
One quick note - if you're starting a session then you can't user the
header() function afterwards. You'll get the lovel "headers already sent"
error.
Be sure to use an alternate method of redirection if you're starting a
session before your redirect logic takes place.
-M
-Original Message-
Either confirm that you have php_dbg.dll in your extensions directory or
comment out that line in your php.ini file.
-M
-Original Message-
From: Amanda Lau [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 4:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php
Hi.
I have a question.
Grab the time at the beginning of the page execution and then grab the time
at the very end. Subtract the two and you have the amount of time the page
took to execute.
-M
-Original Message-
From: Bas [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 11:50 AM
To: [EMAIL PROTECTED]
Some code samples would be really helpful. You also said "an error occurred"
but failed to mention any details about that error. That aside, I'll make a
guess at some possible problems:
1) You're trying at access the wrong super global (e.g. GET when you should
be looking for POST).
2) You're try
Let's make some assumptions -
1) having register_globals on is bad
2) we all like to write scripts as secure as possible
Given #1 and #2, if you stop referencing variables directly (e.g. as
$firstName in the script below) since register_globals is off, it
immediately adds a degree of security to
Basically, have an array of # of days per month. Do a quick compare given
the month for the # of days. For the sake of example, we'll assume the month
in question has 31 days. So, here's some givens:
$month_days = 31;
$former_plan_days = $current_date;
$new_plan_days = ($current_date - $month_days
1. if you have index.php, then just get rid of index.html and print your
content via print or echo statements.
2.
$ip = getenv("REMOTE_ADDR");
print "IP Address: " . $ip . "";
(there's a few ways you can do that - this is just the standard I use)
Regards
-M
-Original Message-
From:
Do you want code to be handled differently if it's there or do you want it
to be a certain way (e.g. always with trailing slash or never w/ trailing
slash)?
If you want it to always be a certain way, why not grab the last character
of the path, check if it's a slash and then if it's not how you wa
.
Basically after that path I am adding a file "ryanFile.php" so I need that
ending slash to always be in the path
My question was exactly that...how do I "grab" the last character?
Thanks,
-Ryan
On 1/3/2004 2:14:10 AM, Mike Brum ([EMAIL PROTECTED]) wrote:
> Do you want code to
There are some really good user notes in the function description for
imagecopyresized and imagecopymerge:
http://us3.php.net/manual/en/function.imagecopymerge.php
http://us3.php.net/manual/en/function.imagecopyresized.php
You might also want to do some searching with google for "thumbnail
fu
Yes, it's considered best practice to do as much client-side validation as
you can as to save your server time and load.
This doesn't mean you still shouldn't do full validation on the server-side,
but the fewer times the form is posted to your site the better.
You might want to recheck what Jav
I can tell you this much, .cfm is ColdFusion. And CF is somewhat similar to
PHP in it's embedded-in style of scripting.
It could be similar to how you can build a PDF. They could just take your
HTML and then use that to build a .JPG. I'm sure it's a very *expensive*
process (server & CPU -wise) t
PNG's support transparency as well as GIFs.
The short answer is that you'll create your image and also specify a color
that will be made transparent. I don't see why imagecreatetruecolor making a
default black image is a problem? If it is, just set black to be the
transparent color and go from th
>My first thought was to load the output from the tables into an array and
they use a foreach and
>in_array to create a list of dups, but I wanted to see if there was an
easier way.
--
If you're not using MySQL >4, then yeah, that's probably the best way.
Just realize that this isn't going to
John, since you're looking to modify this script and not build your own or
search for another, here's some tips on how one might go about doing this.
1) set $which_one to the directory you want to search.
2) create a recursive funtion (many on php.net) to get all subdirectories
under it and build
48 matches
Mail list logo