Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Glory & Power! I'm using the following code now... the Error is gone, but it's still overwriting the old file. It's not changing the name.. not doing anything, just uploading this new file and replacing the old one.. "256000") and ($img1_type != "image/pjpeg") or ($img1_type != "image/jpeg"))

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Glory! > Well, I don't see any thing in your code that > denotes the directory the images are going in? What about this : copy("$img1", "mjpalpics/$img1_name") or Die ("Could not do"); Sends the images to the mjpalpics Directory! > 'path/to/img/img.jpg' > exists and if so, name the upload im

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Well thanks a bunch! --- Nick Wilson <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Thomas Edison Jr. declared > > Hmm... possibly when i say > > if(file_exists($img1_name)), he's looking for the >

RE: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
WOOO.. i did not know this was possible : file_exists("mjpalpics/$img1_name") And this might actually solve the whole issue!! Let me try this.. Thanks a BUNCH! T. Edison Jr. --- John Holmes <[EMAIL PROTECTED]> wrote: > > > copy("$img1", "mjpalpics/$img1_name") or Die > ("Could > > > not do");

Re: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread Thomas Edison Jr.
Glory! T. Edison jr. --- Miguel Cruz <[EMAIL PROTECTED]> wrote: > On Sat, 11 May 2002, Thomas Edison Jr. wrote: > > If i have a filename "room.jpg" in my Upload > > Directory, and someone else comes and uploads a > file > > by the same name, the previous &quo

[PHP] 5 Records in a row displayed!

2002-03-09 Thread Thomas Edison Jr.
Hi, I'm looking to display 5 records in one rows, from the database. What i mean is, basically, let's take the "emails" as an example. I have a table with 100s of email addresses. Now i want to display these email addresses on a page, but i want to display only 5 email adresses in one line, the

[PHP] 5 Records per line

2002-03-11 Thread Thomas Edison Jr.
Hi, I would like to display 5 records per line on the Results page. Not seperated by a comma, but just seperated by Space. How can i do that? Thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxa

Re: [PHP] 5 Records per line

2002-03-11 Thread Thomas Edison Jr.
n one line, there should be only 5 usernames, seperates by spaces. Like this : user1 user2 user3 user4 user5 user6 user7 user8 user9 user10 Can you help? Thanks, T. Edison jr. --- RIVES Sergio <[EMAIL PROTECTED]> wrote: > may you give me more explanations ? > thanx > SR > > &

Re: [PHP] 5 Records per line

2002-03-11 Thread Thomas Edison Jr.
Hi, This is the code i'm using so far : $myrow[num] "); } while ($myrow = mysql_fetch_array($result)); } else { echo "Sorry, no records matching your criteria were found!"; } ?> But this displays all records one per line... T. Edison Jr. = Rahul S. Johari (Director) *

Re: [PHP] 5 Records per line

2002-03-11 Thread Thomas Edison Jr.
Hey THANKS! It worked.. just the way i wanted! Thank you so much. T. Edison Jr. --- RIVES Sergio <[EMAIL PROTECTED]> wrote: > i don't know if it will work... i am quite a newbie > in this stuff. > > Hope it could help you > > > "Thomas Edison Jr."

[PHP] Check "@" in Record & show Error in mail() !!

2002-03-11 Thread Thomas Edison Jr.
Hi, I'm using the following code to get Email Address stored in a table in my Database : $myrow[email] "); } while ($myrow = mysql_fetch_array($result)); } else { echo "Sorry, no records matching your criteria were found!"; } ?> But there are some records where the user has enter

Re: [PHP] phpMyAdmin

2002-03-11 Thread Thomas Edison Jr.
With the phpMyAdmin, you get a "Config.inc" file. You will have to change the parameters (username, password, database) etc., in order to access your phpMyAdmin. T. Edison Jr. --- "Chuck \"PUP\" Payne" <[EMAIL PROTECTED]> wrote: > I have a client that has install phpMyAdmin but > can't get into

[PHP] Error Handling!

2002-03-12 Thread Thomas Edison Jr.
I want errors reported on a page when the mail() function for any reason fails to send emails. FOr example, if there is a malformed email address or anything, and the mail is not sent, how can i catch the Error and Display it on the page? Thanks, T. Edison Jr. = Rahul S. Johari (Director)

[PHP] MS Access data => mySQL database

