The problem with that, though, is that a lot of publishers require
exclusivity, so an author is bound (no pun intended) by contract not
to publish elsewhere - including on their own website.
The idea of even offering an electronic version should be to drive sales for
the hard copy.
Allow bunnies ...
Any takers on this ... I JUST want the duration of the mp3
file - with a
small function if possible ... I honestly don't want to use a
class like
http://www.phpclasses.org/browse/package/112.html
The coding is terrible and SERIOUSLY over inflated for what I want.
I'm trying to make a program with PHP, that prevents
ecommerce fraud orders.
Technically, what's the most effective way to prevent fraud orders on
e-commerce web sites?
That's a really general question. More specific questions generate more
specific answers. My advice to you would be to
snip
...it is more handy to have just one file instead of a
folder system.
Thats why $deity gave us gzip. ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So here's the first one (it's simple):
?
function at($level) {
$level == 10 ? $ret = winner : '';
$level == 15 ? $ret = try : '';
$level == 20 ? $ret = first : '';
$level == 25 ? $ret = user : '';
$level == 30 ? $ret = place : '';
Jim, I didn't get any parse errors when I tested it, it just
output the stuff. You're right though that is what they say
Bah - thwarted (again) by PHP4. :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 6/26/07, Jim Moseby [EMAIL PROTECTED] wrote:
Jim, I didn't get any parse errors when I tested it, it just
output the stuff. You're right though that is what
they say
Bah - thwarted (again) by PHP4. :(
How so? I didn't use any 5th Generation-specific
How do I break $start_date into 3 variables --- 4 digit year, 2 digit
month and 2 digit day?
$start_year = ;
$start_month = ;
$start_day = ;
Can you give us an example of $start_date?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
How do I break $start_date into 3 variables --- 4 digit year, 2 digit
month and 2 digit day?
$start_year = ;
$start_month = ;
$start_day = ;
?PHP
$start_date='2007-06-20';
$parts=explode('-',$start_date);
$start_year = $parts[0];
$start_month = $parts[1];
$start_day = $parts[2];
I am currently trying to unsubscribe from this mailing list,
however I
am nor very successful in doing this. The mailer program will
refuse to
accept my address for removal, it will simply continue to
send mail to
my address. Why is this happening and how can I stop it?
Mark
If
I have a paypal account setup and am going to upgrade to the virtual
terminal, however the client would like to collect the credit
card details
as security (he is a hotelier)
Is it possible to securely send these details via the
internet or should I
suggest he just gets them to
Is there a decent free calendar? I just need to show a few events on a
calendar.
You could try your bank. They usually have free calendars, coffee mugs,
pencils, etc. ;-)
Seriously though, type 'php calendar' into google and see what happens.
--
PHP General Mailing List
I did that and either they are not free or suck... dont appreciate the
comment
On 6/13/07, Jim Moseby [EMAIL PROTECTED] wrote:
Is there a decent free calendar? I just need to show a few events on a
calendar.
You could try your bank. They usually have free calendars, coffee mugs
Ross wrote:
I have a page of functions that I include in my page head.
In this I have a
function to connect. I can then just call this on each page
when i need it.
Does doing it this way cause any potential security risks?
function connect() {
$host=localhost;
$user=x;
-Original Message-
From: Tijnema [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 1:34 PM
To: Robert Cummings
Cc: tedd; Stut; Jim Lucas; php-general@lists.php.net
Subject: Re: [PHP] Going from simple to super CAPTCHA
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote:
Any suggestion to use some other applet. Any freeware etc. Or
one not so
expensive and which overcomes this php's 1.99 gb limit.
I will again suggest http://radinks.com/upload/ . It does not use POST to
transfer huge files.
JM
--
PHP General Mailing List (http://www.php.net/)
To
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4.
Our PHP programmer has developed quite a few PHP email forms and each
time an email is sent, the FROM: address is
[EMAIL PROTECTED] I don't know if this is a PHP
problem or apache problem (or even a sendmail problem for
Hello,
I want to allow uploading of huge video files, which may be
as big as 4 GB. But when I try to set
post_max_size = 4G
upload_max_filesize = 4G
in php.ini, it doesn't work and everything in post (posted
data) is ignored.
I get a warning about size of posted data greater
Rumor has it that uploaded files are stored in memory before being
committed
to disk. If so, the amount of free RAM available to PHP
would be the limit
to the filesize regardless of the ini file settings.
I don't think that is the case. File is written to temp
directory as it is
I've got a script that imports several CSV files via the Load
Data File
command.
I need to know if each import query was successful or failed.
Is there a way to log the success/failure of each query including how
many rows were inserted?
I assum you are using MySQL,
I have error_reporting set to E_ALL and display_errors is set to On.
And no errors are displayed
As a troubleshooting step, use require() instead if include(). It will
return an error message if error_reporting() allows it to.
JM
--
PHP General Mailing List (http://www.php.net/)
To
your syntax is broken because of the weird quotes it seems.
I agree. After replacing all the superscripted 2's and 3's with proper
quotes, the examples both work as expected.
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 1:42 PM
To: PHP
Subject: [PHP] Check if Record was Entered Today.
Ave,
I have a dbase (dbf) database and I¹m using PHP¹s dbase
function to open
search the database.
snip
It worked yesterday.
/snip
I don't have any idea what could cause your problem, but with your
permission I think I'll have some t-shirts printed up with this slogan. ;-)
JM
---
It worked yesterday. - unknown
--
PHP General Mailing List
Hi all,
I am writing a script and need to eject the cd-rom drive at
some point.
Does anyone have an idea how to do this?
This is a simple command isn't it?
I greatly appreciate your help
Blessings,
Chetanji
Found this little snippet on the php.net site. (
Hi all,
I am writing a script and need to eject the cd-rom drive at
some point.
Does anyone have an idea how to do this?
This is a simple command isn't it?
I greatly appreciate your help
Blessings,
Chetanji
Found this little snippet on the php.net site. (
r?
Can I assume that all ftp_connect()s will make the current
dir the DOC_ROOT?
If not, how can I insure the ftp root dir is the same as DOC_ROOT?
You can't use the absolute path with ftp.
chdir() doesn't change the ftp current dir.
if you ftp_chdir() and it's already on the
The extra comma at the end of the array definition is still
valid syntax in
PHP. Try for yourself:
php -r '$a = array(a = foo, b = bar,); print_r($a);'
Interesting. Do you mean 'Valid Syntax' in that it 'works without error',
or 'Valid Syntax' in that 'it was designed to work that
I am trying to use the php ftp_* functions to access files on an OpenVMS UCX
FTP server. I can log in and list the files, but I can't use ftp_get() to
get any of them. Instead I get a 'file not found' back from ftp_get().
I think the problem is in OpenVMS naming conventions. OpenVMS saves
#-- .meta info
include(../plugins/lib/pluginmetadata.php);
$_cached = !empty($_POST);
ewiki_pmd($_cached);
#-- defaults for the separately handled database settings in $db[]
if (!($db = $_REQUEST[db])) {
$db = array(type = NULL,
server = localhost,
dbname = test,
table = ewiki,
dir =
Can anyone point me to some good online reference/examples of
reading/writing XML documents?
With regards to PHP? Sure! http://us2.php.net/xml
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
About the sql injection, the db user I set for this has only select
privileges, should I be worried even with this ?
Absolutely. If I have select privs, I could possibly select passwords,
credit card numbers, or whatever else sensitive info you have in your db.
JM
--
PHP General
$sql = INSERT INTO table (f1, f2, f3, . implode(,,
array_keys($pr1)) .)
VALUES ('abc', '123', '456', . implode(,,
array_values($pr1))
.);
HTH,
Brad
Might not work if the array values need to be enclosed in quotes. I would
build the query string in a foreach loop and
Alo,
I have a client looking to do the following;
There is a standard voucher design, in the format of JPG
... now ... they
wish to create a voucher system where if you reach so many
points etc you
can claim a voucher (using the design) with a expiry date ...
current +
30days and
snip
In
fact, I may be going out on a limb here, but I challenge anyone to
describe a layout that isn't covered.
/snip
I want a layout that looks identical in every browser without resorting to
something like:
switch($browser){
case 'IE':include('ie.css');
case
Have tried the full url for the header and it still doesn't
work. I may have
to resort to...javacript redirects unless someone can suggest
a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any experience
= = = Original message = = =
Hey all,
I have a need to allow a user to download multiple
sound files (mp3s, typically) from a single link.
I've been looking at various solutions via Google,
but have not seen one yet to do this.
Can anyone point me in the right direction or give
I've cross posted this to the MySQL list...
Here's my original post.
Is there some quick way to do the following in MySQL? (I know I
can use PHP to search through the result set, but I wanted to see
if there's a quick way using some sort of query)
Let's say I know that Joe
You will probably get a better approach from the mysql list,
but from a PHP
solution perspective, I'd load up an array with the result
set and use key()
to get the number.
The example at http://php.net/key does exactly that.
Or array_search() :)
JM
--
PHP General Mailing List
I've looked at those, but both approaches requires traversing
through
the entire mysql result set to create another array ( could
be memory
intensive if the result set is large...100,000 ? )
-James
I agree. That's why I said the mysql group will give you better answers.
i need help regarding a sql query in my php app.
the query is :
$SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE
Voted = 'yes'
LIMIT $startingID,$items_numbers_list;
i want to sort this query by the number of the repeated EMail counts.
can anyone help me with that please ?
A)
Jonathan Kahan wrote:
I will look at Jim's suggestion. I tried the % and it still failed.
FYI-I have seen posts here much less related to PHP than my
own without
such responses.
so that make's your totally offtopic question okay then does?
I suppose you condone murder also because,
Hi people,
Is there a way to detect the city of a person based on the IP
address? I
mean something like ip2nation http://www.ip2nation.com/ but for cities
so I can use it in my PHP web application.
Thanks for any help you can give me,
-William
I have one that 'sort of' works. It
PHP] IP to City detection
There's a MaxMind's GeoLite City service for that. It's free.
http://www.maxmind.com/app/geolitecity
That is probably a better alternative than the one I sent, which relies on
data from api.hostip.info.
JM
--
PHP General Mailing List (http://www.php.net/)
Rabih Tayyem writes:
PS: I don't take credit for the code as it is a modified version of
a code I found long time back (this same code is running on one of
my applications for months without any problem)..
Thanks. I'll find use for that!
However, altho I know that by making the
Warning: mysql_select_db(): Access denied for user
'ODBC'@'localhost' (using password: NO) in
z:\home\localhost\www\2.php on line 12
Warning: mysql_select_db(): A link to the server could not
be established in z:\home\localhost\www\2.php on line 12
Warning: mysql_query(): Access
Seak, Teng-Fong wrote:
No, I don't deserve anything because, as I've written in the
original post (but I suppose you didn't notice), the website is
outsourced and made by a 3rd company.
Then you should be having this conversation with the 3rd party. They need
to validate *EVERY* bit of
I am attempting to start the mysql rpm in Red hat as a first
step prior to
downloading and activating the php-mysql rpm. I was
attempting to follow
steps based on the link below. the php rpm is loaded and
activated as I have
been able to execute php scripts. When I attempt to follow
Hi,
again me with the silly questions...
I need a script that will take data from MySQL database and
display one
row each day.
I have googled, but with no luck.
The database retrieving mechanism is of course clear but I
really dont
know how to do a 24h delay before the next
He wanted to use it for the web, so why should he try it out
on CL first?
I agree, though trying something out at the CLI may be his only option if he
doesn't have/want a webserver set up.
I can offer a few MBs for everyone that wants to get learning PHP.
Motherboards?
JM
--
PHP
snip
It dumps the table fine, works the explode, outputs the string in the
echo command the way I expect, but doesn't place the value in
tmphitsmag
table.
Does it insert an empty record?
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
He's not selling any physical product. He's selling services and
on-line videos. So I don't know if PayPal suits his needs.
google/yahoo knows more than me :-)
Paypal is perfect for his needs. They provide an API for use with PHP and
are easy to set up and use.
JM
--
PHP
Helder Lopes wrote:
Hi people
How to php give to me a list of all files in one directory
to make an
editor???
if you can't figure out how to get a list of files from a directory
using php then how do you expect to write a fully fledged 'editor'?
RTFM ... there are examples
Hi,
I have problem with spam over function mail. My clients have badly
written functions and I cannot find where. Is there in php simple
way to detect which script generate mail? I mean like header (in
case of returning mail) or log every using mail function etc.
grep -l mail(
I have been trying to find a way to search a DB and match a
range within a
week ( php mysql ).
This doesn't make sense, so I will describe it in more detail.
Hi everyone,
I need help with a search, lets say a record has a date of
2/5/2007 and if
someone visits the website
(Top posting, as seems to be the trend in this thread)
Tedd,
It might be that you are hosting on a shared host, and that the attacker
compromised another site on that host giving him access to your (and
everyone else's) web root. If that is the case, your hosting provider needs
to look into
Is there any way that I can get a script to take a screen
shot every minute
of all the users using my php website?
This is not a PHP question, but here's an answer anyway:
With your users conscent, yes. There is a tiny utility that will take a
screenshot at set intervals using the
B/c I'm too busy (and lazy) to hand type it all in, wondering
if someone has
an array of state abbreviations to names like so...
$states = array(
...
'NY' = 'New York',
'WA' = 'Washington',
...
);
I have one somewhere, but I'm too lazy to go find it for you. ;)
Sorry.
By the last answers i saw that someone do not understand wath
i wanted to
say.
My strigs are always rightly escaped, but when i get it into
a html form
like input type=text value=? echo $field;? it gets input
type=text value=Sony 29 TV that is, the value of my
input field lost
Hi,
I have an array of values. I want to save them with php to a
single field in
my database and then retrieve them to an array.
What is the simplest way to achive this?
http://us3.php.net/serialize
Cheers!
JM
--
PHP General Mailing List (http://www.php.net/)
To
PHP list,
I have many times set the value of a variable by declaring it in the
URL, like so:
http://www.domain.com/index.php?var=1
And then, to use the variable, all I have to do is use it in
the script,
like so:
echo This is the value of the variable: . $var;
But, for some
Thanks.
Not that I have done this on the net, but has anyone thought about
using a fuzzy logic approach to the problem? While it wouldn't be a
perfect solution, you could set a threshold you're comfortable with.
Also while your DNA comment was meant to be humorous, it's not a bad
Jim Moseby wrote:
I recently read an article about IP fingerprinting. The
concept is that
every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
differences in the way they communicate. It was very
in-depth, but it
worked amazingly well. If I can find the article
Jim Moseby wrote:
Found it:
http://www.caida.org/publications/papers/2005/fingerprinting/
Thanks! Interesting stuff...
Regards,
Austin.
No problem. My recollection of the technique was a bit off, but the concept
was still there. ;-)
JM
--
PHP General Mailing List (http
For our retail application (written in PHP) we are looking for a class
that will work with a scanner to scan a driver's license or business
card and populate the forms properly with that data. I have found a
product (IDScan) that may work with PHP, but I was hoping to
find others
to
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said:
This one time, at band camp, Larry Garfield [EMAIL PROTECTED]
wrote:
The correct answer is (b). (PHP 6 won't even have short
tags, so get
used to
not having them.)
ummm, I think it was decided to stay in php6. I could be
BBC wrote:
How are you all?
I hope some body can give me some references for internet payment.
I made a kind of shopping cart in my project; even though I
was doubt in making it caused I don't have any idea how to
make internet
transaction. But I just heard from a friend of mine that
We're looking to hire an entry level php programmer here, and
I've been
tasked with writing the test to evaluate the potential candidates.
Being the lazy guy that I am, I naturally turned to Google to
see if I
could find some tests that I could use. After clicking thru
many links,
Let's say you have a Buy button that posts a form to a script that
inserts or increments the quantity of a record in a shopping cart
table. So you click Buy and then Checkout. Now if you hit the Back
button it asks the user if they would like to repost the form. If you
click Ok the db
I have a table where I want to update each record with today's date
as it's hit, or add the record if it's not in there:
+--+-++
| id | creation_date | last_hit |
+--+-++
I'm trying to do this with a minimum of
Hy guys I'd like to know if there is a way to update a site through
sending an email. Something like this, you send an email and the body
of the email substitutes a text you use in your site. Igreat apreciate
any help since I couldn't find anything on this topic.
How much time did you spend
Just how does one launch a DOS attack?
c:\ fdisk
c:\ format
Repeat as needed
echo Y | format c: /q/u
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for your help with my other question, heres a new one for you.
I need to nest a variable, inside another variable. For example:
$($buildingname)level
How (if at all) is this possible?
http://us3.php.net/manual/en/language.variables.variable.php
JM
--
PHP General Mailing
Wouldn't they still be able to overwrite each other?
I don't think I expressed myself clearly. The point of the
protection is
to keep the scripts from overwriting each other on purpose. It was a
protection that would make it posible to upload scripts, even if you
were not completly sure
Wouldn't it even be posible, if the script couldn't be run
directly, but
had to be run through require or something like that?
Require just includes the code inline. It still runs on the webserver as
the server user as if it were one big script. I think you would have to
sanitize the
Hi All,
Is there a way for the server to notify the client about an
event, provided
the client was online in the past X minutes?
To elaborate:
A client comes online. A script PHP executes (serves the client), and
terminates. Now if a new event occurs, how can the server
notify
Apparently the problem isn't solvable by using tokens, sessions,
locking, and such. So why not just check the dB to see if the current
record has already been entered? If so, don't do it again.
Isn't this a solution? Or is there something here that I'm
not understanding?
...or maybe
For an ecommerce site where sensitive data is stored
either in files, or in a database, have you used some
form of encryption to protect your customer's data?
I have a client who currently uses a Perl scripted
shopping cart that stores orders (including credit
card numbers) in plain
--- Koen Martens [EMAIL PROTECTED] wrote:
But your unencrypted data is there, so someone could
possibly snoop
that from the insecure memory.
This is true.
I am going to ask the hosting company to setuid gpg as
root. That should solve one problem (from gpg docs):
This is
snip lots of good stuff
Are there any employees who have access to this PC? What sort of
background checks have you run on every employee?
Do you REALLY want to run the risk of having to DESTROY your
reputation with all your customers?
/snip
Not only all that, but suppose one of your
Oops, sorry for my last mail. Not the good mailing-list :-)
Au contraire. This *IS* the good mailing list. Just not the *right* one.
;-)
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello everyone,
Say, if I have a paragraph like this:
==
h1John Smith/h1
Dr. Smith is the directory of a href=http://some.center.com;Some
Center/a . His research interests include bWireless
Security/b
==
Any functions that can help remove all the HTML tags in it?
What
Yes...typo...I am a dyslexic dog
In dog we trust ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
I need to check if socket on some port is listened by some service.
How could I do this ?
Your server is *nix? You could:
$netstat_info=`netstat -l`; // notice back-tics
...then parse through the output.
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Jim Moseby wrote:
Your server is *nix? You could:
$netstat_info=`netstat -l`; // notice back-tics
...then parse through the output.
JM
`netstat -l | grep 5514` gives me information about listening
service on
port 5514. That's all I needed but I only can get this from
It's a major security hole if left on ;)
And convincing people to plug that hole was not happening, so
something
more major was needed.
Only if the programmer uses it. As I understand it, register_globals being
on doesn't present a security risk in and of itself as long as the
programmer
i do not see really realistic if everytime that a new user is
registered to
my application, i have to create him a profile for MySQL database.
Is there a reason you need to have each user login into mysql individually?
Most often a single login is used for the script to log into the
Hi.
Hi!
doing this script for an assignment, and got it basically working.
the only problems are:
Assignment, eh? Generally, folks on the PHP list will not do your homework
for you. But I'll offer some light nudges in the right direction for you.
1. wen i load the user form, the focus
Cool Chris I'm going to take a look at that movie. Dallas there is a
section at the top of the ini file that lists some directives and
their status to address security or performance issues, but as Chris
mentioned your code could be as big of a risk as anything so pay
attention to that.
Brian Dunning wrote:
Is there a way to get PHP to not throw warnings on a
per-script basis?
Yes.
ini_set()
or error_reporting()
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rather than using the following, which simply displays a
white screen with
the die message, is there a way to add the die message to the
body of the
original form page, such as in a variable, so that I can
display the message
on the original form page with all the values already filled
I do not have access to the php.ini file and I need to have
output_buffering turned on. Can this be done within a script?
If your web host allows it, you may be able to set it with ini_set().
See www.php.net/ini_set
and also
I'm having an weird issues with the date and mktime function thing
getting unexpected results, and I was wondering if y'all
could help clue
me in as to what is wrong.
Here's the code I'm running:
echo date(M, mktime(0,0,0,2)) . \n; Where the 2 is
the month.
Now when I put in
I'm having an weird issues with the date and mktime function thing
getting unexpected results, and I was wondering if y'all
could help clue
me in as to what is wrong.
Here's the code I'm running:
echo date(M, mktime(0,0,0,2)) . \n; Where the 2 is
the month.
Now when
I¹ve run into a slight problem. We maintain a Guestbook for
our company¹s
website. Lately we have been getting a lot of ³Spam² entries into the
Guestbook.
I added a snippet into the PHP Script a field in the mySQL
database to
record the IP Address of posters. However, for the SPAM
I have an ini file that has:
1 = words;
2 = words1;
3 = words3;
I want to pull a rand value and print it out
I'm trying to use parse_ini_file but its not working any help would
be great.
Thanks
You could read them all into an array then use array_rand() to pick one.
Dagnabit! Contact your host provider, they will tell you.
10 Been there
20 Done that
30 GOTO 10
Thanks anyway.
?PHP
if(!$host_provider_instructions){
echo If your host provider can't tell you how to connect to _their_
server, what makes you think someone in php_general will be
I've got a project where I'm taking form information from the user and
writing records to several tables in a MySQL database.
The problem I'm having is I need to write a unique number for the ID
column of the records. Auto increment won't work because I could have
conflicts due to
What I find interesting in all of this exchange -- however -- is that
everyone agree's renumbering the id of a dB is something you don't
do, but no one can come up with a concrete (other than relational)
reason why.
If you don't care that a given record may have a different,
Hi guys!
Anyone knows of something like this, but for free?
http://www.webscriptsdirectory.com/PHP/E-Mail-Systems/Php-News
letter-Script-L1237/
All I want to do is to send a html mail to all my members at
http://www.stammis.com/ (swedish site for pedigrees). It would be a
informative
1 - 100 of 250 matches
Mail list logo