is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
George B wrote:
is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
Sure -- if you're using a MySQL database, just use a BLOB field and put
the data in as you would a string
OK I understand the difference between a get a post but if I just have a
URL/link which is calling a function like so:
abc.com/display_information?customer_number=$value
It passes to the display_information the customer number visably, is there a
way to do this where it's not visable?
I am looking for a way to merge image A with image B such that pixels in
image A that are a certain color are replaced with pixels from in image
B in a fashion similar to the blue screen effect that is used to
surround an actor with a background that really isn't there.
This would be like
Joey,
Take a look at how to use sessions on the php web site...
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Joey wrote:
OK I understand the difference between a get a post but if I just have a
URL/link which is calling a function like so:
abc.com/display_information?customer_number=$value
It passes to the display_information the customer number visably, is there a
way to do this where it's not
Alessandro Rosa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a problem to record session data and I would you
help me. I suppose there's something I missed in the general
configurations during the last install, but I can't realize it.
Review the settings in php.ini. In
You can put the value in a hidden form field and submit it with
JavaScript, but it's still not truly hidden, as it is still sent in a
cleartext HTTP request.
Not to mention being visible upon viewing the page source...
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL, but
I
didn't see anything that looked obviously wrong, though I don't understand
Joey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
OK I understand the difference between a get a post but if I just have a
URL/link which is calling a function like so:
abc.com/display_information?customer_number=$value
It passes to the display_information the customer number
Raz wrote:
You can put the value in a hidden form field and submit it with
JavaScript, but it's still not truly hidden, as it is still sent in a
cleartext HTTP request.
Not to mention being visible upon viewing the page source...
Well, that depends. If it's user input that is added via
have a look here..
http://www.php.net/session
scroll down the page you will find some better session handling codings!
vk.
On 7/18/05, Mark Rees [EMAIL PROTECTED] wrote:
Alessandro Rosa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a problem to record session data and
i recently met samekind of problem, could you pls specify the
OS, Apache, Php and MySQL vesrions you are using?
vk
On 7/18/05, Mark Rees [EMAIL PROTECTED] wrote:
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
I have a query
$query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'
This prints out a table
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
// this just fills the empty cells
if ($row['fname']==){
$row['fname']=nbsp;;
}
if ($row['sname']==){
$row['sname']=nbsp;;
}
Ross wrote:
I have a query
$query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'
This prints out a table
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
// this just fills the empty cells
if ($row['fname']==){
$row['fname']=nbsp;;
}
if ($row['sname']==){
Mikey wrote:
Ross wrote:
I have a query
$query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'
This prints out a table
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
// this just fills the empty cells
if ($row['fname']==){
$row['fname']=nbsp;;
}
if
Ross [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a query
$query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'
Simply requery the database for each search. For example, this orders the
results by surname from a-z
$query = SELECT * FROM sheet1 WHERE
In my current hosting situation I don't have the ability to store my file
that contains MySQL userids/passwords in a subdirectory that is not under
the server root. In order to protect it from being included from a foreign
host I thought up this scheme of using the php_uname function to check
Mark Rees wrote:
Ross [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a query
$query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'
Simply requery the database for each search. For example, this orders the
results by surname from a-z
$query = SELECT * FROM
* Jasper Bryant-Greene [EMAIL PROTECTED] :
George B wrote:
is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
Sure -- if you're using a MySQL database, just use a BLOB
Hi all
We have a extensive software that uses php session to store some very basic
session information.
ALL, and I do mean ALL files (except for globals.php) start like this:
?php
require_once ../scripts/globals.php;
...
?
And the file globals.php starts with
?php
session_start();
We have
OK this may not be the correct place to ask but maybe someone can help.
Related to the Post URL ?
How do I see the information passed from my browser to a site? I have
httpLiveHeaders for mozilla and that does not provide all the info that I
need. Or I am not getting something right.
I have
Quoting Linda H [EMAIL PROTECTED]:
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info.
In addition to the other excellent suggestions so far, make sure
(looking at the phpinfo page, under Configuration File Path) that
your
Ok found the solution, seems like one page is on http://server.org.uk and the
other on www.server.org.uk even though its the same server it generates a
different session id!
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/E$ d-(---)+ s:(+): a--(-)?
Andy Pieters wrote:
Ok found the solution, seems like one page is on http://server.org.uk and the
other on www.server.org.uk even though its the same server it generates a
different session id!
set the domain of the cookie to 'server.org.uk', it's the fifth
parameter of setcookie()
--
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others were installed (which is what the book I am using
seemed to
Andy Pieters wrote:
Ok found the solution, seems like one page is on http://server.org.uk and the
other on www.server.org.uk even though its the same server it generates a
different session id!
That's a cookie thing, if your transmitting the session ids through
cookies, I'm going to assume
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others
Hi!
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like overkill.
Therefore, is it possible to use PHP from the command line, but still
enable some
Hi,
could someone please check where the sytax error is in these statements.
$sqlstmt= EXEC sp_addlogin .$adduser. , .$addpass;
$sqlstmt1= EXEC sp_adduser @loginame= .$adduser. , @name_in_db= .$adduser;
$sqlstmt2= GRANT CREATE TABLE TO .$adduser;
$sql=mssql_query($sqlstmt);
Hi all.
I have the week number (for example, this is the 29th week of the
year and it begins on 7/17/05). Does anyone know how to obtain the
first (and maybe the last) date of the week if you only know the week
number of the year? Would it be better for me to obtain this in PHP
or MySQL?
do you have this in your php.ini extensions?
extension=php_mysql.dll
yes
Make sure you extension path is referencing its location also so it can
find it...
for example:
extension_dir = c:/php/ext/
I changed this and now I can connect to MySQL! Haven't runa query yet, but
I think I'm
babu wrote:
Hi,
could someone please check where the sytax error is in these statements.
$sqlstmt= EXEC sp_addlogin .$adduser. , .$addpass;
$sqlstmt1= EXEC sp_adduser @loginame= .$adduser. , @name_in_db= .$adduser;
$sqlstmt2= GRANT CREATE TABLE TO .$adduser;
$sql=mssql_query($sqlstmt);
is there some way to get a .do file from a server is it readable? I think
that may be my whole problem with my curl sequence. I need to see what the
routing file is doing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* George B [EMAIL PROTECTED] :
Jim Moseby wrote:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
hi,
Usually the .do files are servlets and the .do stuff you enter is rewritten
by the server internally to point to the actual servlet.
With a http request you will get whatever the servlet is spitting out the
wire.
Catalin
Jon wrote:
is there some way to get a .do file from a
Hi!,
I need to get some information from a webpage, that is served as UTF-8.
I need that information because the page contains different language
characters. The problem is that no matter if I use fget or the CURL
libraries, i got the information in ISO-8859-1.
How can i overcome this? Take
On 7/12/05, Rasmus Lerdorf [EMAIL PROTECTED] wrote:
Probably just means the lists aren't very technical.
That comment amused me greatly, because the only other mailinglist I'm
on is the Ruby on Rails list, and that one does reply-to munging.
What that says about the respective userbases of PHP
* George B [EMAIL PROTECTED]:
Lets say I have a form. And when user types in the form and clicks go,
it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
The PHP manual is your friend, if you know what to look for.
Thanks JM!
It was another one of my usual mistakes :P
Forgot the semicolon. I don't underestand why you have to put
in so many
semicolons... Hmm.. Is it a thing from C or something?
When I see that T_STRING error, missing semicolon is the first thing I look
for. I don't know the history
Hi,
Why are you displeased with apache ? After all, the 60% share market
of apache must mean something :)
Catalin
Fredrik Tolf wrote:
Hi!
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
Hi there,
I was wondering if anybody has attempted to track a mobile phone through a
country. I know that this is usually more a case for the FBI . a friend of
mine is going on a 4 month bike tour and I would like to 'track' him for
locations. I thought of an sms receiving system, but if could
John Nichel wrote:
George B wrote:
snip non-researched basic stuff
http://us2.php.net/manual/en/index.php
:-) anyone care for a php mysql extension:
mysql_do_xml_http_request_bound_richdatagrid([string] query);
george if you want to keep asking questions on NRBS**
then you'll need to
I think that would require tapping the cellphone network, which I doubt
they would let you do since it be a major violation of privacy, because
you could track the general location of anyone on their network.
Thomas wrote:
Hi there,
I was wondering if anybody has attempted to track a
I've been attempting to write an application with a bit more ordered
directory structure than I normally use, and I ran into the rather
annoying problem with include() where relative paths are only based off
of the current working directory, and not that of the included script.
This makes it
Catalin Trifu wrote:
Hi,
Why are you displeased with apache ? After all, the 60% share market
of apache must mean something :)
Catalin
Fredrik Tolf wrote:
Hi!
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server
On Mon, 2005-07-18 at 15:57 -0400, Evert | Rooftop wrote:
Fredrik Tolf wrote:
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like overkill.
Therefore,
Ethilien wrote:
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . / . ../include/global.php);
Ethilien wrote:
I've been attempting to write an application with a bit more ordered
directory structure than I normally use,
Marcelo Volmaro wrote:
Hi!,
I need to get some information from a webpage, that is served as UTF-8.
I need that information because the page contains different language
characters. The problem is that no matter if I use fget or the CURL
libraries, i got the information in ISO-8859-1.
How can
Ethilien wrote:
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . / . ../include/global.php);
alot of people do something _like_:
define('GLOBAL_BASE_DIR', dirname(__FILE__));
somewhere near the beginning of their
On Mon, 2005-07-18 at 20:44 +0100, Mikey wrote:
Catalin Trifu wrote:
Fredrik Tolf wrote:
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like overkill.
But my problem is that the information i get from the fget or curl is
ALREADY converted!!!
And by what i see, the function overloading don´t work on fget.
On Mon, 18 Jul 2005 18:56:36 -0300, Jochem Maas [EMAIL PROTECTED]
wrote:
Marcelo Volmaro wrote:
Hi!,
I need to get some information
On Tue, Jul 12, 2005 at 09:23:59PM +0300 or thereabouts, Ahmed Saad wrote:
Hi all,
I've been around this list for a month or something but i just
discovered today that all my replies weren't sent to the list but
instead to the individual who sent the message. I haven't administered
any list
Hi
I did hear of a gps feature that's been tested here. Basically you subscribe
to a service by your provider and then you choose where to forward the data.
I've seen it in use in some company that tracks it's least selling
representatives (with their approval, off course).
With kind regards
Not really a PHP question, but you could look to see if your friend has a GPS
enabled phone and phone service and if there's an API for pulling the location
from the phone co's systems. Then you could see if there's a PHP solution for
interfacing with that API.
Some cell phone companies let
Ethilien wrote:
I think that would require tapping the cellphone network, which I doubt
they would let you do since it be a major violation of privacy, because
you could track the general location of anyone on their network.
Thomas wrote:
Hi there,
I was wondering if anybody has
Thomas wrote:
Hi there,
I was wondering if anybody has attempted to track a mobile phone through a
country. I know that this is usually more a case for the FBI . a friend of
mine is going on a 4 month bike tour and I would like to 'track' him for
locations. I thought of an sms receiving
Actually, I think I might have found a solution, although its not a very
good one.
include realpath(dirname(__FILE__) . / . ../include/global.php);
Ethilien wrote:
I've been attempting to write an application with a bit more ordered
directory structure than I normally use, and I ran into the
The phone would have to have GPS capabilities..
Ethilien wrote:
I think that would require tapping the cellphone network, which I
doubt they would let you do since it be a major violation of privacy,
because you could track the general location of anyone on their network.
Thomas wrote:
Hi
Yea that would be very very hard.. besides if your friend would do the
trip in the usa, I doubt he can access the network at all ;)
In any case, the most realistic choice would be to buy a GPS-enabled
phone and write a nice Java app that does the job for you (maybe even
flash-lite can do it).
Fredrik Tolf wrote:
Hi!
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like overkill.
Therefore, is it possible to use PHP from the command line, but
Matthew Weier O'Phinney wrote:
* Jasper Bryant-Greene [EMAIL PROTECTED] :
George B wrote:
is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
Sure -- if you're using a
George B wrote:
George B wrote:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
this code works though
the semicolon
just write an PHP-Server
I heard that Microsoft.com http://Microsoft.com stores every images in
database.
Maybe the cost is the most important thing.
2005/7/19, George B [EMAIL PROTECTED]:
Matthew Weier O'Phinney wrote:
* Jasper Bryant-Greene [EMAIL PROTECTED] :
George B wrote:
is it possible to put in a jpg
Lets say I have a form. And when user types in the form and clicks go,
it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I've always liked storing all data in the DB to keep things simple, so
I stored images in the DB and then cache them on the filesystem when
they're first requested. Granted, it's pretty inefficient with disk
space, but if you have a good ORM db lib and caching lib, it's
extremely convenient.
--
[snip]
Lets say I have a form. And when user types in the form and clicks go,
it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
[/snip]
http://www.php.net/strtoupper
--
PHP General Mailing List (http://www.php.net/)
To
$uppercasestring=strtoupper($originalstring);
- Original Message -
From: George B [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, July 18, 2005 6:59 PM
Subject: [PHP] change letter to all caps
Lets say I have a form. And when user types in the form and clicks go,
it
George B wrote:
Lets say I have a form. And when user types in the form and clicks go,
it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
The manual is your friend.
http://us2.php.net/manual/en/function.strtoupper.php
Hi
On 18 Jul 2005, at 18:59, George B wrote:
Lets say I have a form. And when user types in the form and clicks
go, it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
Thanks!
have a look here:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
To
George B wrote:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
Are either one of those lines, line 12?
--
John C.
George B wrote:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
this code works though
$db = mysql_connect(localhost,
Jim Moseby wrote:
I am trying to connect to a datbase:
mysql_select_db ('database')
or die (couldnt connect to databse)
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
To
Hey guys how would i show a filed from a MySQL database in a php file?
Isnt it this?
SELECT * FROM `user`
But that dosent work because it comes out blank :-\
And I already am connected to the database
Code:
mysql_connect ('localhost','myaccount','mypass')
or die (could not connect to
George B wrote:
snip non-researched basic stuff
http://us2.php.net/manual/en/index.php
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
...a lot of stuff from George
[/snip]
George,
We appreciate that you are asking a lot of questions and hope that you
become a proficient user of PHP. We do recommend that you spend some
time with a tutorial or two (Google is your friend) and a little time
with the manual. Many of your
Thats just executing the query.. you need to use the result set, and
iterate over it...
$rs = mysql_query($query);
while($row=mysql_fetch_array($rs)) {
echo $row[0]; ...
}
stuff like that.
Hey guys how would i show a filed from a MySQL database in a php file?
Isnt it this?
SELECT * FROM
Fredrik Tolf wrote:
On Mon, 2005-07-18 at 15:57 -0400, Evert | Rooftop wrote:
Fredrik Tolf wrote:
I've begun to be more and more displeased with Apache lately, so I've
been thinking of writing my own HTTP server instead. I still want PHP
support, but writing a new SAPI for PHP seems like
Jochem Maas wrote:
John Nichel wrote:
George B wrote:
snip non-researched basic stuff
http://us2.php.net/manual/en/index.php
:-) anyone care for a php mysql extension:
mysql_do_xml_http_request_bound_richdatagrid([string] query);
george if you want to keep asking questions on NRBS**
then
I have never done this but - have you tried using curl_setopt to have
is sent as a binary file and try to go from there?
Marcelo Volmaro wrote:
But my problem is that the information i get from the fget or curl is
ALREADY converted!!!
And by what i see, the function overloading don´t work
Is there a way to get the name of a variable as a string? For example...
Function myname ($foo)
{
echo the variable name passed in is .realname($foo);
}
myname($bar);
I want to see printed out:
the variable name passed in is bar
^^^
Maybe something like:
Function myname ($foo)
{
$return_value=the variable name passed in is .$foo;
return $return_value;
}
echo myname($bar);
Just a guess.
On 7/19/2005 3:27:57 AM, Daevid Vincent ([EMAIL PROTECTED]) wrote:
Is there a way to get the name of a variable as a string? For
That won't work. Then I will get what the VALUE of $bar is set to. I want
the actual text bar. Basically everything after the $ -- ie. The NAME of
the VARIABLE, not it's contents.
The closest I've come so far is to do this.
Function myname($foo)
{
echo variable named $foo has the
hi Daevid
FWIW, I was trying to do the exact same thing a while back, and came to
the conclusion that it wasn't possible.
Rob
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 19 July 2005 11:28 AM
To: php-general@lists.php.net
Subject: [PHP] Is
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I didnt totally understand you q in the beginning (and still dont fully),
but
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
the man has spoken :-D
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
Wouldn't the name of the variable show up in a var_dump()? It would be
messy, but if it's there...
--
PHP General Mailing List
Edward Vermillion wrote:
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
Wouldn't the name of the variable show up in a var_dump()? It would be
messy, but if it's there...
Actually I
function named_print($var_name) {
return echo 'the variable named $var_name is set to ' . \$var_name;
}
eval(named_print($foo));
;-)
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
92 matches
Mail list logo