2002-03-25 Thread Thomas Edison Jr.
Can anyone tell me how to convert/send data stored in an MS Access database to a mySQL table through PHP?? T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 9

Re: [PHP] MS Access data => mySQL database

2002-03-26 Thread Thomas Edison Jr.
e answer for you if you want to do it > completly with php, but it gets you > to the basic area, and transfers the data.. > > there is at www.hotscripts.com a php access>mysql > converter, i tried it last > year, but found it very buggy. cannot remember what > it was cal

Re: [PHP] MS Access data => mySQL database

2002-03-26 Thread Thomas Edison Jr.
Thanks... actually the software DBTools from www.dbtools.com.br is excellent for the same purpose, as suggested by someone here. It does the needful pretty efficiently. Cheers! T. Edison Jr. --- Jon Farmer <[EMAIL PROTECTED]> wrote: > > Can anyone tell me how to convert/send data stored > in >

Re: [PHP] Personal web server that runs PHP

2002-03-26 Thread Thomas Edison Jr.
Hi, Of course. The "Personal Web Server" that is available with Windows 98 as an Add-On totally supports PHP4. I have it configured on my system. I'm not sure if i know of a place where you can download it from.. But it's available as an "Add-On" with Windows 98 CD. If you look on the net, i'm

Re: [PHP] Personal web server that runs PHP

