I am confident nearly all browsers support CSS. Only the oldest still
lingering out there will not. But keep in mind your site is still readable
if someone is still using an outdated browser.
Advantages - many But the most important is consistency and
centralization. You can change the loo
Thanks all. I have now resolved. For future reference, the problem was as
you said, I didn't have php configured for mysql support. I traced this back
to the installation of the operating system, Red Hat 7.2. Through the
graphical installation, all php modules apart from mysql support and odbc
sup
You could also visit http://devshed.com for some of their tutorials
regarding PHP specially PHP101 nad alot of sample codes and projects.
Mike
- Original Message -
From: "Wee Keat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 12:57 PM
Hi to all!!
I have a problem and i think maby somebody can help me.
I have an MS Sql server on a Windows 2000.
I have a PHP web in a linux debian. Im trying to access to the MS SQL server through
unixodbc.
Unixodbc works well becouse y test it under linux , with isql and sqsh, and i know
that
Hi All !
First let me thank Jonas Pasche(qmail),David Phillips(qmail),Richard
Lynch(php) and rest of the community for helping me to solve the problem..
Finally after a bit of trial and error it worked..Here I am pointing out
where I did the mistakes..
The first mistake I did was..what Jonas w
Hallo DoL,
it worked when i didn't use urldecode(), just stripslashes():
page-1
$s_array1 = urlencode(serialize($array1));
header("Location: page-2?h_array1=$s_array1");
page-2
$array1 = unserialize(stripslashes($_GET["h_array1"]));
The other way that worked was passing arrays in $_SESSIO
Hello all,
Just a question about PHP mail comand.
Usually I have something like this:
if (mail($to,$Subject,$Body,$MailHeaders)) {
return 1;
}
else {
return 0;
}
Is there any way to use a BCC instead of to?
I would like that the message sent did not have the address of the person it i
The obvius and easy think is alwaiss the hard to find
My problem vas the > of the tag, that I forgot, dummy issue but I made
The right adn working one now are
http://myadress/php/mypage.php?modo=123&color=red&size=3
and to get
echo $_GET['modo']."";
echo $_GET['color']."";
echo $_GET['size']
Besides my newbye status, I guess you are not update.
the $_GET is a must have when you use set globals to off, ( this is default
after 4.2.1), and must be maintained for security reasons.
Since I'm newbye I play with new and fresh version, and I can get details
that older "phpers" does not tak
Yes, the header can contain this:
$mailheader="Bcc: [EMAIL PROTECTED]\r\nTo: [EMAIL PROTECTED]";
Elias,
"Carlos Fernando Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in
message 012301c23874$982a5c70$93505ad1@Nando0">news:012301c23874$982a5c70$93505ad1@Nando0...
Hello all,
Just a question abou
Hello when I extended a class and overwrite a function, can i after
overwriting that function call it so it does what it used to do?
for example in Delphi I say:
procedure TMyExtendedClass.Proc1;
begin
// do new stuff here
inherited; // calls the TMyClass.Proc1;
end;
Elias
--
PHP General M
A'la ASP WebServices perhaps?
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> >I'd like to know if it's possible to use PHP to develop and implement
> >Web Services. If so, please point me to sites, articles, or tutorials
> >that discuss this top
>From: "sally tirchett" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Date: Tue, 30 Jul 2002 21:07:05 +
>
>
>Hello,
>
>I would like some help with uploading a text file from c:\temp\trial.txt
>(pc with windows 2000 installed) and import it to a pc (red hat linux 6
>in
There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP
by Dietrich Ayala or to use
PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and
Shane Caraveo(testing) (available at sourceforge.net).
Regards,
Andrey
> "Bob Lockie" <[EMAIL PROTECTED]> wrote i
Hi,
Is it possible to configure PHP for a BEA Weblogic Webserver? If so anyone
who did it? and how?
Tx
MH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday 31 July 2002 18:36, lallous wrote:
> Hello when I extended a class and overwrite a function, can i after
> overwriting that function call it so it does what it used to do?
>
> for example in Delphi I say:
>
> procedure TMyExtendedClass.Proc1;
> begin
> // do new stuff here
> inherited
Dear all
I had setup a web server in windows NT 4.0 (IIS Server), there is some
question i want to ask bask on the file management!
1. Is there any function in php that can create a folder/Directory in a
specific path?
2. Is there any function in php that can move particular files to other
locat
I'd suggest pursuing their customer support... It's not a very widely used
websrever. It's also primarily a webserver optimized for serving JSP-based
content/services - if I remember correctly...
"Mindhunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
http://www.php.net/manual/en/function.mkdir.php
and the other 'filesystem' commands all work in windows...
"Jack" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all
> I had setup a web server in windows NT 4.0 (IIS Server), there is some
> question i wan
Dear all
Currently i'm using PHP 4.04 in my Web Server, i heard that there is a bit
different on the newer version of php! Like : something different in
php.ini!
I know that the newest version of php is 4.2.2, could someone pls tell me if
there is different between PHP 4.0.4 with 4.2.2?
I heard th
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Dear all
> I had setup a web server in windows NT 4.0 (IIS Server), there is some
> question i want to ask bask on the file management!
>
> 1. Is there any function in php that can create a folder/Directory in a
> specific path?
>
> 2.
on 31/07/02 8:39 PM, Jack ([EMAIL PROTECTED]) wrote:
> Dear all
> I had setup a web server in windows NT 4.0 (IIS Server), there is some
> question i want to ask bask on the file management!
>
> 1. Is there any function in php that can create a folder/Directory in a
> specific path?
*sigh* Did y
I have a problem with DOMXML...
I installed it and it is showing up in a phpinfo() script...
However when I try a simple example it gives me an error such as:
Warning: failed to load external entity "employees.xml" in
C:\Inetpub\wwweloanshop\test\xml.php on line 36
Any hints?
[ Brian M McGarv
Hello,
Before the time, many users recommend me to use php 4.2.2 and apache 1.3.26
working with MySQL / IMP etc...
So, I think I can give you some idea / suggestion, I'm installing apache 1.3.26
and php 4.2.2 now !
Edward.
Jack wrote:
> Dear all
> Currently i'm using PHP 4.04 in my Web Server,
the line that gives the error...
Warning: failed to load external entity "employees.xml" in
C:\Inetpub\wwweloanshop\test\xml.php on line 36
What employees?
is...
$doc = xmldocfile("employees.xml") or die("What employees?");
"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news
hi how is it possible to strip quotes from an image tag ?
i need
to look like
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> hi how is it possible to strip quotes from an image tag ?
> i need
>
>
> to look like
>
>
>
>
$string_no_quotes = str_replace('"', '',$yourstring);
if the tag can be placed in a variable/
--
David Robley
Temporary Kiwi!
Quod su
]*>)/i', '\1\2\3', '');
?>
Elias,
"Electroteque" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi how is it possible to strip quotes from an image tag ?
> i need
>
>
> to look like
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
that won't really work if he used the ALT attribute too:
"David Robley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] says...
> > hi how is it possible to strip quotes from an image tag ?
> > i need
> >
>
On Wednesday 31 July 2002 20:34, lallous wrote:
> that won't really work if he used the ALT attribute too:
>
But stripping the "'s makes it invalid HTML anyway. The OP got what (s/he)
asked for.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrato
hmm!
1)Can you show the code @ line 36 if possible
2)try to escape the "\" (replace every \ with \\)
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a problem with DOMXML...
>
> I installed it and it is showing up in a phpinfo() script
Hello,
i have
/include/dotest.php:
and test.php:
Us there a shorter way to write out that. I mean something like
include::dotest;
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Are you actually telling me how to SAVE an excel file as text (CSV) format
THROUGH excel ?
H
Thanks (I guess...) But I learned how to do that, oh I dunno, about 20
years ago. My question was how to do it using PHP and COM.
[/snip]
Actually this may be a hint ... fire up a macro
sick dude exactly what i needed , i have been doing php for a good while now
but i have never hot my head around pregs :|
"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> echo preg_replace('/(]*>)/i', '\1\2\3', ' height=44 alt=hspace=0 src="blah.jpg" w
if dotest.php has got the code, do this:
echo eval(join('', file('dotest.php'));
"Bas Jobsen" <[EMAIL PROTECTED]> wrote in message
02073113582400.32156@bjobsen">news:02073113582400.32156@bjobsen...
> Hello,
>
> i have
> /include/dotest.php:
> function dotest() {echo 'test';}
> ?>
>
> and test
Check that the file employees.xml exists, and try providing it with an
absolute reference rather than relative (eg:
"c:\\xmlfiles\\employees.xml"). Also check that the xml file renders ok in
Internet Explorer.
> the line that gives the error...
>
> Warning: failed to load external entity "employ
hmm sorry it didnt seem to work , it did then i gave it more than an img
tag in a string and now it doesnt
"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> echo preg_replace('/(]*>)/i', '\1\2\3', ' height=44 alt=hspace=0 src="blah.jpg" width=148 borde
Because you HAVE to use it if you have register_globals OFF. Only when
register_globals is ON can you do what you thought is more efficient, but isn't.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Lord Loh." <[EMAIL PRO
Heya,
I was just wondering If there is a more elegant way of doing this...
$string =
str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%',
$file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep
lace('%artist%',$artist,$format)
Thank You,
Mike
[EMAIL PROT
NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO
REPLACE WITH ARRAY/), STRING)
"Mike" <[EMAIL PROTECTED]> wrote in message
007201c23891$4fee8400$[EMAIL PROTECTED]">news:007201c23891$4fee8400$[EMAIL PROTECTED]...
> Heya,
> I was just wondering If there is a more elegant
Hello,
i have done as told to select multiple value from a html
form, but i cannot insert all of them into MySql
database.
it inserts Array into the field, instead of the list of
values.
What can i do?
Is there a special script to insert them?
i tried,
$str = "";
foreach ($tableau as $k=>$v)
$str
On Wednesday 31 July 2002 20:38, electroteque wrote:
> hmm sorry it didnt seem to work , it did then i gave it more than an img
> tag in a string and now it doesnt
If all you're doing is stripping the double-quotes why don't you use
str_replace() as someone suggested?
--
Jason Wong -> Gremlin
It depends on how you want them to be in the database. If you want comma-delimited,
then just use implode().
$array = array("Red", "Blue", "Green");
$comma_seperated = implode(", ", $array);
$space_seperated = implode(" ", $array);
There really is no limit to how you want to do this. Then jus
Use implode to make the array into a string and insert that. Depends on your
database structure exactly how you'd do it...
www.php.net/implode
---John Holmes...
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 8:56 AM
Subject: [PHP] s
easy done but then it would replace all matches ie "blah" in the content
would be removed :|
it worked when i did
$string = "";
but when i do
$string ="
View your account information. This option is only available to
investors who have authorised us to make this facility available.
Please c
No.
---John Holmes...
> -Original Message-
> From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 31, 2002 7:58 AM
> To: PHP General
> Subject: [PHP] shorter way to write include function?
>
> Hello,
>
> i have
> /include/dotest.php:
> function dotest() {echo 'test';}
>
I'm having difficulty getting PHP activated on Mac OS X 10.1.4. I'm
using the activation script from Marc Liyanage's page at
http://www.entropy.ch. If anyone has any advise or can help me trouble
shoot please let me know.
Thanks,
Robert Contursi
Hendriks Institute
5500 Brush Hollow Road
Westb
I get:
checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking libexpat dir for Sablotron XSL support... no
checking enable JavaScript for Sablotron... yes
checking for Sablotron libraries in the default path... found Sablotron in
/usr
checking for iconv
Hello all,
Having a real problem. Have written a very simple php email script that I'm
testing on our server. The script works fine if I set the 'to' field as any
email address but our own - i.e. [EMAIL PROTECTED] This works fine, however as
soon as I set the script to email me at the domain to w
Sweet! You rock! It worked perfectly and now I don't have this giant
line in the middle of my script :)
Thanks,
Mike
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: lallous [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 10:11 AM
To: [EMAIL PROTECTED]
Subject: [PH
Hello everyone,
I have a class in my script which has information on specific tables such
as standard queries, tablenames, Index field...
Then there is a function called StandardDropDown($ItemNum, $Name) which
gets the info from the appropriate table you want and displays a dropdown
menu base
>
>
>I know that the newest version of php is 4.2.2, could someone pls tell me if
>there is different between PHP 4.0.4 with 4.2.2?
>I heard that when you post data from a form to other page, 4.2.2 will have
>problem, unless you got to set something from php.ini? is that right?
>
>
It's that reg
On Wednesday 31 July 2002 22:40, Paul Dionne wrote:
>
> I have a class in my script which has information on specific tables such
> as standard queries, tablenames, Index field...
>
> Then there is a function called StandardDropDown($ItemNum, $Name) which
> gets the info from the appropriate table
Hi - I'm a TOTAL php NEWBIE - my 1st bit of code!!!.
Basically the input form page has 17 sets of radio buttons, each
representing one game with 2 options - team 1 and team 2. What I want to do
is a better way of checking each radio button value instead of using an if
statement for each. This cod
> "Wee" == Wee Keat <[EMAIL PROTECTED]> writes:
[. . .]
Wee> might be new, but I deeply appreciate the generosity that all
Wee> of you have given us
One way to show your appreciation sincerely would be to help others
in the same way that people have help
hi guys i now have a problem with urls i need to remove the quotes from both
href="" and src=""
so
needs to be and i cant
remove quotes from all string matches :|
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it possible from the browser requests to tell if it is jscript
enabled so that an appropriate page can be sent for en/disabled
browsers?
--
If You want to buy computer parts, see the reviews at:
http://www.cnet.com/
**OR EVEN BETTER COMPILATIONS**!!
http://sysopt.earthweb.com/userreviews/prod
Gareth-
This sounds more like a sendmail issue to me. I've run into this a few times myself.
What's happening is simple, sendmail has a file that it reads generally called
"domains" this file tells sendmail what domains it should be handling mail for. When
you submit your form the first thing
You could use a dummy page, with
location.href='newpage.php?jscript=on';
What this should do is redirect if javascript is enabled or disabled
giving you a URL variable to parse. I have not tested it but
theorectically could work.
Matt Babineau
MCWD / CCFD
---
You can't tell from the server side, but you can have a page send them
to a different page depending on whether or not Javascript is enable.
You could have a temp page with a Javascript redirect that is kicked off
with an onLoad event handler and also have a meta refresh on the same
page the ex
>
Pardon my ignorance, but wouldn't this immediately send the browser onto the
next page before it had the opportunity to get to and run this:
>
> location.href='newpage.php?jscript=on';
>
? If that's the case, wouldn't you want to delay the refresh by a few seconds to
allow the javascript
Yeah probably, you might need to add a 1 or 2 second delay to the meta
refresh...
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message-
From: Chris Boget
HI
Is there a way I can disable the client's browser back button, forcing
them to use the navigation I built into the page?
Ideally, when they try to press "BACK" on browser, a popup asking them
to use the navigation instead would win first prize.
The reason I'm asking is again to do with sessi
There is never a way to disable back, forward, home, etc buttons. They all have
shortcuts that will ALWAYS work, so there's really no point. Additionally, it's all
nice and good that your site works fine without using cookies, and don't take this
offensively, but if the client cannot use the
Well, OK, then, How do you design the app NOT to allow the form to POST
again when the user hits "BACK"
Martin Clifford wrote:
>There is never a way to disable back, forward, home, etc buttons. They all have
>shortcuts that will ALWAYS work, so there's really no point. Additionally, it's al
I think that would be easy just by UNSETTING or emptying the variables
that the form passed after they are processed. Do I make sence?
César
> -Original Message-
> From: Petre [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 31, 2002 2:43 PM
> To: Martin Clifford
> Cc: php-general
> Su
If you write your own browser, who would use it? And without a back button -
nobody
"Petre" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HI
> Is there a way I can disable the client's browser back button, forcing
> them to use the navigation I built into the
I do it this way
Page1 (fill in data)->Page2(write data, instant redirect to p1, unless dies from
php/mysql)
Then the only way to repost, is to push the forward button.
-Original Message-
From: Petre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 11:43 AM
To: Martin Cliffo
I hear you, but how do I know if the POST comes from a valid form
submit, or from a "back" ? I cannot simply unset the $_POST vars, as
that will prevent anything from being posted correctly, right?
César Aracena wrote:
>I think that would be easy just by UNSETTING or emptying the variables
>t
> Page1 (fill in data)->Page2(write data, instant redirect to p1,
> unless dies from php/mysql)
> Then the only way to repost, is to push the forward button.
Unless, of course, they hit the "Submit" button again and I think
that was the point the original poster was getting at. If the user
cann
There is also a PEAR SOAP package available:
http://pear.php.net/package-info.php?pacid=87
Some web services also use XML-RPC, a simpler predecessor to SOAP:
http://www.xmlrpc.com
There are a couple of PHP classes available for implementing XML-RPC clients
and servers:
http://phpxmlrpc.source
Well... you simple can't unless you take advantage from all the
wonderful features of PHP like it's capability to know where the request
comes from. Another interesting point would be to see if your program is
made correctly, so your script(s) will handle just the right stuff. That
is, if you poin
Here's what I think may work, not sure though..
set a session variable form_submitted=false before displaying the form for
input.
when posted, check if form_submitted==false, then only set the session
variable form_submitted to true and process it. Else show an error message
If the user hits
An Idea I have just had but not tested.
To start:-
Page1 - Input Form
Page2 - Data Handling (i.e. processing the form)
Page3 - Redirect handler.
So, User fills in form on Page1 then submits it. Page2 then processes this
data and if it handles it correctly it simply sends a redirect (something
l
On processing page (I.e the form's action page - where the stuff is entered
into the db) set another session var so that your app knows that the form
has been submitted, data entered etc. The actual form page should have some
extra logic at the top which checks for this extra session var, redirect
OK, im having some minor problems with my site.
In artist.php (http://members.lycos.co.uk/ajohnh/artist.php - Source at:
http://members.lycos.co.uk/ajohnh/source/artist.txt) If for example you view
lyrics by Weird Al Yankovic
(http://members.lycos.co.uk/ajohnh/artist.php?id=1) You'll see that the
Exactly.
The only way I've seen that this can be prevented is if the form action
is PHP_SELF, so, you call the page onto itself and use a isset($submit),
but I have reasons for not going that route, one being that I have
already have a navigation laid out, and changing that will be a nightmare!
You are correct Chris.
However if you designed your application as the generic
Master-Detail-(write changes) structure
you would merely have to use
echo ""; to take
you back to the master set, assuming js is turned on, and that is the flow of your app.
I mainly design in an intranet enviro
Not sure why this isn't working, any help is appreciated. I am trying to
read the files in a directory and place them into an array. Here is the
code:
/* Function to create array of directory contents */
function dCNTS($files) {
$dir = opendir("/path/to/directory/");
while($imgs = readdir($d
I want to create simple image...
I execute this script:
$im = imagecreate (50, 100);
$fp = fopen("test/im.jpg","w");
fwrite($fp, imagegd($im));
fclose($fp);
But there is some problems about this...
Could somebody help me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email
server is Exchange 5.5sp3
SMTP is set correctly in my php.ini file, and have restarted Apache.
However, I still cannot send out a simple text email:
The function returns true, but no delivery is made. In looking in my
Exc
Hello,
I would like to be able to do the following but have not figured out a way to handle it
$string="abcdefghijklmnopqrstuvwxz";
I would like to divde the above string into separate strings 8 charactes long , example
$string1=abcdefgh
$string2=ijklmnop
$string3=qrstuvwx
$string4=yz
if the
Outgoing email requires access to a SMTP client or relay. To prevent these
relays from being used for SPAM, most shops will restrict which IP's can use
the relay. Suggest you contact the administrators of your exchange server,
and make sure the IP is on the list of eligible IP's for using the re
Excellent ideas Warren!!
Being the IT Systems Administrator, I administrate everything from the
firewalls to the exchange/DNS servers. Everything seems to be okay there.
In doing another test, I was able to send out an email via my SMTP server to
other domains, just not to me. It apparently di
Give this a whirl:
\n";
}
?>
I haven't tested it, but in theory it should find the length of the string (26), loop
through it as long as $i is less than 26, incrementing 8 at a time. Each time it goes
through, $str_array[] is fed a new element, which is a substring of $string that
starts at
";
?>
Rick
A sense of humor can help you over look the unattractive, tolerate the
unpleasant, cope with the unexpected, and smile through the unbearable. -
Moshe Waldoks
> From: "Randy Johnson" <[EMAIL PROTECTED]>
> Date: Wed, 31 Jul 2002 15:26:15 -0400
> To: <[EMAIL PROTECTED]>
> Subject: [PHP
If all you need is some generic encryption that doesn't require mcrypt, you
might want to take a look at a crypto extension I wrote called
cryptopp-php. It does everything that the mcrypt extension does and might
be a touch easier to use as far as syntax and such goes. (Plus, it works on
Wind
Howdy List,
Well, apparently we are no longer permitted to receive "personal" emails where I am
working, so I'm afraid I'll have to part ways with the lot of you. It's unfortunate,
considering I think this one of the best places to find information about PHP (and
more!) on the internet. It s
this seems so obvious yet it is giving me problems.
I have a text area in a form that is passed to a php page to be
written to a database. first though It displays the contents of the
form in a preview page. then if everything is good the user click the
button and it write to the DB. I pass th
Actually a meta refresh isnt a good idea for this example. id personally use
a header, because then there is no entry in the back list for the processing
page, unlike if u used a meta refresh, which, if i am correct, leaves an
entry.
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
-
www.php.net/stripslashes
---John Holmes...
- Original Message -
From: "Nathan Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 3:50 PM
Subject: [PHP] text area with quotes
> this seems so obvious yet it is giving me problems.
>
> I have a text area in
On Thursday 01 August 2002 02:11, mp wrote:
> I want to create simple image...
> I execute this script:
>
> $im = imagecreate (50, 100);
> $fp = fopen("test/im.jpg","w");
> fwrite($fp, imagegd($im));
> fclose($fp);
>
> But there is some problems about this...
> Could somebody help me?
Only if
On Thursday 01 August 2002 03:00, Jas wrote:
> Not sure why this isn't working, any help is appreciated. I am trying to
> read the files in a directory and place them into an array. Here is the
> code:
>
> /* Function to create array of directory contents */
> function dCNTS($files) {
> $dir =
If it adds the slashes, before u echo it back out, try stripslashes($var)
first
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
- Original Message -
From: "Nathan Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 1:50 PM
Subject: [PHP] text ar
To write a GD image to disk as a jpeg, do this instead:
$im = imagecreate(50,100);
imagejpeg($im, "test/im.jpg");
You don't need to use file handlers. Of course, without doing anything like
adding text or lines to $im, it will just be written to disk as a blank
image. :)
-Andy
> -Origin
addslashes($st); before you put the string into the d-base
stripslashes($str); after you retrieve the string from the d-base
Otherwise MySQL is going to do its best to limit the illegal characters on
its own. :)
-Kevin
- Original Message -
From: "Nathan Kline" <[EMAIL PROTECTED]>
To: <[E
On Thursday 01 August 2002 03:17, Aaron Paxson wrote:
> I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email
> server is Exchange 5.5sp3
>
> SMTP is set correctly in my php.ini file, and have restarted Apache.
> However, I still cannot send out a simple text email:
I believe th
> hi guys i now have a problem with urls i need to remove the quotes from both
> href="" and src=""
>
> so
> needs to be and i cant
> remove quotes from all string matches :|
Someone mentioned this already, but you should really know that if you
remove quotes from your HTML attributes, your H
You might also want to add a "quality" factor to the imagejpeg() function if
the image "as is" looks a bit ratty.
$factor="100" // or another suitable number between 100 and 0
imagejpeg($im, "test/im.jpg",$factor);
hope this helps.
Hugh
- Original Message -
From: "Andrew Chase" <[EMAIL PR
PHPers,
In a genaology application, where I add individuals to
an array:
$everyone[] = new Individual($id);
I'd like to print the indiviuals' attributes. Some of these are
in array's themselves: like a list of event's in one's life.
My problem is:
when printing the Class Variables u
1 - 100 of 159 matches
Mail list logo