is the fact
that it worked in a previous version of php, so waht's changed?
~V
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Thu 1/7/2010 7:52 AM
To: James McLean
Cc: Vernon Webb; php-general@lists.php.net
Subject: Re: [PHP] Site Moved From PHP4
Didn't know there were php logs, I thought they would be included in the Apache
logs, where do I find the php logs?
~V
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Thu 1/7/2010 8:42 AM
To: Vernon Webb
Cc: php-general@lists.php.net
Subject: RE
It's the oddest thing. I've found the logs but there is no error at all, the
server just hangs and the only way to get it back is to restart Apache.
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Thu 1/7/2010 9:04 AM
To: Vernon Webb
Cc: php
I move a number of sites from one server to another and one the one server we
had php4 and now we have php5 and since then my server seems to hang every time
there is a header, location redirect. Anyone have any ideas on how to resolve
this? Is there something I can easily change in the php.ini
I am trying to send images to my browser using the header function, but keep on
getting 'No image Available'.
Can someone please help!!
_
View your Twitter and Flickr updates from one place – Learn more!
Can you please help with my checkout script. I have been getting errors as
shown below:
Warning: mysqli_query() expects parameter 1 to be mysqli, object given in
C:\wamp\www\draft\checkout.php on line 26
Warning: mysqli_affected_rows() expects parameter 1 to be mysqli, object given
in
Hi,
I am pretty new to PHP and I am trying to create a shopping cart.
I keep on getting the below error when trying to show the shopping list.
Any guidance that can be provided will be very much appreciated
Fatal error: Call to a member function query() on a non-object in
This may be a stupid question, but I am sick and under the guy and am
wondering if you could you show me how to simply echo each file name using
the exmaple below?
Thanks
Jim Lucas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Jim Lucas wrote:
ok, here would be my version of
Ok, I've gotten the following so far, which is giving me the results, except
it is still sorting by file name and not the file's date.
?php
$folder = $_GET['id'];
$dir = /home/recruitsavvy/public_html/resumes/$folder/;
$filepattern = '*';
$sorting_list = array();
$filemtimes = array();
# Get
I'm really starting to feel incompitant here. Sorry to ask, but could you
show me what you mean?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
All is weel except for 2 things:
1. $filemtime = filemtime( $dir . $file ); needed to be changed to
$filemtime = filemtime( $file );
2. The filename is the same filename over and over again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
SOLVED!
I made the following change as well to fix the file name:
BEFORE:
echo date(m-d-Y, $entry['filemtime']) . {$file}br /\n;
AFTER:
echo date(m-d-Y, $entry['filemtime']) . $entry['filename'] . br
/\n;
One last question.
The $entry['filename'] is the file name and path:
That worked great. Thanks.
Micah Gersten [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
http://us3.php.net/basename
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've gotten the one array down and I've figured out how to sort that array,
however, I need to sort the array by the modified date of the file. Here's
what I got so far:
?php
// Open current directory
if($handle = opendir($dir)){
// Loop through all files
while(false !== ($file =
I've just upgraded to php 5 and am now getting the following error:
Warning:
unlink(/home/mywebsite/public_html/resumes/travelport_holiday_rev1.html)
[function.unlink]: No such file or directory
This worked fine prior to the upgrade and obviously the file does exist.
What has changed and
I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php
had
been upgraded from either 3 or 4 to php 5. In doing so I had to do a major
overhaul of
a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't
gotten
through most of that I know have a
Register Globals?
You got it. Is there any advantage to having this turned off?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= mssql_connect ( MS_SQL2000 )
or die ( Sorry - unable to connect to MS SQL2000 );
echo (Congratulations, Vernon, - you connected to MS SQL2000) ;
?
/h2
/body /html
He originally wrote (for line 6) $connection = mysql_connect ( localhost,
root, )
or die (Sorry - unable to connect to connect
Hiya,
Any help or advice would be great.
At the moment I sync my mobile with my computer (Microsoft Outlook), with
all my tasks and calendar entries.
I have made a PHP website with my own coded calendar system. The entries in
the calendar are stored in a MySQL database.
At the moment every day
Hiya!
I am trying to make some code which gets a handle to a directory, but has
different code for my localhost (Windows) and for online (Linux server).
Basically, I want either of the below lines. Say if the first fails, it must
be on Linux and then it uses the line below.
The two example
All I am trying to do is insert the file name, not the file. The file is
being uploaded to the server in a specific location. All I need is the
filename inserted into the database. I've gotten the upload part to work and
everything I just can't get the file name inserted for God knows what
reason.
The uploaded file name will be $HTTP_POST_FILES[filename][name] -- use
that rather than $_POST[filename].
I'm sorry I don't understand. What is the extra [name] for? When I use
this in the insert into the value that is inserted into the database is
Array, as opposed to the actual filename.
As much as I try I cannot get a file field in a form inserted into a MySQL
record. I've even tried to get it to echo to the page when the page is
submitted to itself and it's not reading the field.
What am I missing here?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I want to be able to replace a space that comes from a form field (such as
in 123 My Street) with a + sign.
Can anyone help me with this?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm in the process of moving to a new server and no sessions are working.
Does something need to be set in the php.ini file? Why would sessions not be
working?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Figured it out.
Had to turn on RegisterGolbals (which I had, but didn't restart Apache).
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using the following to replace certain characters but am having troubles
with TABS. How do I find them?
$replacement = array(\, ,, ., !, ?,;, :,),(,\n);
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In case anyone wanted to know I found it:
$replacement = array(\, ,, ., !, ?,;, :,),(,\n, \t,
\v);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sure glad I figured it out myself. :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to use str_replace to ignore sertain characters from a recordset
field and it seems I am having difficulties with ignoring commas and
carriage returns. I've gotten the following but when searching for, let's
say, New York. When York is at the end of a sentence from a recordset field
it
could the problem be that you explode on so the phrase 'New York',
having a space, is split up?
Could be. Some times the New is on one line and the York is on the next
line. I need for it to explode no matter what. How would I do that?
For instance the print_r for the array shows me this in
Nowhere in your replacement array do you check for, or remove,
carriage returns.
Add this \n to it:
$replacement = array(\, \,, ., !, ?, \n);
Your exploded array should now be correct.
When I do this I get some really unexpected results. Almost everything comes
up bold.
--
PHP General
I'm creating a resume database where I am having resumes submitted to this
database and keyword searches done. All works. Now I need to have a way of
tagging items found in the database much like a shopping cart.
So, I have a unique ID created each time someone does a search on the page
which is
I'm having trouble returning the value less the quatation marks from the
following:
$words=explode( , strtolower($keywords));
I'm having the words from the form field put into an array. Problem is if
the field contains something like
trackworker AND New York
It seperates the words
The search is already completd. The previous response answered my question.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to create an array with some text. Let's say the following:
$sometext = array(explode( , Objective: Position as a Machine Attendant
and or Operator Summary - Over 16 years experience in packaging and
maintenance of various operating machinery. - 13 years experience in cutting
steel and
Some one is asking me to create a sub search on a search that has already
been done. For instance, the database has 50,000 records, a user does a
search for two keywords which yielded 1700 records. They want to now filter
that list with other keywords. The logic is that searching 1700 records has
Hello all,
I have been struggling for some time now to develop or find some product
that will allow me to scan documents (I have that part down no problem,
using OMNIPAGE 14.0) and put then into a searchable database with a copy of
it in some form that is readable like a formatted txt file.
I am
I'm wondering if anyone knows of a good file system script that allows some
one to do searches on files in a directory. For instance I'm storing resumes
in folder defined on upload dates and so forth and want to be able to do
searches through these files for keywords and would like to be able to
Hello,
I have search google, and PHP but I cannot find properly how to set the
maximum post upload size as 200Kb?
Do I use 200K or 200KB for post_max_size?
THANKS
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to find a way to search text files in a directory using php. I've
done some researching under the filesystem section on php.net but seem to
have come up empty handed. Is there a way to do keyword searches on a txt
file in a directory hopefully with some type of relevance ranking?
(PHP 4.3.0, Windows XP Pro, Office 2000 Pro)
Hello,
Just playing around with COM, and I got the error below.
Searching on google it mentions something about a DLL error.
Iv'e enabled dcom in php.ini.
What have I missed!
Line 2 says $excel = new COM(Excel.Application) or die(Excel could not
Hiya,
I have quite a few maitenence php scripts I run on the command line in
windows. I realise there are ways to alter the look of the DOS command
prompt in windows. But if I reinstall windows, or use the script on another
machine they will be lost.
I'm thinking of letting users download it as
(Windows 2k, Apache, PHP, MySQL, Large Computer with Raid Array and Big
Drives!!!)
(Appology if this is been asked before, but I couldnt see it)
Hello,
First of all I had better say I don't think I am doing anything illegal. I
have over a thousand origional CD's, and would basically like not
erythros and Burhan,
Thanks for the reply.
Basically I started putting my music into a program , and the program I did
it on didn't like the amount of tracks (kept crashing), and didn't give me
as many options as I would like. I'm not worried about a fancy interface and
graphical displays of the
Hello,
When I use the gmdate function, I get the English date, e.g. October. Is it
possible to get the date in German or another language? I really need the
server setting up so that it can handle different languages.
I suppose I could get the month as a number, and then convert the number,
but
I know that using stripslashes will remove \ using php but I'm having
trouble with posting quotation marks in a text record field. Anyone know how
I can get them to post to the database? It's basically like an email and I'd
like anything written to be able to post.
Thanks
--
PHP General
OK when I use the mysql_escape_string() it adds the slashes so that the
message will have \the message\ so I've tried using the stripslashes() as
such:
$message =
stripslashes(mysql_escape_string($HTTP_POST_VARS['message']));
which then causes the orginal problem, so it seems that I keep
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The point is I don't know how to do that. That's why I was asking. :)
Vern
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thats' great!
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't take much to spread a little kindness.
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
I'm using the ORDER BY RAND() LIMIT 0,1 to give be a random record from a
recordset but it seems like it puts a real heavy load on the server. Is
there a better way to pull a random record from a database?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Here it is:
SELECT penpals.username, penpals.zoneid, penpals_photos.album,
penpals_photos.rating, zones.zone_id, zones.zone_code,
penpals_photos.filename, penpals.city
FROM penpals, penpals_photos, zones
WHERE penpals.username = penpals_photos.album AND penpals_photos.rating !=
'X' AND
I'm trying to add a variable to the end of a directory listing.
This will give me the root directory and show me all the files
exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/',
$filelist);
I figured I could do this but it shows me all the files in the root of the
site not of
I have a way of getting the distances from one zip code to the next in the
US, but I need to be able to do that for other countries as well.
I've found a web site on the net that sells a database of all postal codes
and their longitude and latitudes but they want a $1000 which I am not
willing to
I am very big on Internet security and anyone running a web server should
know IPChains and IPTables. If you don't get a couple of books and learn.
Once you understand how things work you we will be much better equipped to
handle any security issues that may come up.
Having said that you don't
Not sure if there is an html tag or php that will tell a page not to display
any errors on the page, but does anyone know how to do that? I want to hide
any error that might be displayed, JavaScript or otherwise.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm trying to delete two files in on fell shoop. One is defined with $file2
// returns filename without extension
$filename_small = substr($file1, 8, 10);
// returns define location and file name to delete
$file2 =
/home/httpd/vhosts/servername/httpdocs/photoalbum/$filename_small;
// the other
Figured it out thanks anyway for looking.
:)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know this is sort of off topic but I was wondering it any one knew if
there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in
php to use on an Apache Linux Red Hat server?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Please forgive the ignorance of this question but I am trying to use an
include for a site navigation menu and am having a hard time figuring out
how to point at the route of the site.
For instance I may have home set as index.php, but if my users are in
messages/index.php that will always bring
Is there some thing that needs to be turned on in the php.ini in order to be
able to upload photos VIA php? I have the same script on one machine with
the right permissions on the upload dirs on one machine and am moving to
another machine which is not being uploaded. Funny thing is I'm not
I am calculating distances between to record's zip codes using php and have
a need to sort the recordset by that value. How do I do something like this?
I mean it's not a value in the table that I can use the SQL ORDER BY
statement. I want to be able to have the distances closest to the individual
When you say using php I'm assuming that this means you are not doing
the calculation at the database, but rather in your PHP code.
Correct.
Use the distance you've calculated as the numeric index of an array,
pointing to
the record that corresponds to that distance.
Can you please expalin
All the email coming from a web site, even though I have set the Reply-To,
have the Reply-To set to [EMAIL PROTECTED] Anyone have any ideas why? I
want the reply-to set to somethign else.
Here is what I have:
mail($clubemail, $subject, $message , From: $email\r\n,Reply-To:
$email);
--
PHP
I've had to convert times in a MySQL field to a normal date, but never in
reverse. How to I convert a date in this format, 03/14/2003, to MySQL format
so it can be posted to a date field?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hiya,
I'm working on an email part of a site, normally I just send in text,
but for this site I need to send HTML and text.
Now I have made the HTML ones, that work fine. Is there a PHP way to
convert this to a normal text file for the text emails?
It dosent need to be that preety or
I'm setting up a user online system using MySQL where I have 4 fields, all
of which is working fine.
I need the information from all the fields but want only distinct values
based on the uname column. If I use the:
SELECT DISTINCT uname
FROM useronline
of course I come back with the values I
a
ORDER BY command) the last one is the only one I want and only want to
return:
jimmy successfullogin.php
susan search.php
make sense?
Arturo Barajas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Vernon,
Don't know if I get it right, but:
SELECT DISTINCT uname, file
FROM useronline
I need to have files that exist within a folder on my server based on the a
MySQL record that contains it's name. What command would I be looking for in
the php functions list? Anyone?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have users uploading images to a server and need to have those files
resized on upload. I looked under filesystem, but found nothing like that.
Anyone?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hiya Greg or anyone else!
I realise that PHP does not have inherent thread support as yet. But is
it possible to simulate threads?
What I would like is for the user in a web site in a rare condition to
cause a long script to be completed. Now as far as I can make out you can
make it not
Anyone know of a video conferencing solution (hopefully GNU) for use within
a php web site? I'm looking to do something where a number of people can
video conference at the same time.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
I'm using the following code to save an MD5 password into a database along
with an unencrypted username and email address:
$insertSQL = sprintf(INSERT INTO penpals (email, password, username) VALUES
(%s, MD5(%s), %s),
All seems to have worked well, the password is encrypted and so
I'm thinking that the MD5 function more than likely encrypts a password to
store into a database, and when you log in using the MD5 function it will
simply encrypt the value being passed along again the same way. Now I'm
wondering what happens when I user has lost there password and needs to
For what ever reason I cannot seem to get a user to login using MD5. The
user creates the password on log and it works fine, password encrypted and
all. I test to see if the process is working ok on creation by using the
UPDATE penpals SET password = MD5(password)
and the encrypted passwords
I made the mistake of opening a web site with encrypting the passwords
stored in the database and want to encrypt them all in one fell swoop. Any
ideas on how to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hiya,
Perhaps I don't mean threads!
Basically I have a PHP script which is in a website, and runs when a
certain input is recieved and it is quite complicated, and may take quite a
time to finish, as it will be sending quite a few emails. The emails do not
have to be sent straight away,
After upgrading to MySQL 4.0.1.2 I ma getting the message :
Fatal error: Call to undefined function: mysql_connect() in
/home/penpals/pub/mysql.php on line 3
Please help my production server is down!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Just so you know, MySQL is working.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is not helping me. I know very well that I should not and I tried the
upgrade on two other machines and all went wll.
My problem still stands and a search does ntohiong but tell me to check that
the path is correct. If it worked before then obviously the path is fine,
unless something has
For some reason I do not see any error logs for today.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think the point is here that I can connect with a MySQL client, so MySQL
is running.
I cannot however connect using PHP. What would cause this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm sorry I have no idea what that means.
Marek Kilimajer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
try
ldd /usr/lib/php4/mysql.so
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I try to restart Apche I get the following error:
PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' -
/usr/lib/php4/mysql.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Any ideas, pleas ethis thing is still down.
--
PHP General
There is no mysql.so file
Lucas Lain [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
ldd /usr/lib/php4/mysql.so?
Vernon wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I try to install that I am told:
libmysqlclient.so.10 is needed by php-mysql-4.1.2-7.2.6
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK, I looked up that file and found that I needed to install the
MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have
the php-mysql installed. But am still getting the same erro message when
restarting.
However I did find the file you were asking about but in the
I finally got it!
I had to downgrade to an older verison of the php-mysql for God know what
reason. I am back up now.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've successfully created a search and result page for a dating site which
off of the result page is a detail page for reviewing the profile online and
so forth.
The problem I'm having is once a user does his/her search they may come up
with a number of results which after reviewing one of the
When I do that I get syntax errors in the SQL
Marek Kilimajer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Simple answer is - use GET method instead of POST for your searches
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
That did it. Thanks (in all the years I have been doing this you think I
would have learned that already)
Marek Kilimajer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Changing the method also implies changing $_POST to $_GET in your code.
--
PHP General
I have a membership base that is logging into a php and MySQL based web site
and am wanting to be able to create a who's online (and perhaps an ability
to contact that person, but that's later) so that that person's profile is
available.
Anyone have any ideas where I could download a quick script
I'm trying to create an array from a rocordset that will do somethingt like
this:
$datay=array(12,8,19,3,10,5,55,88,3);
the following is the code I have attempted to create, which is not working:
do {
$dat = ($row_rsCOUNTRY['CountryCount'] ,
$row_rsCOUNTRY['CountryCount']);
} while
That gives me something that looks like this:
Array ( [0] = 34 [1] = 31 [2] = 16 [3] = 16 [4] = 6 [5] = 4 [6] = 4
[7] = 3 [8] = 2 [9] = 2 [10] = 2 [11] = 2 [12] = 2 [13] = 2 [14] = 2
[15] = 2 [16] = 1 [17] = 1 [18] = 1 [19] = 1 [20] = 1 [21] = 1 [22]
= 1 [23] = 1 [24] = 1 [25] = 1 [26] = 1 [27] =
I've setup a search page using PHP which when searching a MySQL 'varchar'
field it works just fine, but I'm trying to extend the search to include a
field that is a 'text' field and it keeps coming back with no results.
Is searching text fields allowed? It would seem that it only be logical that
How do I create a graphic pie chart on the fly with PHP. I have already
figured out how to get the variables from the database and so forth am just
looking to create the graphics.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 134 matches
Mail list logo