2002-03-26 Thread Thomas Edison Jr.
In fact, using Apache Win32 Module on a Windows 98 PC is a much better choice & option rather then PWS. Apache server gives greater flexibility & support. I don't see any reason why you should choose PWS over Apache Win32 for your Win 98 PC? T. Edison Jr. --- R'twick Niceorgaw <[EMAIL PROTECT

[PHP] Adding "a" in "try.jpg"!

2002-04-08 Thread Thomas Edison Jr.
I have a new very intriguing problem at hand. I have the name of my Images stored in my mySQL database in one column. Now when i pick the images, they are displayed as it as. However, they are the big images, and the thumbnails of those images are stored with an "a" at the end of thier names. T

Re: [PHP] Adding "a" in "try.jpg"! Problems!

2002-04-08 Thread Thomas Edison Jr.
g$', 'a.jpg', > $oldname); > > No point messing up your database; just use > something like the above when > you're outputting the image tags for the thumbnails. > > miguel > > On Mon, 8 Apr 2002, Thomas Edison Jr. wrote: > > > I have a new v

Re: [PHP] Adding "a" in "try.jpg"! SOLVED!!

2002-04-08 Thread Thomas Edison Jr.
s with the "a"!! Thanks AGAIN! T. Edison Jr. --- Miguel Cruz <[EMAIL PROTECTED]> wrote: > (untested) > > $newname = eregi_replace('\.jpg$', 'a.jpg', > $oldname); > > No point messing up your database; just use > something like the above wh

[PHP] Search Results, Per Page, Total Results!

2002-04-15 Thread Thomas Edison Jr.
Hi, I have a mySQL table on which i'm performing a search.. something like this : $sql_text = ("SELECT * FROM searchtb where vCategory='$q' || vSubCategory='$q'"); Now i want the Search Results to appear per page.. that is, maybe 15 Records per page should appear.. with something like this on

[PHP] Search Results, Per Page, Total Results...

2002-04-15 Thread Thomas Edison Jr.
Hi, I'm working on a search program that searches on a mySQL DB and gives back results.. something like this : $sql_text = ("SELECT * FROM searchtb where vCategory='$q' || vSubCategory='$q'"); What i want is that the results should be displayed PageWise.. that is, maybe 15 results per page. So

[PHP] Searching a mySQL DB

2002-04-15 Thread Thomas Edison Jr.
I'm working on a search program that searches on a mySQL DB and gives back results. I have a table with a column vProName, which let's say, contains a record "Basket Ball Game". Now what i want is that if someone searches for "Game" or "Ball", even then this record should appear. Could someone

[PHP] Resetting ID in mySQL DB

2001-11-11 Thread Thomas Edison Jr.
the entire IDs to reflect the true Number of records after i delete the Empty/Blank Rows & Duplicate Record Rows!! How can i do that! Please help! Cheers & Glory, Thomas edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc.

RE: [PHP] Resetting ID in mySQL DB

2001-11-19 Thread Thomas Edison Jr.
7;s defeating that and empty records are entering into the DB. I don't know why really!! Thanks a bunch! Cheers & Glory, Thomas Edison jr. --- Jack Dempsey <[EMAIL PROTECTED]> wrote: > Thomas, > > The code i gave can't be copied directly in...you > need to use it as a gu

[PHP] Help needed developing Logic!

2001-11-24 Thread Thomas Edison Jr.
Hi, I've made a PHP Chatroom and i need help developing the logic behind the "Private Chat" feature. I'll first explain briefly how my chat works. It's a very very simple Chat using just DB and nothing else. User enters.. his name,date goes into Chat. QueryString passes his name to main area f

[PHP] PHP script not paring in CGI!!!

2001-12-16 Thread Thomas Edison Jr.
Hi, I'm running a Solaris OS. I have written a CGO function to call common header & footer for pages. All HTML pages are running well with it, however, a PHP3 page is not!! It's contents are not showing up. Nothing i showing up! What do i do? T. Edison jr. = Rahul S. Johari (Director)

[PHP] PHP3 NOT being parsed for SSI!! HELP!!

2001-12-19 Thread Thomas Edison Jr.
Folks, I have a serious problem and i don't know what to do. We have a fixed template for each intranet page. Now the template consists of a header, a left navigation and a footer. The body would contain my pages content. What we are doing at present is that the header, the left navigation

[PHP] How to backup records in mySQL DB?

2001-12-19 Thread Thomas Edison Jr.
Hi, I'm having a touch situation on my hands. Last week one of my site was shut down in what the Hosting Company claimed to be a Policy Violation. However, it was found out later that it wasn't so and they had to re-host my site. Unfortunately, they erased my mySQL database with my account and w

[PHP] How to backup records in mySQL DB?

2001-12-19 Thread Thomas Edison Jr.
Hi, I'm having a touch situation on my hands. Last week one of my site was shut down in what the Hosting Company claimed to be a Policy Violation. However, it was found out later that it wasn't so and they had to re-host my site. Unfortunately, they erased my mySQL database with my account and w

[PHP] Counting "Views" on records in DB!

2001-12-21 Thread Thomas Edison Jr.
Hi, I was just going through some Message Board system and noticed that there is a "Views" column which gives how many times the Message has been viewed. I created a similar message board, where Messages are stored in a MySQL DB Table. But i have no idea how to do this, that the number of times t

Re: [PHP] Counting "Views" on records in DB!

2001-12-21 Thread Thomas Edison Jr.
Hi, > UPDATE $table views=views+1 Umm.. can you be a little more specific. I couldn't make much sense, thought i could get the logic. Thanks. T. Edison jr. > > Hi, > > I was just going through some Message Board system > and > > noticed that there is a "Views" column which gives > how > > many

[PHP] Changing "From" Info in eMail!

2001-12-24 Thread Thomas Edison Jr.
Hi, I'm using the mail() function to send email. However, when the reciever recieves the email, my Servers name comes up in the "From" in his MailBox and also inside the email, even after defining the "From: " in the mail function. How do i change this From info?? This is what i'm using : mail($

RE: [PHP] Changing "From" Info in eMail! : SOLVED!!!

2001-12-24 Thread Thomas Edison Jr.
quot;, "From: $from"); > > instead of : > > mail($to, $subject, $message, "From: $from"); > > I had a similar problem because I didn't have > everything in quotes. > > Ben > > -Original Message- > From: Thomas Edison Jr. > [mailt

[PHP] Passing Special Characters in Query String

2001-03-27 Thread Thomas Edison Jr.
I'm facing a problem with Special Characters ($, %, &, \, /, ;, :, ", ') etc.. We are sending a varibale in a query string like this : with $title containing multiple words & these special characters, it is not passed. I get an error. Without urlencode, multiple words are not passed with

Re: [PHP] Passing Special Characters in Query String

2001-03-28 Thread Thomas Edison Jr.
I've tried everything : rawurlencode, urldecode, htmlentities, htmlspecialchars - nothing is working. and come 2 think of it - it seems like such a basic problem... Help! T. Edison jr. --- Christian Reiniger <[EMAIL PROTECTED]> wrote: > On Wednesday 28 March 2001 08:36, you wrote: > > I'm facing

[PHP] Reading db fetched values from files.

