Check out: http://www.phorum.org/
We use phorum at: http://www.theparentreport.com/community/discussion/
Takes a bit of work to install and configure but it's worth it; Check out
the link and you'll see it can be fully integrated into your site.
Let me know if you have more questi
tems, $selected) {
> $str = "";
> while(list($value, $name) = each($items)) {
> $str .= " ">" : " selected>") . "$name\n";
> }
> return $str;
> }
For the record, you're thinking about list() backwa
> Hi,
> I have PHP 4.0 with IIS on Win2K and I think compiled
> everything right.
> I'm not sure how this works on Win32, but on unix it's fine. It's
> the mail()
> function.
> ex. mail("[EMAIL PROTECTED]","My Subject","My Test");
> and it returns: Warning: Server Error in C:\PHP/index.php o
> Honestly, I still don't get you.
>
> How can the client's Word not open if the script didn't make it open with
> COM.
?
Anyway,
The only way PHP can make Word open on a clients machine is if a word
document is sent to the client, or the clients browser believes that is
receiving a word do
Hi
I'm implementing a simple keyword search.
I want the results to be displayed with the keywords highlighted.
I am currently using this to highlight the keywords
str_replace($string,"$string",$field);
If I search for php, it will find PHP, PhP etc... but using the above only
php will will be h
eeding to go through the admin (some hosts
>can do his). But this isn't necessary.
> Can anyone help with that?
Handy PHP hosting directory:
http://hosts.php.net
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
> I'm just starting to learn PHP and it's going to
> take a while before I can create a really good
> script to password protect a section of my site,
> with a good admin control center to manage my
> user's accounts. Therefore I'm asking for
> recommendations on a good retail script that can
> ha
ectly output the stream?
Make sure to send a Content-type header before sending the image data:
Header('Content-type: image/png');
ImagePNG($im);
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Hello,
>
> I'm pretty new to PHP but all I've seen of it so far I pretty much
> love!
>
> I've built a web log but when the user enters their data and they
> use ' or " (and you know they will) php always shows it from the
> included web lo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> I have a function that works perfectly (from within a script). But
> when I make it a class (object) and call it from an external file,
> I get the following error:
>
> Warning: Missing argument 1 for display_records() in
> http://www.fr
ers can't directly
access files that aren't inside web-visible directories.
Matt
--
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: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> The only foolproof method for restricting access is to strip
> forward slashes. In the above example, I can change the file to:
> /www/sites/mysite/teaching/../../../../etc/passwd
> And it will be allowed
> If you were to do this, however:
> $al
I need to let PHP run a command as SU... is there any way it can be done? I
need it to let Courier compile it's makeuserdb and makemaildir. Any help
would be great.
--
Matt Simpson
Design Coordinator
[EMAIL PROTECTED]
Online Creator Inc
780 Midpark Dr. Suites 105 & 1
ut at 80 seconds. When you
go to the page say www.somedomain.com it just waits and does not load
anything for 80 seconds, and when it does, the images that use GetImageSize
do not load.
--
Matt Simpson
Design Coordinator
[EMAIL PROTECTED]
Online Creator Inc
780 Midpark Dr. Suites 105 &
egory&image=70";);
We did write the function like that for a reason... before PHP 4.0.x we used
GetURLImageSize because GetImageSize didn't exist yet. blah blah blah... you
know what I mean.
~matt
"Adam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]"&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> I haven't seen any other programs for Windows you can edit remote
> files instead of the usual "download, edit, upload". Let me know if
> there are other good editors with this feature.
HTMLedit (w
For my website I created an updating system in php. Where my staff and I can
write articles that then get saved to the server, linked to, etc. I allowed
html to be passed from the form because a lot of the staff likes to use html
tags in their articles. Which I know is a security issue.
I know I
hp.net/strip_tags
>
Interesting. Thanks for the link, it gave me some good stuff to think about.
strip_tags() appears to have some holes in it, but the comments offered
provided some work arounds.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
trying to close
their main window.
Matt
--
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: [EMAIL PROTECTED]
uot;localhost" as the
URL, if it brings up a page about apache, chances are you're good to go.
I recommend grabbing "Beginning PHP4" from Wrox press. They cover getting
php installed pretty well, and of course give you a nice primer on the
language itself.
Matt
--
PHP Genera
asis of the original question.
>
D'oh! Reading comprehension is usually considered to be a good thing :) My
bad.
Matt
--
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: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> I've been wrestling with mod_rewrite and trying to understand how
> to use it for my particular purpose. I've got two php URLs I'd
> like to rewrite to make them search-engine friendly. Currently
> they look like:
>
> Example 1:
> http://mysi
Did you try $name . "" . $last_name, etc.
Although the will just show up as plain text in a text email, so I'd
try the new line character "\n".
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
on 7/23/01 10:49 AM, Matt Greer at [EMAIL PROTECTED] wrote:
> on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote:
>
>> I made this code for a simple for (the end of it) but what do i change in the
>> $message variable so there is a new line between each other variable i
password still appears in the submit
> query URL. How do I stop that?
Change your method to "post" as in
Keep in mind that just sticks the variables in the header rather than on the
command line. It's not any more secure than what you had before.
Matt
--
PHP General Maili
ing like
and then image.php takes note of the website variable, does a few things
with mysql, then passes on the image that is wanted, utilizing something
from the gd library?
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
ting a lot more
bandwidth. So I'm wondering if its possible to then have image.php tell the
requesting server to grab their own copy of the image and load it up? I have
a feeling php will grab the image from the other site's server, download it
to my server and then upload it back to
. Any ideas?
Here's what I'm trying to do:
This is from chapter 16 of Beginning PHP4 from Wrox press.
Thanks,
Matt
--
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 ad
be "123+happy+trail"
Not exactly what you wanted, but you could do
implode("+", explode(" ", $home_street));
Matt
--
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: [EMAIL PROTECTED]
though. A search through
phpinfo() turns up nothing on gd, which makes me think its not installed
after all.
Is it possible to upload the extension to my directory and call it from
there?
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Ah ha, my host was wrong. gd is not installed on the server I'm on, but
they're moving me over to one that has it.
Sorry everyone, but I didn't know enough about any of this to be able to
verify what they told me.
Thanks for all the help.
Matt
--
PHP General Mailing List (htt
. HELP!!!
Wouldn't it just be:
If there's a varying number of options run a loop with arrays
$option[$i]
?>
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
their source.
HTML isn't rocket science. Any server side scripting won't be seen, and
Javascript isn't all that difficult. I can't imagine any webpage that would
truly have a reason to hide their source.
Matt
--
PHP General Mailing List (http://www.php.net/)
To uns
sh in every five
seconds.
This isn't php, and javascript can surely do this. But this will also do
it...
http://www.website.com/index.html";>
Where X is the number of seconds between refreshes, and set the url to
itself. Place this within the head.
Matt
--
PHP General Mai
seem to be working.
Here it is:
$fldemail == str_replace("'","",$fldemail);
Nice and basic :)
Can anyone please enlighten me on this?
Thanks in advance,
Matt Stone
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Darn, it still 'aint working. Ok, let's say $fldemail contains
"o\'[EMAIL PROTECTED]"
I then run these:
$fldemail == stripslashes($fldemail);
$fldemail == ereg_replace("'","",$fldemail);
And I get "o\'[EMAIL PROTECTED]" ... damn.
How would I go about creating a MS Passport type script for use on several different
sites - and only having to let the user login on one main place?
All the sites would be on the same server.
Thanks,
Matt Kaufman
$icon and then
reflecting that change in my code. But that's not ideal for what I'm doing.
Any ideas?
Here's how I'm calling the image in php:
http://www.rcnchicago.com/~tortus/goombaw.gif";);
else header("Location: http://www.rcnchicago.com/~tortus/goombab.gif";);
Thanks for your help everyone, I feel pretty embarrassed to have made a
mistake like that! :o
-Original Message-
From: Bojan Gajic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 29 July 2001 12:44 AM
To: Matt Stone
Subject: Re: [PHP] Stripping single quotes
you are not assigning
" come from?
Are you trying to show only the first 250x100 of the image? (like a crop)
Or are you just trying to resize it? (as if a thumbnail?)
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
s the case, couldn't you manually set those headers
yourself using header()? I'm curious about this myself, but so far I've not
been able to find any info on the web.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
elped to some degree.
--
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
"Ben Bleything" <[EMAIL PROTECTED]> wrote in message
01c11891$447271c0$0201a8c0@allegro">news:01c11891$447271c0$0201a8c0@allegro...
> Hey all,
>
>
g about making the browser show only
the simple URL and not let it change. That's all. =)
What a confusing thread, eh? hehe.. At least if someone wants to read
something funny and understands the American Language, this is the thread to
read...
---
-- M&D C
ill kinda buggy But it works and keeps me from
having to load a bunch of different programs all at once to write, upload,
and test my php scripts. =)
(I'm a Beta enthuisiast)
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
"Gerry Kirk&
ough I was wondering if any of you other users had any tips or ideas..
Thanks,
Matt Kaufman
[EMAIL PROTECTED]
on 7/30/01 9:00 AM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote:
> So.. for php general help thats:
> [EMAIL PROTECTED]
>
> Uhm, this was also in the welcome messages you got when you subscribed.
>
It's also in the footer of every message posted to this list :)
Ma
I would just query the database to see how many records are currently listed
(using COUNT) and use an if statement to see if it's over or under the
limit. If it's over you can just print out a message saying that no more
entries can be added.
Matt Kaufman
- Original Message
No problem, nice to help :)
- Original Message -
From: "Jeremy Morano" <[EMAIL PROTECTED]>
To: "Matt Kaufman" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 11:44 AM
Subject: RE: [PHP] Limit
> perfect, thank you
>
> -Original Message
nc or settings.inc.php)
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:06 PM
Subject: [PHP] Find and Replace
> This isn't exactly PHP I need help with, but it relates to what I learned
Oh, vi has a find and replace feature if you want to do it through the
terminal.
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:06 PM
Subject: [PHP] Find and Replace
> This isn&
I forget, actually :)
Here's a tutorial on it though -
http://www.bruce-hamilton.com/tutorials/chmod.shtml
Matt Kaufman
- Original Message -
From: "Shrout, Ryan" <[EMAIL PROTECTED]>
To: "'Matt Kaufman'" <[EMAIL PROTECTED]>
Sent: Monday, Jul
t;visits;
$dummysite->avisits = $dummysite->tvisits/$dummysite->days;
$sitearray[$dummysite->avisits] = $dummysite;
}
echo "";
$sitearray = array_reverse($sitearray);
//just trying to get some output, any output
for ($i = 1; $i != 100; $i++)
echo $sitearray[$i]->siten
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote:
> Anythig visibly wrong with this?
>
>
>
> ">
The quotes around $uid are ending value prematurely. html thinks value is
"http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Why would I pay $100 for something that I'd get sick of using anyway?
FrontPage -- Now that's worth paying for! I bought FP98 almost 4 years ago
and I still use it to this day.
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
"Ra
t/functionname will bring up the manual page for the
function. In the case of www.php.net/mail it brings up a page on all mail
related functions. Very handy IMO.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Use the mail() function.
http://www.php.net/mail
Matt Kaufman
- Original Message -
From: "Kyle Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 8:33 PM
Subject: [PHP] Another simple question (dont hurt me)
In php, oh wait well this
I'm not sure, but don't you do something with endif(); ?
Matt Kaufman
- Original Message -
From: "Mitch Vincent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 12:57 PM
Subject: [PHP] If Failing - Very strange
> Coul
I don't know if this is what you want, but take a look at
http://www.php.net/manual/en/language.variables.php - You may want to
assign them by reference?
Matt Kaufman
- Original Message -
From: "Matthew Delmarter" <[EMAIL PROTECTED]>
To: "PHP Mailing List
Nevermind, I forgot about variable variables.
Matt Kaufman
- Original Message -
From: "Matt Kaufman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 10:43 PM
Subject: Re: [PHP] dynamic variable names?
> I don't know if this is wha
understand it, it's Personal Home Page Hypertext Preprocessor.
Rather a mouthful.
Matt
--
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: [EMAIL PROTECTED]
E id=$id";
>
strings in a mysql query need to be quoted. So change it to
$sql = "UPDATE TABLE seminar SET title='$title',speaker='$speaker',...";
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
end if form is submitted
Matt Kaufman
- Original Message -
From: "Ker Ruben Ramos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:44 AM
Subject: [PHP] check if user exists
> how do i check if user exist?
> I tried...
> $
end if form is submitted
Matt Kaufman
- Original Message -
From: "Ker Ruben Ramos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:44 AM
Subject: [PHP] check if user exists
> how do i check if user exist?
> I tried...
> $
end if form is submitted
Matt Kaufman
- Original Message -
From: "Ker Ruben Ramos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:44 AM
Subject: [PHP] check if user exists
> how do i check if user exist?
> I tried...
> $
I'm not sure why it sent 3 of the same messages to the list - sorry about that.
ws98/me you can use Personal Web Server, which is free
and included on your Win98/me cd. It's no big deal once its set up, you
still see the scripts' output through your web browser. You can forget about
the web server once its in place and working.
Matt
--
PHP General Mailing List (http:/
e Mac at least, this causes the browser to interpret the tags regardless
of the header. Without , the rest of the html tags will show up as
plain text.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
h for and with your clients.
But, of course, as any business person knows-- there's ALWAYS going to be an
unhappy soul that tries to ruin it for you.
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
--
PHP General Mailing List (http://ww
ile is called foo.bar
> and it is saved in the root dir. of you'r web site.
Does it need to be in the website's root directory? If you stick it off to
the side, no one will be able to access it via http. If you need this file
for php stuff, use an include to stick it in there.
I know th
me on this. =)
---
-- M&D Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
--
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: [EMAIL PROTECTED]
nee jerk reaction, but what about fopen? Try to open the site's main
page. If you can the site is online, if not, it's not.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
I tried that but it didn't work - Although I found a different way to do it.
http://www.php.net/manual/en/function.fsockopen.php incase you're wondering.
Matt Kaufman
- Original Message -----
From: "Matt Greer" <[EMAIL PROTECTED]>
To: "Matt Kaufman" <
What I do is put a timestamp in the database, using the time(); function,
select it and format it.
Matt Kaufman
- Original Message -
From: "BRACK" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 1:40 PM
Subject: [PHP] last modification
> I just got the book entitled "PHP and MySQL web development" by Luke
> Wellington and Luara Thomson.
>
> I wondering how others liked the book...I haven't gotten a chance to look
> at it yet..and I'm wondering if i should :-)
Now that you've got it you might as well read it. Then you could tell
> When a form is submitted using a standard SUBMIT button it is possible
> to catch this via php using if ($submit) but how do you catch this if
> you are using an image for submitting instead of the button?
>
> Any help would be greatly appreciated.
>
values of image_x and image_y will be set i
your values are 58.9, 12.6, and 28.5 then you'll lose 2
percent after all is said and done.
Matt
--
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: [EMAIL PROTECTED]
ata here
have
data here
this is especially true of images
I have no idea if that's your problem, but its worth a shot.
Matt
--
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 ad
er wouldn't send it via a cookie.
I have mine set up a little differently, something like
//index.php
Go to page two
//index2.php
---
You can also send the SID in a form via
I use the constant SID and the shorthand because that is what is
recommended and
> Oh well, who didn't know me can whether ignore this message or just say
> hi :-)
>
> Cheers Everybody!
> Maxim Maletsky
Welcome back Max
M@
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
On Sunday 30 September 2001 18:23, Armando Cerna wrote:
> I have tried system (updatemp) and exec (updatemp)
The system() function requires a string as its argument. So you need to write
it as system("updatemp"); or system("$files");
Matt
--
PHP General Mailing L
compile with DSO.
It makes life so much easier
--
Matt Williams
[EMAIL PROTECTED]
--
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: [EMAIL PROTECTED]
> I am learning php.
> I need to log all actions on my page. (like ip, browser, time, pages etc).
> question is: how can i identify a user and when he is on my page(s) to log
> all his actions.
Along with the other stuff posted, take a look at
http://phpsniff.sourceforge.net/
--
PHP General Ma
> the form is separated into 5 sections and if there are no items filled out
> in that section, then i need to hide the title too.
>
> I have been playing around with the syntax and am not having any
> success...any suggestions?
>
> here is a sample of what i am trying:
>
> 0) { ?>
>
>
> PDF Lib is very COOL , its give you ability to encrypt an existing pdf file
> its give you a powerful method to import pages from an existing pdf file and
> do some thing on it , its have only one problem very expensive price for
> full power .
> if they only split php version annd change the pr
> Needless to say, the href is quite long and includes several "'"
> characters. My conditional works great but I want to know if there is an
> easy way to escape the whole href so that the "'" characters will not be
> seen as PHP quote marks. See below...
urlencode will escape the quotes
--
PHP
> Good solution, but the problem is once the program is
> completed it goes out of my hands and most prolly the
> client wont know the exact paths, the templates folder
> would *always* be one below...but the path before the
> /templates will change.
if you dont know what directory it will be in,
> Have you tried
>
> $_SERVER['DOCUMENT_ROOT'].'/';
>
sorry, I meant
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> foreach($_POST as $key => $value){
> if($key == 'Submit'){
> exit;
> }
> else{
> $sql = "INSERT INTO registration ('$key')
> VALUES ('$value')";
> $result = mssql_query($sql);
> }
> }
not sure if wrapping columns names in single quotes is valid mssql, try:
$sql = "INSERT INTO
> I've got a field in my database that contains a single numerical character
> ("1" or "2" or "3", etc.). I need to load a different background image in
> one cell of a table depending upon what the number the field contains.
> What's the easy syntax for associating entries in the field ("1" or "2"
> > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" =>
> > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
>
> You got it...
>
> imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif",
> "3" => "bkgrnd-negative.gif");
> imgNeeded = table['field'];
> imgName = ???
>
> How do I determine with which user's permissions PHP scripts are executing?
>
> I am experimenting with suEXEC and running PHPs as CGIs; I need to know
> with which user's permissions PHP scripts are executing.
>
> I've tried using getmyuid() and get_current_user(), but these only report the
>
> I need to kill that extra Texas and Virgina.here's how I'm doing this:
>
>
> $query=mysql_query("SELECT DISTINCT state FROM members WHERE
> country='US' ORDER BY state ASC");
> while($q=mysql_fetch_array($query)) {
> $q1=mysql_fetch_array($query);
> $q2=mysql_fetch_array($query);
> $q3=mys
> --snip--
> $char_code = strpos($char_set,(substr($input,$loop,1)));
> --snip--
even a little shorter
$char_code = strpos($char_set,$input{$loop});
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
> www\pear\Archive\Tar.php on line 21
>
> Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
> E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line
> 21
>
p
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén <[EMAIL PROTECTED]> wrote:
> I am correcting myself...
>
> class foo {}
>
> $oObjectA = array();
> $oObjectB = array();
>
> for($i=0;$i<2;$i++) {
> $oObjectA[$i] = new foo();
> $oObjectB[$i] = $oObjectA[$i];
> }
>
> unset($oObjectA[1]);
> My web host recompiled php with the freeTDS library for me so that I can use
> the php mssql extensions but it still doesn't seem to work. He has told me
> that I can change the configuration file...what needs to be done?
any error messages? Can you use tsql to connect to the mssql databases?
> I was simply using a script which attempts to use the mssql_connect function
> yet I still get the error that it is undefined
>
> http://mwvre.ht-tech.net/dbtest.php
if you do a phpinfo() do you see any mssql information?
php needs to be compiled with freetds
http://us4.php.net/mssql
--
> I'm familiar with perl's LWP library. Today I searched through the PHP
> documentation, but the only thing I found that was somewhat similar to
> LWP was file() and some socket-functions to do http-GET/POST calls to a
> foreign server. Are any higher level functions available so I don't have
> to
> Problem is that when someone goes so far in the ordering process, and then
> (for whatever reason) leaves the site, and comes back hours, seconds or
> whatever later, and goes again to place an order, the details are different
> (time), and the session stays the same so the order entry is entered
> Ten separate arrays with an array at 0 that has the data I'm after.
> This is where I'm getting stuck. How can I get to the keys that are
> either 'mc' or 'truefalse' and sum them?
foreach my man
http://us2.php.net/foreach
foreach ($_SESSION['arans'] as $arans) {
$truefalse += $arans['truefals
901 - 1000 of 1653 matches
Mail list logo