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"))
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
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
>
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");
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
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
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
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
>
> &
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)
*
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."
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
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
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)
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
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
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
>
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
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
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
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
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
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
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
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
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.
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
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
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)
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
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
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
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
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
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($
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
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
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
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
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
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?
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:
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:
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/
";
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
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
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:
>
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 "";
/
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)
**
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
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
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
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.
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
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
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.
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)
**
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
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
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
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
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
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
801 - 862 of 862 matches
Mail list logo