2001-03-31 Thread Thomas Edison Jr.
awright, basically what i want is to write a script that can open a file and read some values that i want, for eg:- yahoo mail. if i have an account and i can make a page that logs on to my yahoo mail using my account, i want to display the number of unread messages ( & perhaps read messages ) on

Re: [PHP] Passing Special Characters in Query String

2001-03-31 Thread Thomas Edison Jr.
apparently, "echo" solved my problem - much to my surprise & disgust, considering the head i was putting into it. printf() apparently didn't print any special chars coming in it - while echo prints anything & everything without a problem!!! Though i am having some problems with slashes, i guess s

[PHP] Reading specific contents of a file

2001-04-02 Thread Thomas Edison Jr.
using fopen() i can open a file & using fread() i can read it's contents, store them & print them. But is there any way of checking the contents for a specific word or characters? For example i want the file pointer to search & if found, print the word "enter" from the open file. how to do this?

[PHP] fopen() redirected file & frameset file

2001-04-05 Thread Thomas Edison Jr.
only one of the frame file. I know the "frame name" of the frameset in which i got the file... but how to make fopen() actually reach that frameset file.? is it possible?? Regards, T. Edison jr. --- Felix Kronlage <[EMAIL PROTECTED]> wrote: > On Mon, Apr 02, 2001 at 04:38:

[PHP] fopen() Redirected File & Frameset File!!!

2001-04-05 Thread Thomas Edison Jr.
only one of the frame file. I know the "frame name" of the frameset in which i got the file... but how to make fopen() actually reach that frameset file.? is it possible?? Regards, T. Edison jr. --- Felix Kronlage <[EMAIL PROTECTED]> wrote: > On Mon, Apr 02, 2001 at 04:38:

[PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-27 Thread Thomas David Kehoe
riendshipCenter.com). Here's the full class script, followed by the script I use to call the function. -- Thomas David Kehoe, author of "THE EVOLUTION OF INTIMATE RELATIONSHIPS" How Our Brains Are Hardwired For Relationships http://www.FriendshipCenter.com/TEIR/ ";

[PHP] Hiding password in a class file (object-oriented programming)?

2001-07-09 Thread Thomas David Kehoe
hout making a class treats the file as HTML and it doesn't execute. -- Thomas David Kehoe, author of "THE EVOLUTION OF INTIMATE RELATIONSHIPS" How Our Brains Are Hardwired For Relationships http://www.FriendshipCenter.com/TEIR/ -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] how to hide dbconnect file if its in publisheddirectory?

2001-07-10 Thread Thomas David Kehoe
fish.inc'); can't find the file. As I wrote earlier, my .inc files can be read by anyone typing in the URL. It doesn't matter if there are lines. .inc files don't execute. I rent server space from phpwebhosting.com, so I can't change the PHP settings. Any othe

Re: [PHP] ereg() help, plz

2001-07-15 Thread Thomas R. Powell
Try this, while ($file_name = readdir($dir2)) { if ($file_name!="." && $file_name!=".." && $file_name!="head.jpg" && !ereg(^tn_,$file_name)) { $files[]=$file_name; } } $numfiles = count($files); for ($i=$g; $i<$numfiles; $i++){ echo $files[$i]; } Tom At 09:45 PM 7/14/01 -0400, you wrote: >

[PHP] Upload of files gives Mimetype on header

2001-08-08 Thread Thomas Mejer Hansen
Hi When I try to upload files using the example in the PHP documentation, i get uploaded files with the first two lines being e.g.: " Content-type : image/jpeg " How can I remove this mime type from the images that I upload (so I can perform some manipulation of the images) The code : echo ""; /

[PHP] Upgrading to Windows XP "Whistler"

2001-08-22 Thread Thomas Edison Jr.
7;m muchly new at this thing so it'd be really good if someone can tell me what is gonna to happen. Also, i've been using Apache as the server, will i have to download a newer version of Apache for my windows XP? Thanks. Thomas Edison jr. = Rahul S. Johari (Director) **

[PHP] mysqli_connect problem

2010-02-28 Thread Thomas H. George
I am a newbie. The following script works but the second one (below) loads the variables from an html form and then fails. The connection command in the second sript are identical as the first script was copied from the first. Only the variable values have been changed. #!/usr/bin/php # The fol

[PHP] mysqli_connect problem

2010-03-01 Thread Thomas H. George
I am a newbie. The following script works but the second one (below) loads the variables from an html form and then fails. The connection commands in the second sript are identical as the first script was copied from the first. Only the variable values have been changed. #!/usr/bin/php # The f

