Hi,
(Sorry for the cross post, I posted it in the wrong place the first time)
I've got MSSQL 2000 running on Win2000 Svr. Linux 2.2.16 running Apache
1.3.22, freetds 0.53, and PHP 4.0.6.
I can connect and run queries no problem, but when an error is raised (with
raiserror) on the SQL box, mss
Is it somehow possible to save a GD image within a database (like the return
value from imagecreate)?
I would like to manipulate some images, but I would rather load them from a
DB than a file...
Please advise
TIA,
Stephano
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Hello Rasmus,
9 Dec 2001, 1:55:56, you've written:
RL> phpinfo() would tell you. Look for the block titled "GD". If you don't
RL> see one, you don't have GD support in your PHP build.
And what if it is written there that i've got "GD version 1.6.2 or
higher"?
php-general Digest 9 Dec 2001 12:05:39 - Issue 1042
Topics (messages 77132 through 77147):
Re: How do I check GD version?
77132 by: Rasmus Lerdorf
77147 by: faeton
How to compute time to load page...
77133 by: Torkil Johnsen
77134 by: Jack Dempsey
77
Hi Matt,
first it might be easier to just use split here --
$fields = split("\t",$line);
I say might because I suspect that the records you have that are
converting incorrectly perhaps don't follow the tab convention? ... said
another way, I've never seen preg break because the file got ov
Hi,
I created a poll program for my homepage. When i vote some field in my database
gets incremented, but after successfully voting when i clicked on reload/refresh of my
browser the said field is also incremented. How can I fix/avoid this problem?
Hoping for a reply.
Thanks
Ryan
__
Have the page expired at once!
Alex
- Original Message -
From: "ryan adorable" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 10:07 AM
Subject: [PHP] Help!
> Hi,
>
>I created a poll program for my homepage. When i vote some field in my
database gets inc
Pause for a moment and think about it. You're obviously doing a good job in
maintaining state, but after your update to the database the var which
transfers the data isn't being cleared.
Regards - Miles Thompson
At 07:07 AM 12/9/2001 -0800, ryan adorable wrote:
>Hi,
>
>I created a poll pr
how to do that?
ryan
--- "Alex Shi" <[EMAIL PROTECTED]> wrote:
>Have the page expired at once!
>
>Alex
>
>- Original Message -
>From: "ryan adorable" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, December 09, 2001 10:07 AM
>Subject: [PHP] Help!
>
>
>> Hi,
>>
>>I created
yup, that is my problem, i can't clear the data on a variable.
The data is from a tag (radio button). I know you know what im talking about
here :)
Ryan
--- Miles Thompson <[EMAIL PROTECTED]> wrote:
>
>Pause for a moment and think about it. You're obviously doing a good job in
>maintaining
"Alex Shi" <[EMAIL PROTECTED]> wrote in message
006b01c18063$336e9f90$0105050a@pony">news:006b01c18063$336e9f90$0105050a@pony...
> Basically I agree with you. But the second time to get time must be done
> after the page is rendered on local browser. So I suggest to use
Javascript
> for the secon
hi folks,
being new to php, I just subscribed to this list - so I find someone to answer my dumb
questions :-).
i´m working thru some tutorials on mysql and php, just making the first steps. it´s a
great experience so far !
cu
oliver
--
PHP General Mailing List (http://www.php.
Hi,
I'm just trying to get my head around references and the uses etc... I
have reviewed the manual section on this a few times but I'm still a bit
fuzzy on it.
First of all, here's some code I'm using to pass a reference to an
object (which has global scope) to the constructor of a class "Site"
Glad to hear it :-)
- Original Message -
From: "Oliver Keller" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 12:16 PM
Subject: introduction
> hi folks,
>
>
>
> being new to php, I just subscribed to this list - so I find someone to
a
Trying to use the ftp function in PHP3. I've been able to use it to ftp
an existing file, but what I would like to do is create a file on the
fly, and then ftp that file to a remote location.
for example, if I have some text defined in a variable like so:
$mytext = "here is some text"
I would
How about you just create the file locally (with some random name) upload it
(with correct name) then delete the local copy...
Andrew
- Original Message -
From: "Kansas Territory" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 5:32 PM
Subject: [PHP] help with
Actually, $this->db will be a copy of $dbObj.
Here is what you have:
db = $dbObj;
}
?>
What this means is that $dbObj is a reference to $db. However,
$this->db is a copy. If you want $this->db to be a reference of $db,
you have to create a reference to $dbObj.
function Site(&$dbObj)
{
$thi
What you need to do is make sure the same person doesn't vote twice
either via cookie, session, or comparing IP address. These are all
simple solutions. For example, if the IP address is the same as stored
in the DB, then the person as tried to vote twice, and you can prevent
that.
Jason Lotito
Hi
I have a slight design problem. I have some form values (user details) which I want to
pass to a web page which is two pages away. I.e. I have the variables as hidden values
in a form (username, address, password etc) and the user submits these and cc details.
If the credit card processing
This is precisely the type of situation session variables are designed for.
I'm not sure why you would think that using sessions is overkill. You can
accomplish your task with sessions in less lines of code than it would take
to implement another solution and the sessions solution is more elegant
Hello, I am trying to develop some WML apps using PHP.
To run WML apps into my local Apache (win98) server, I added
AddType application/x-httpd-php .wml
into httpd.conf. This works ok when calling directly from netscape
http://localhost/mywml.wml ,
treating script like a true PHP program.
BUT..
What do you do with the var when you finish updating the database? Do you
unset it?
Are you passing the value of your "submit" button as a default?
Use a few echo statements and find out what's going on.
Miles
At 07:17 AM 12/9/2001 -0800, ryan adorable wrote:
>yup, that is my problem, i can't
i think that php sends out headers showing that the page is html.not
sure bout this, but you might have to send a diff header..
-Original Message-
From: M [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 09, 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Running WML (WAP servi
Hi
I'm trying to pre-fill a form ( the data is passed via sessions or from
another script).
i have some check boxes on the form that i would like checked if the
variable is present.
any ideas
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
You could simply execute a second query where score > $score and return the
number of rows in the result + 1.
For instance:
$return = mysql_query("select ID, Name, Score, COUNT(Name) as total from
members where ID = '$ID'");
$row = mysql_fetch_assoc($return);
extract ($row);
$return = mysql_quer
Hi
> i think that php sends out headers showing that the page is html.not
> sure bout this, but you might have to send a diff header..
This is true - you should send a content type of either text/x-wap.wml or
text/vnd.wap.wml (for WML 1.0 and 1.1 respectively)...
header('Content-Type:
Hi
I'm working on a large portal-like php/html site with some large graphics.
The original design is for 1024x768 and up, but i also want it to be well
viewable under 800x600 so parts of the design have to be resized for that.
BUT, i can't seem to get that kind of information from within PHP. I
Try
\n";
?>
Cheers,
Gianluca
JD> i think that php sends out headers showing that the page is html.not
JD> sure bout this, but you might have to send a diff header..
JD> -Original Message-
JD> From: M [mailto:[EMAIL PROTECTED]]
JD> Sent: Sunday, December 09, 2001 5
> Hi
>
> I'm trying to pre-fill a form ( the data is passed via sessions or from
> another script).
>
> i have some check boxes on the form that i would like checked if the
> variable is present.
>
> any ideas
>
Hi Paul:
I think that you can use JavaScript or VBScript to check the varia
Hi folks,
I've seen messages on here in the past about "Store Locator" tools,
where someone enters a postcode and the nearest store to that postcode
is found.
I'm wondering if anyone has any information about how to get the
proximity data for postcodes in Australia? Or is it safe to assume
that
I wouldn't trust a 10-above or 10-below rule, personally, unless you
weren't too concerned about the accuracy of your information.
Why don't you give Australia Post a call?
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, 10 December 2001 10:22 AM
To: '[EMA
Hi,
i have a MySql table with five columns that are filled with different
numerical values. I need some pointers to where i can learn how to build
statistics out of this data (ie the average value of a column, how many
instances there is of a certain value etc).
Regards
# Daniel Alsén| www.m
php-general Digest 10 Dec 2001 02:29:40 - Issue 1043
Topics (messages 77148 through 77175):
Re: PREG
77148 by: Hank Marquardt
Help!
77149 by: ryan adorable
77150 by: Alex Shi
77151 by: Miles Thompson
77152 by: ryan adorable
77153 by: ryan ado
try looking at http://informit.com/
has heaps of good books online there - you might be able to find a good book
on sql.
-Original Message-
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 1:27 PM
To: PHP
Subject: [PHP] Doing statistics with MySql data?
Hi,
My webmail app, Frederick, is now released. Small (though soon to grow in
features) and fast,
it is available from here:
http://www.phpguru.org/frederick/
- Extremely cusomisable (entirely template based)
- One installation can be used with various
urls, each having it's own template sets
Version 2.6 of my Guest book is released!
Description:
A PHP (version 4.x) guestbook program that does not require an rdbms. Can be
Public or Private through HTTP Authentication. Automated install script,
fully customizable, clean, and fast. Separate multiple logging capabilty for
tracking anyth
There are built in functions in mysql for just this sort of thing. There
are AVG() and COUNT() functions as well as many more. Read up on them here:
http://www.mysql.com/doc/F/u/Functions.html
Fred
Daniel alsén <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can you hide it in a hidden form element ? or pass it as a variable in the
URL like http://myurl?screen_size= ?
-Original Message-
From: Roel Derckx [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 09, 2001 5:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how do i get the browser's screen re
Hey all,
Just a quick question...how would you pass a PHP variable to a JavaScript
function?
-Jordan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMA
Assuming your page is called something like myPageWithScripts.php, do
something like this:
< html >
< head >
< script language="javascript" type="text/javascript" >
< !-- //Hide
function myFunction {
alert("My PHP variable value is ");
}
// -->
< /head >
...and so on.
Jordan wrote:
> Hey
40 matches
Mail list logo