[PHP] php mail() sendmail hanging freebsd 4.10

2004-11-21 Thread Thomas S. Crum
appreciated. I've included the sendmail.mc and php.ini files below. Best, Thomas S. Crum # Sendmail .mc file divert(-1) divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.19 2003/12/31 17:42:16 gshapiro Exp $') OSTYPE(freebsd4) DOMAIN(generic) FEATURE(access_db, `hash

[PHP] Unserialize Errors

2005-09-19 Thread James Thomas Richardson
Hello all, I'm curious to know if there are stability issues with the un/serialize functions. I've my code, I serialize a multidimensional array to disk and when I read it in later, 20% of the time I get errors like: Notice: unserialize(): Error at offset 2137774 of 2137781 bytes -- James T.

[PHP] PHP & mySQL on Sun Solaris OS

2001-02-06 Thread Thomas Edison Jr.
Does PHP work on Sun Solaris? if so..where can i get the version that needs to be downloaded & installed on solaris machine and the documentation to install it there? same for mySQl? thanks... T. Edison jr. = Rahul S. Johari (Director) ** Abraxas T

Re: [PHP] PHP & mySQL on Sun Solaris OS

2001-02-06 Thread Thomas Edison Jr.
Thanks for the info... we'll download the source .. but how do we install on the Solaris machine? is there any doc available for that? it comes with the source file? Thanks, T. Edison jr. --- "Martin A. Marques" <[EMAIL PROTECTED]> wrote: > El Mar 06 Feb 2001

[PHP] HTTP authentication

2001-02-14 Thread Thomas Edison Jr.
I was browsing thru the http authentication method given thru the header() function in the manual. I tried it out but it's not giving me the pop-up window asking me the username and password and is only writing the text given in the code on the page. I'm using win98 and otherwise use sun solaris.

[PHP] HTML Coding in mySQL field

2001-02-15 Thread Thomas Edison Jr.
IN one of the fields being offered to the user, the user is expected to enter HTML tags alongwith the text. How can i display this text as html formatted on my PHP3 page? What should be the field type in the mySQL db? should it be TEXT? Regards, T. Edison jr. = Rahul S. Johari (Director) **

[PHP] How to achieve mixed authentication/anonymous access

2010-04-14 Thread Dirk Thomas / 4wd media
Hi, i have a problem with Authentification. I currently doubt that it is possible at all. Perhaps someone can enlighten me how to achive the goal or confirm that it is not reachable. The scenario is to achieve a mixed authentication/anonymous access similar as described for Subversion (see ht

[PHP] question regarding type hinting parameters of php functions

2007-11-26 Thread Dirk Thomas / 4wd media
Hi, i have tried a current snapshot of PHP 5.3 and have a question regarding type hinting. For example when using the function "array_slice(array $array, int $offset, int $length)" with a non-integer length parameter, what is the desired behavior? When calling "array_slice($array, 0, (float

RE: [PHP] Random number generation and phpBB search IDs

2004-11-27 Thread Thomas S. Crum - AAA Web Solution, Inc.
ot;; $result = mysql_query($query); $number_checker = mysql_result($result, 0, "total"); } If this is in fact a bug (not likely) and it gets past this too, then wow start using auto increment or something? Best, Thomas S. Crum -Original Message- From: Gordon Mc

RE: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread Thomas S. Crum - AAA Web Solution, Inc.
There is no global variable. Set a cookie the when they hit the login page and then check to be sure that cookie isset when they post to it. Example for login.php: Best, Thomas S. Crum -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, November 29

RE: [PHP] Errors

2004-12-01 Thread Thomas S. Crum - AAA Web Solution, Inc.
Incorrect syntax. You likely have a set a variable and not ended it with ';' For example, $some_variable = "some_value"; is the proper syntax. Or, post the code as recommended. Best, Thomas S. Crum -Original Message- From: Greg Donald [mailto:[EMAIL PROTECT

RE: [PHP] SQL sums

2004-12-03 Thread Thomas S. Crum - AAA Web Solution, Inc.
If someone doesn't give you an answer here, try php cookbook by O'reilly. It has this exact recipe in it. Best, Thomas S. Crum -Original Message- From: James Nunnerley [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP] SQL

<    4   5   6   7   8   9