php-general Digest 13 Apr 2002 23:37:19 -0000 Issue 1285
Topics (messages 92862 through 92904):
Re: Closing curly brackets?
92862 by: The_RadiX
92897 by: Jennifer Downey
Re: Php/Mysql
92863 by: David Robley
Re: Cannot enter single quotation marks in fields
92864 by: David Robley
92876 by: Jason Sheets
Re: form mail with attachment
92865 by: heinisch.creaction.de
Re: Switching from "Register_Globals=On"
92866 by: Matt
92867 by: Andre Dubuc
92871 by: Andre Dubuc
Newsgroups? Which ones
92868 by: The_RadiX
Re: quotes
92869 by: Heidi Belal
Mailings Lists?
92870 by: Randum Ian
92875 by: Cal Evans
92880 by: Justin French
92882 by: Randum Ian
WDDX
92872 by: Stuart S
Including only I want
92873 by: Alberto Wagner
92874 by: Cal Evans
92877 by: Alberto Wagner
92878 by: Rasmus Lerdorf
92879 by: Justin French
92881 by: Cal Evans
92888 by: Alberto Wagner
92892 by: Cal Evans
92896 by: Maxim Maletsky
Does $_SESSION work in any release?
92883 by: Patrick Aland
92893 by: Patrick Aland
special charicters in form output
92884 by: Paul Roberts
92885 by: Cal Evans
92889 by: Paul Roberts
Empty delimiter error - ??
92886 by: Rich Pinder
globals in functions
92887 by: Paul Roberts
92890 by: phplists.woodenpickle.com
92891 by: Cal Evans
IMAGING WITH PHP
92894 by: Vins
92895 by: Jason Wong
92898 by: Vins
92899 by: Vins
92900 by: Mark Charette
Re: include through HTTP
92901 by: Barýþ
Empty Delimiter error
92902 by: Rich Pinder
PHP MySQL Hosting services
92903 by: Jennifer Downey
first time user
92904 by: zookie
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
No it's okay .... lots' of people post general HTML questions in here..
I love studying other people's..............code style...
You really need to work on your style I think.. No offence but it's quite
hard to read.. I had to painstakingly (thank God it was fairly small script)
space it all out and set the format all nice so it made sense.
The hardest thing in the world I think is trying to read anothers code :)
anyway after this process I finally saw where the error most possibly is
occuring.. the formatting of my style made it really easy to pick out..
ok.. I have attached it anyway.. so it should retain it's formatting.. make
sure you have wordwrap off if your using some old text editor
I strongly suggest getting a good text editor if your planning on coding a
lot.. I use TextPad 4 and I love it.. It has full code colouring, PLENTY of
features for text-searches and replacement, macros etc... multiple files..
there are so many diff. text editors out there like it, but they are much
better than Notepad once you get the hang on them... trust me :) I used to
use Notepad for around 3-4 years for all my Javascript, Java, Turbopascal,
Perl... ewwww.. terrible really.. hard to read..
anyways
yes I believe you are putting that closing brace in the right spot (as in
the spot you said it "should" work but doesn't due to the parse error) but
you unfortunately that's not where the problem lies.. You somehow have put
one TOO many closing braces further up in your code around this part:
$thisoption="";
}
}
} <== one of these should be taken out
//check if form has been submitted
if($submit){
see how there's 3 closing braces?? try with two and then also put in one
where you thought you were supposed to:
echo "You have $quantity of this item and it's id is $iid<BR>";
}
// it seems like the first while statement's closing curly bracket should go
here but if I put it here I get a pars error.
} //<== This is the one you were missing..
} else {
//if the form has not been submitted run the following
?>
hope it helps.. if not please email me: [EMAIL PROTECTED] would love
to find out how it goes... what are you making anyway? some kinda virtual
creature/pet game?? sounds fun :)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Julien Bonastre [The-Spectrum.org CEO]
A.K.A. The_RadiX
[EMAIL PROTECTED]
ABN: 64 235 749 494
Mobile: 0407 122 268
QUT Student #: 04475739
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
----- Original Message -----
From: "Jennifer Downey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 1:09 PM
Subject: [PHP] Re: Closing curly brackets?
> My apologies for putting this in the wrong list.
>
> Jennifer
>
> "Jennifer Downey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi everyone,
> >
> > I have a question about this code. The way it sits now it always shows
the
> > last record in the table.
> > in other words if the user has 6 items, like:
> > item id 1
> > item id 2
> > item id 5
> > item id 6
> > item id 7
> > item id 8
> >
> > it will only show the last record item id 8.
> >
> > I believe it has something to do with the first while statement's
closing
> > curly bracker
> > But I can't seem to get it in the right place.
> >
> > Can someone spot the mistake and show me how to fix it.
> > see also comments in code.
> >
> >
> >
> > $id = $HTTP_GET_VARS["id"];
> >
> >
> > $query = "SELECT id, name, image, quantity, type FROM
> > {$config["prefix"]}_my_items WHERE uid={$session["uid"]} ORDER BY id";
> > $ret = mysql_query($query);
> > while($row = mysql_fetch_array($ret))
> > {
> > $iid = $row['id'];
> > $image = $row['image'];
> > $name = $row['name'];
> > $quantity = $row['quantity'];
> > $type = $row['type'];
> >
> >
> > if($iid == $id)
> > {
> > $display_block ="<CENTER><img src=$image border=0><br><font size =
> > 2>$name<BR>$quantity<BR>$type</font></CENTER>";
> > echo "$display_block<BR><BR>";
> > if($type == "food")
> > //if book or weapon is present then set an option and include in the
form
> > later
> > {$thisoption="<OPTION VALUE=\"feed\">Feed my pet\n</OPTION>";
> > }else{
> > //if any other type is present then set a blank
> > $thisoption="";}
> > }
> > }
> >
> >
> >
> > //check if form has been submitted
> > if($submit){
> >
> > if($sort == 'shop')
> > {
> > echo "This item has been taken care of<BR>";
> >
> > // We are selecting user id to insert into the users items.
> > $db="SELECT uid FROM {$config["prefix"]}_users WHERE
> > uid={$session["uid"]}";
> > $ret = mysql_query($db);
> > while(list($db)=mysql_fetch_row($ret))
> > { $user = $db;
> > echo "Your user ID is $user<BR>";
> > }
> >
> >
> > echo "You have $quantity of this item and it's id is $iid<BR>";
> >
> >
> > }
> > // it seems like the first while statement's closing curly bracket
should
> go
> > here but if I put it here I get a pars error.
> > }else{
> > //if the form has not been submitted run the following
> >
> >
> > ?>
> > <FORM ACTION="<?echo"$PHP_SELF";?>" METHOD="post">
> > <SELECT NAME="sort" SIZE=1 >
> > <?echo "$thisoption";?>
> > <OPTION VALUE="shop">Put in my shop</OPTION>
> > <OPTION VALUE="locker">Put into my Footlocker</OPTION>
> > <OPTION VALUE="discard">Discard this item</OPTION>
> > <OPTION VALUE="donate">Donate this item</OPTION>
> > </SELECT>
> > <INPUT TYPE="submit" VALUE="Submit" NAME="submit" >
> > </FORM>
> > <?
> > }
> > //if I put the first while statement's closing curly bracket here it
works
> > great except it prints multiple dropdown lists on the page.
> >
> > I have tried the bracket in numerous places but I can't find the right
> spot.
> >
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
> >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Well as I have seen lot's of people get yelled at if they post in the wrong
list. So rather than letting that happen and risk not getting any help I
thought I would apologize and send it to the right list.
Anyway the file you sent is it in the correct format? I have asked about a
tutorial on proper code formatting and got back a tutorial that was
extremely hard to understand. While lots of people have screamed at me for
my coding format no one has supplied an understandable answer. That is
until this morning.
>From Paul Burney :
Hi Jennifer,
The first thing you should do is properly indent your code. If you do so,
you'll be sure to find the missing bracket. Basically, for each new block,
tab out again. It really helps to use a programmer's editor with syntax
highlighting like vim or BBEdit.
Thought that was the best tutorial I could ever get. Short and sweet and oh
so easy to understand.
I am using HTML_Kit as it has the same features as all the othere editors
(color coding and such) but it also has a lot more I can get plugins for
anything I would ever need. Except a formatting tutorial ;)
I will use your code as an example of formatting.
It doesn't work as far as the script goes as it returns multiple:
Warning: Supplied argument is not a valid MySQL result resource.
So I am going to study your formatting and start at the beginning.
But thank you for your time and help! :)
You have been a great help, look at my new signature.
Thanks again
Jennifer
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Just a noob php/mysql question... (I suppose)
>
> When I try just putting php code in my insert queries, it goes like this:
>
> insert into mytable values('<?php echo "some string"; ?>')
>
> select * from mytable, returns:
> <?php echo "some string"; ?>Some string
>
> So the insert-query inserts both the code AND the string that the code
> echoes...
>
> Any help would be greatly appreciated!
You haven't given enough code to know excatly what your problem is.
However, for an educated guess, try something like:
$sql = "INSERT INTO mytable VALUES(" . $mystring . ")";
where of course $mystring is the correctly formatted set of values to
insert. Note that using this method you must have a value for each field
in the table, in the order in which the fields appear in the table.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
In article <000701c1e2a8$d1600ac0$9e75fea9@pcdenis>,
[EMAIL PROTECTED] says...
> Hello friends ,
>
> I cannot enter single quotation marks in fields. Is this a standard feature
> ? Is there a workaround?
>
> I am using mysql + php4 on unix.
>
> Thanks
> Denis
Look at addslashes/stripslashes
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
What happens when you try to enter them? What does the HTML source for your
input field look like?
Is ' being turned into \' ?
Jason
----- Original Message -----
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 11:05 PM
Subject: [PHP] Cannot enter single quotation marks in fields
> Hello friends ,
>
> I cannot enter single quotation marks in fields. Is this a standard
feature
> ? Is there a workaround?
>
> I am using mysql + php4 on unix.
>
> Thanks
> Denis
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
At 13.04.2002 03:17, you wrote:
>i have this code for my form mail:
>
><?php
>mail ([EMAIL PROTECTED], "$subject", "From: $name\r\nEmail:
>$email\r\nWebsite: $website\r\nMessage: $message", "From: $email\r\n");
>?>
>
>i need to add an attachment file with the variable $file. what do i need
>to add in the code so that i will also be able to receive the attached
>file sent from the website?
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Hi, can´t you delete this f*ing advertisment ;-)
Look at
http://www.php-resource.de/scripts.php?cat=list&caty=PHP&catTyp=Mail&CR=49&RL=20
scroll down to class mime_mail, and load it down.
All you need (and only this). There are some other classes around, but this
work fine(for me)
and is real small.
Sorry it´s a german link, but it was on page 2 of google.
HTH Oliver
--- End Message ---
--- Begin Message ---
> I've read the manual on "Session handling functions", but I must have a
thick
> block on this concept . What should I do now that I want to use
> $HTTP_SESSION_VARS or $_SESSION ? How do I implement it on secondary
pages?
> Will I be facing a major re-write of all my code? [Gulp :>]
Yes.
1. You must use session_start() on every page with sessions because
session_register() won't work with the associative arrays.
2. Every reference to session_register must come out and replaced with the
code to set the session var $_SESSION[]. These two actions are probably at
different places in the script, so remove the reference to session_start,
and at:
3. Every reference in every script to a global session var will need to be
replaced with a reference to $_SESSION['rcity'];
4. You'll also need to change any references to session session_unregister
to unset($_SESSION['rcity']).
Read the notes in the manual, as you can't mix the use of $_SESSION and
session_register(), session_unset(), etc. If you use the arrays, everything
must be done with the arrays.
I'd suspect the reference to undefined function is caused by a typo and
placing a $ in front of a function name such as $session_start().
--- End Message ---
--- Begin Message ---
Thanks Matt,
Actually, at this point, I've reverted back to "register_globals=on" until I
figure out what's the best way to do this.
So far, I have no references to "session_register() on any page. In your
opinion, should I go with "$_SESSION" or use the other approach,
$HTTP_SESSION_VARS".
I gather I've some fun ahead with #3! If I use $HTTP_SESSION_VARS", will I
still need to do this?
Tia,
Andre
On Saturday 13 April 2002 07:53 am, you wrote:
> > I've read the manual on "Session handling functions", but I must have a
>
> thick
>
> > block on this concept . What should I do now that I want to use
> > $HTTP_SESSION_VARS or $_SESSION ? How do I implement it on secondary
>
> pages?
>
> > Will I be facing a major re-write of all my code? [Gulp :>]
>
> Yes.
> 1. You must use session_start() on every page with sessions because
> session_register() won't work with the associative arrays.
> 2. Every reference to session_register must come out and replaced with the
> code to set the session var $_SESSION[]. These two actions are probably at
> different places in the script, so remove the reference to session_start,
> and at:
> 3. Every reference in every script to a global session var will need to be
> replaced with a reference to $_SESSION['rcity'];
> 4. You'll also need to change any references to session session_unregister
> to unset($_SESSION['rcity']).
>
> Read the notes in the manual, as you can't mix the use of $_SESSION and
> session_register(), session_unset(), etc. If you use the arrays,
> everything must be done with the arrays.
>
> I'd suspect the reference to undefined function is caused by a typo and
> placing a $ in front of a function name such as $session_start().
--
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.
May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/
--- End Message ---
--- Begin Message ---
Thanks Matt.
Well, I guess the best time to start is now. I'll use $_SESSION -- sounds
like less work. Wish I had used them to begin with . . . but back then, I
only had two pages -- I sort of "forgot" to switch over while coding.
Thanks for your advice,
Regards,
Andre
On Saturday 13 April 2002 08:19 am, you wrote:
> > So far, I have no references to "session_register() on any page. In your
> > opinion, should I go with "$_SESSION" or use the other approach,
> > $HTTP_SESSION_VARS".
>
> So you'll need to replace the first reference to session_register() with a
> session_start();
>
> > I gather I've some fun ahead with #3! If I use $HTTP_SESSION_VARS", will
> > I still need to do this?
>
> Yes, you have a lot of work to do. You should use $_SESSION[] if you're on
> php 4.1+ because is a magic global and you won't need to global it inside
> functions. That makes the arrays much easier to use. You should use one
> or the other arrays and don't mix them. Plus $_SESSION is less typing.
> The hard part is making sure you find all of the references to the old
> global session vars. Also, don't forget that the get and post vars won't be
> globals and you have the reference them through the $_GET/$_POST arrays.
--
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.
May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/
--- End Message ---
--- Begin Message ---
just a quick question
what's the major newsgroup most people use here??
I just wanna know cos my alt.php and alt.php.sql are quite dead and empty...
thx in adv.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Julien Bonastre [The-Spectrum.org CEO]
A.K.A. The_RadiX
[EMAIL PROTECTED]
ABN: 64 235 749 494
Mobile: 0407 122 268
QUT Student #: 04475739
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
--- End Message ---
--- Begin Message ---
Thanks!
This is what i was looking for.
and i'm actually using jsps and java servlets, but i
knew i'd find the solution some where...now i've
discovered what needs to be done to solve the
problem..and i've found a funtion that will convert
the html special characters!
Thanks again!
Heidi
--- Analysis & Solutions
<[EMAIL PROTECTED]> wrote:
> > From: "Heidi Belal" <[EMAIL PROTECTED]>
> On Fri, Apr 12, 2002 at 03:15:13PM -0700, hugh
> danaher wrote:
>
> > > <input type="text" value="this is a double quote
> "
> > > like this.">
>
> > addslashes()
> > stripslashes()
>
> Nay. She's asking about HTML. Slashes aren't going
> to solve that. All
> output from databases, or wherever, needs to go
> through
> htmlspecialchars(). That'll change " to " so
> your HTML stay
> healthy.
>
> --Dan
>
> --
> PHP classes that make web design
> easier
> SQL Solution | Layout Solution | Form
> Solution
> sqlsolution.info | layoutsolution.info |
> formsolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S
> C O M P A N Y
> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335
> f: 718-854-0409
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Heidi Belal
www.code-corner.com
ICQ# 32127109
A bus stops at a bus station.
A train stops at a train station. On my desk
I have a work station...
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
Hi there,
I want to be able to send an email to '[EMAIL PROTECTED]' and have
it sent to everybody in my 'newsletter' database. Are there any resources
online that would show me how to do this? Ive searched but found nothing so
far.
Regards, Ian.
___
Ian Roke
Webmaster, DancePortal (UK) Limited
[EMAIL PROTECTED]
http://www.danceportal.co.uk
DancePortal.co.uk - Global dance music media
--- End Message ---
--- Begin Message ---
www.list.org
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Randum Ian [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 7:44 AM
To: PHP
Subject: [PHP] Mailings Lists?
Hi there,
I want to be able to send an email to '[EMAIL PROTECTED]' and have
it sent to everybody in my 'newsletter' database. Are there any resources
online that would show me how to do this? Ive searched but found nothing so
far.
Regards, Ian.
___
Ian Roke
Webmaster, DancePortal (UK) Limited
[EMAIL PROTECTED]
http://www.danceportal.co.uk
DancePortal.co.uk - Global dance music media
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Contact your ISP, because it depends on your set-up... you basicaly need to
pipe all emails to that address to the CGI version of PHP, and then you can
grab the message and forward it to the entire list.
But your ISP may also have other tools for this... if I send to all@ one of
my domains, it forwards to a pre-determined list of site contributors (a
mailing list/group)... this is a simple text file that I can edit too.
So, best advice is to start by telling your ISP what you want to achieve,
and asking what they have available, or if it's your own server, post the
set-up.
Justin French
--------------------
Creative Director
http://Indent.com.au
--------------------
on 13/04/02 10:44 PM, Randum Ian ([EMAIL PROTECTED]) wrote:
> Hi there,
>
> I want to be able to send an email to '[EMAIL PROTECTED]' and have
> it sent to everybody in my 'newsletter' database. Are there any resources
> online that would show me how to do this? Ive searched but found nothing so
> far.
>
> Regards, Ian.
>
> ___
> Ian Roke
> Webmaster, DancePortal (UK) Limited
> [EMAIL PROTECTED]
> http://www.danceportal.co.uk
> DancePortal.co.uk - Global dance music media
>
--- End Message ---
--- Begin Message ---
Can I just grab the required info from phpinfo() and post it here?
Ian.
----- Original Message -----
From: "Justin French" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 4:21 PM
Subject: Re: [PHP] Mailings Lists?
> Contact your ISP, because it depends on your set-up... you basicaly need
to
> pipe all emails to that address to the CGI version of PHP, and then you
can
> grab the message and forward it to the entire list.
>
> But your ISP may also have other tools for this... if I send to all@ one
of
> my domains, it forwards to a pre-determined list of site contributors (a
> mailing list/group)... this is a simple text file that I can edit too.
>
> So, best advice is to start by telling your ISP what you want to achieve,
> and asking what they have available, or if it's your own server, post the
> set-up.
>
>
> Justin French
>
> --------------------
> Creative Director
> http://Indent.com.au
> --------------------
>
>
>
> on 13/04/02 10:44 PM, Randum Ian ([EMAIL PROTECTED]) wrote:
>
> > Hi there,
> >
> > I want to be able to send an email to '[EMAIL PROTECTED]' and
have
> > it sent to everybody in my 'newsletter' database. Are there any
resources
> > online that would show me how to do this? Ive searched but found nothing
so
> > far.
> >
> > Regards, Ian.
> >
> > ___
> > Ian Roke
> > Webmaster, DancePortal (UK) Limited
> > [EMAIL PROTECTED]
> > http://www.danceportal.co.uk
> > DancePortal.co.uk - Global dance music media
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello List,
I want to use WDDX in PHP but I don't have access to the WDDX module.
Does anyone know if there is WDDX serializer/deserializer written in
PHP?
I've been working on one for about a day now, and it works pretty sweet.
I'm relatively new to PHP and don't trust using it in commercial
projects just yet.
So, if anyone knows of one please direct me to where I can find one.
Thanks in advance
Stuart Schoneveld
www.xs4all.nl/~stuartmx
--- End Message ---
--- Begin Message ---
Is there any way to include only the lines that I want in an other PHP file?
something like Include();
like lines number 5,6 and 7.
only this ones and not the entire script?
--- End Message ---
--- Begin Message ---
Break those lines out into another file...
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 4:33 AM
To: Php General Mailling List
Subject: [PHP] Including only I want
Is there any way to include only the lines that I want in an other PHP file?
something like Include();
like lines number 5,6 and 7.
only this ones and not the entire script?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
But its exactely what I don't want
13/04/2002 11:11:54, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>Break those lines out into another file...
>=C=
>*
>* Cal Evans
>* Journeyman Programmer
>* Techno-Mage
>* http://www.calevans.com
>*
>
>
>-----Original Message-----
>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, April 13, 2002 4:33 AM
>To: Php General Mailling List
>Subject: [PHP] Including only I want
>
>
>Is there any way to include only the lines that I want in an other PHP file?
>
>something like Include();
>
>like lines number 5,6 and 7.
>
>only this ones and not the entire script?
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
You can't do a partial include. Put some logic into your include file so
only the appropriate lines are executed. Or if you are not executing
anything but simply reading a file containing data, use fopen()/fgets()
and read past the first 5 lines.
-Rasmus
On Sat, 13 Apr 2002, Alberto Wagner wrote:
> But its exactely what I don't want
>
> 13/04/2002 11:11:54, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>
> >Break those lines out into another file...
> >=C=
> >*
> >* Cal Evans
> >* Journeyman Programmer
> >* Techno-Mage
> >* http://www.calevans.com
> >*
> >
> >
> >-----Original Message-----
> >From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, April 13, 2002 4:33 AM
> >To: Php General Mailling List
> >Subject: [PHP] Including only I want
> >
> >
> >Is there any way to include only the lines that I want in an other PHP file?
> >
> >something like Include();
> >
> >like lines number 5,6 and 7.
> >
> >only this ones and not the entire script?
> >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Best hope is to include some if statements into the included file, and
establish what you want to get out of the file, eg:
<?
$section = "a";
include('file.php');
?>
--file.php--
<?
if($section == "a")
{
// do something
}
?>
--
Or perhaps make the few lines you're after a function, then all you have to
do is include your functions library on every page it's needed, and then
call the function to "do" the selected lines/calculations, with a simple
<?
domyfunction();
?>
Regards,
Justin French
on 13/04/02 7:32 PM, Alberto Wagner ([EMAIL PROTECTED]) wrote:
> Is there any way to include only the lines that I want in an other PHP file?
>
> something like Include();
>
> like lines number 5,6 and 7.
>
> only this ones and not the entire script?
>
>
>
--- End Message ---
--- Begin Message ---
I guess it would help if you explained what you are trying to do. the
answer to your initial question is no.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 5:09 AM
To: [EMAIL PROTECTED]; Php General Mailling List
Subject: Re: RE: [PHP] Including only I want
But its exactely what I don't want
13/04/2002 11:11:54, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>Break those lines out into another file...
>=C=
>*
>* Cal Evans
>* Journeyman Programmer
>* Techno-Mage
>* http://www.calevans.com
>*
>
>
>-----Original Message-----
>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, April 13, 2002 4:33 AM
>To: Php General Mailling List
>Subject: [PHP] Including only I want
>
>
>Is there any way to include only the lines that I want in an other PHP
file?
>
>something like Include();
>
>like lines number 5,6 and 7.
>
>only this ones and not the entire script?
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I want to make a module system, that open a module and get the first $numberlines of
it that will be some configuration
variables, the $numberlines will probably be at top of file, at line 1, then I want to
script to get the variables and
execute them in the kernel.php, allowing me to make modules with configs with only one
file
13/04/2002 12:23:50, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>I guess it would help if you explained what you are trying to do. the
>answer to your initial question is no.
>
>=C=
>
>*
>* Cal Evans
>* Journeyman Programmer
>* Techno-Mage
>* http://www.calevans.com
>*
>
>
>-----Original Message-----
>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, April 13, 2002 5:09 AM
>To: [EMAIL PROTECTED]; Php General Mailling List
>Subject: Re: RE: [PHP] Including only I want
>
>
>But its exactely what I don't want
>
>13/04/2002 11:11:54, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>
>>Break those lines out into another file...
>>=C=
>>*
>>* Cal Evans
>>* Journeyman Programmer
>>* Techno-Mage
>>* http://www.calevans.com
>>*
>>
>>
>>-----Original Message-----
>>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>>Sent: Saturday, April 13, 2002 4:33 AM
>>To: Php General Mailling List
>>Subject: [PHP] Including only I want
>>
>>
>>Is there any way to include only the lines that I want in an other PHP
>file?
>>
>>something like Include();
>>
>>like lines number 5,6 and 7.
>>
>>only this ones and not the entire script?
>>
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--- End Message ---
--- Begin Message ---
Ok, if you just want to retrieve values form the file and not PHP code, try
opening it as a file instead of 'including' it. Read the lines you want, use
the values you read in to set variables or branch or whatever. Personally
(because I'm a database bigot) I'd stuff them in a table in a database but
that's up to you.
If you need to read in and execute PHP code, you MIGHT could get away with
reading them in as described above and then using eval() to do execute them
one at a time...but I'd steer clear of this.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 8:13 AM
To: [EMAIL PROTECTED]; Php General Mailling List
Subject: Re: RE: RE: [PHP] Including only I want
I want to make a module system, that open a module and get the first
$numberlines of it that will be some configuration
variables, the $numberlines will probably be at top of file, at line 1, then
I want to script to get the variables and
execute them in the kernel.php, allowing me to make modules with configs
with only one file
13/04/2002 12:23:50, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>I guess it would help if you explained what you are trying to do. the
>answer to your initial question is no.
>
>=C=
>
>*
>* Cal Evans
>* Journeyman Programmer
>* Techno-Mage
>* http://www.calevans.com
>*
>
>
>-----Original Message-----
>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, April 13, 2002 5:09 AM
>To: [EMAIL PROTECTED]; Php General Mailling List
>Subject: Re: RE: [PHP] Including only I want
>
>
>But its exactely what I don't want
>
>13/04/2002 11:11:54, "Cal Evans" <[EMAIL PROTECTED]> wrote:
>
>>Break those lines out into another file...
>>=C=
>>*
>>* Cal Evans
>>* Journeyman Programmer
>>* Techno-Mage
>>* http://www.calevans.com
>>*
>>
>>
>>-----Original Message-----
>>From: Alberto Wagner [mailto:[EMAIL PROTECTED]]
>>Sent: Saturday, April 13, 2002 4:33 AM
>>To: Php General Mailling List
>>Subject: [PHP] Including only I want
>>
>>
>>Is there any way to include only the lines that I want in an other PHP
>file?
>>
>>something like Include();
>>
>>like lines number 5,6 and 7.
>>
>>only this ones and not the entire script?
>>
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
You can call for this include inside a function and then Return inside
included file.
Not sure if it's suitable for you, inside functions there are quite a
few extra things to do like Globals etc.
Or, you could fopen(), read the needed lines, assign to a variable and
eval() it. Quite a silly way though.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
[EMAIL PROTECTED]
PHPBeginner.com (Where PHP Begins)
www.phpbeginner.com
> -----Original Message-----
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 13, 2002 5:16 PM
> To: Alberto Wagner; Php General Mailling List
> Subject: Re: [PHP] Including only I want
>
> Best hope is to include some if statements into the included file, and
> establish what you want to get out of the file, eg:
>
> <?
> $section = "a";
> include('file.php');
> ?>
>
>
> --file.php--
> <?
>
> if($section == "a")
> {
> // do something
> }
> ?>
> --
>
> Or perhaps make the few lines you're after a function, then all you
have to
> do is include your functions library on every page it's needed, and
then
> call the function to "do" the selected lines/calculations, with a
simple
>
> <?
> domyfunction();
> ?>
>
>
> Regards,
>
> Justin French
>
>
> on 13/04/02 7:32 PM, Alberto Wagner ([EMAIL PROTECTED]) wrote:
>
> > Is there any way to include only the lines that I want in an other
PHP file?
> >
> > something like Include();
> >
> > like lines number 5,6 and 7.
> >
> > only this ones and not the entire script?
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Running Apache,linux,php4.1.2 and I can't get $_SESSION to work, creates
the temp file but doesn't actually put anything in it. There appears to
be a bug report saying it is broke but does anyone know what version (if
any) $_SESSION actually works in? I'm trying 4.1.1 also and its doing the
same thing.
I am running the the code from the manual's session page:
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
print("SESSION : ".$_SESSION['count']);
and only get 0.
Thanks.
patrick
--- End Message ---
--- Begin Message ---
I am doing a session_start and am definately not using session_register
(minus <? and ?>, the exact code is in my original email).
phpinfo reports register_globals is off. Is there something else in the
php.ini file I need to turn on to 'enable' $_SESSION?
I tried using the php.ini-recommended and it didn't work either.
Any other ideas?
On Sat, Apr 13, 2002 at 11:42:49AM -0600, Jason Sheets wrote:
> $_SESSION has worked for me on Unix since it was introduced. Make sure your
> PHP is properly configured. session_start() must be called before you can
> use $_SESSION. I've heard that if you use $_SESSION you may not use
> session_register.
>
> The reports I've seen are reporting it is broken on Windows, however it
> appears to be fixed on Windows in 4.2 RC2.
>
> Jason
> ----- Original Message -----
> From: "Patrick Aland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 13, 2002 11:22 AM
> Subject: [PHP] Does $_SESSION work in any release?
>
>
> > Running Apache,linux,php4.1.2 and I can't get $_SESSION to work, creates
> > the temp file but doesn't actually put anything in it. There appears to
> > be a bug report saying it is broke but does anyone know what version (if
> > any) $_SESSION actually works in? I'm trying 4.1.1 also and its doing the
> > same thing.
> >
> > I am running the the code from the manual's session page:
> > session_start();
> > if (!isset($_SESSION['count'])) {
> > $_SESSION['count'] = 0;
> > } else {
> > $_SESSION['count']++;
> > }
> > print("SESSION : ".$_SESSION['count']);
> >
> > and only get 0.
> >
> >
> > Thanks.
> > patrick
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
when i enter sZZsçe in to a form it's changed to sŹZşçę I didn't code
it to change it to html special characters, is php doing this?
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--- End Message ---
--- Begin Message ---
If you are using METHOD=GET, your browser is probably doing it. Try
METHOD=POST
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Paul Roberts [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 12:14 PM
To: php
Subject: [PHP] special charicters in form output
when i enter sZZsçe in to a form it's changed to sŹZşçę I
didn't code it to change it to html special characters, is php doing this?
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
it's METHOD=POST already, I'm trying to find out why a Polish address was changed!
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
----- Original Message -----
From: "Cal Evans" <[EMAIL PROTECTED]>
To: "Paul Roberts" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 6:37 PM
Subject: RE: [PHP] special charicters in form output
> If you are using METHOD=GET, your browser is probably doing it. Try
> METHOD=POST
>
> =C=
>
> *
> * Cal Evans
> * Journeyman Programmer
> * Techno-Mage
> * http://www.calevans.com
> *
>
>
> -----Original Message-----
> From: Paul Roberts [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 13, 2002 12:14 PM
> To: php
> Subject: [PHP] special charicters in form output
>
>
> when i enter sZZsçe in to a form it's changed to sŹZşçę I
> didn't code it to change it to html special characters, is php doing this?
>
> Paul Roberts
> [EMAIL PROTECTED]
> ++++++++++++++++++++++++
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
I'm totally unfamiliar with php, and making some slight modificiations
to Chris Heilmann's nice v 1.1 Newsleterscript.
What exactly is meant by an empty delimiter? This code works just fine,
but I get the following error:
Warning: Empty delimiter in /home/sites/site56/web/trailcrew.php on line
63
# Put the entries into the array lines
$lines = explode("%",$content);
for ($key=1;$key<sizeof($lines);$key++){
# when the email is not in the list, add the old entries
if (!stristr($lines[$key], $email)) { <----
offending line - line 63
$out .= "%".$lines[$key];
}
# when it's already in the list, set found
else {
$found=1;
}
}
Thanks
Rich Pinder
--- End Message ---
--- Begin Message ---
Is there a quick way to set all variables as global so that they are avalible to a
function, i'm doing an eval inside, so i need all the submitted variables to be
avalible, or do i have to decalre them individualy.
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--- End Message ---
--- Begin Message ---
function someCommand()
{
global $var1, $var2, $var3;
stuff();
}
I think you could also use define(); maybe..
Later,
Bob Weaver
"Paul Roberts" <[EMAIL PROTECTED]> wrote in message
00f301c1e311$fa421af0$dde5883e@laptop1">news:00f301c1e311$fa421af0$dde5883e@laptop1...
Is there a quick way to set all variables as global so that they are
avalible to a function, i'm doing an eval inside, so i need all the
submitted variables to be avalible, or do i have to decalre them
individualy.
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--- End Message ---
--- Begin Message ---
1: Globals are bad...m'kay.
You should never use globals. If your function needs a variable, you should
pass it in. There are exceptions to this rule but it's not a good idea to
program normally this way.
2: Is this a form?
It sounds (from the way you word it) that the variables are part of a form.
If so, pass $_POST into your form and it will be able to evaluate them. If
it's METHOD=GET then use $_GET. This is also a much more generic way to
program since if you add a new variable to the form, you don't have to make
it global in this function.
if (myFunction($_GET)){
echo "Everything is hunky dory!";
} else {
echo "Blow Chow";
}
function myFunction($formArray=null){
if (isNull($formArray){
return false;
}
if (isarray($formArray)){
return true;
} else {
return false;
}
} // function myFunction($formArray=null)
WARNING: I have not tried the code above. Use at your own risk. But the
concepts are there.
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Paul Roberts [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] globals in functions
Is there a quick way to set all variables as global so that they are
avalible to a function, i'm doing an eval inside, so i need all the
submitted variables to be avalible, or do i have to decalre them
individualy.
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
How would I find out the image size ratio so that I could resize and image
without the image pixelating ?
--- End Message ---
--- Begin Message ---
On Sunday 14 April 2002 02:08, Vins wrote:
> How would I find out the image size ratio so that I could resize and image
> without the image pixelating ?
Manual > Image functions
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
QOTD:
If you're looking for trouble, I can offer you a wide selection.
*/
--- End Message ---
--- Begin Message ---
There is nothing in there about image ratios
but let me double check again.
maybe it was my error and if so... forgive me I'm from South Africa
LOL
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Sunday 14 April 2002 02:08, Vins wrote:
> > How would I find out the image size ratio so that I could resize and
image
> > without the image pixelating ?
>
> Manual > Image functions
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> QOTD:
> If you're looking for trouble, I can offer you a wide selection.
> */
--- End Message ---
--- Begin Message ---
nope i'm not wrong.
no functin to determine the image ratio
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Sunday 14 April 2002 02:08, Vins wrote:
> > How would I find out the image size ratio so that I could resize and
image
> > without the image pixelating ?
>
> Manual > Image functions
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> QOTD:
> If you're looking for trouble, I can offer you a wide selection.
> */
--- End Message ---
--- Begin Message ---
Since you get width & height the ratio is trivial.
mark C.
> -----Original Message-----
> From: Vins [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 13, 2002 3:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] IMAGING WITH PHP
>
>
> There is nothing in there about image ratios
> but let me double check again.
> maybe it was my error and if so... forgive me I'm from South Africa
> LOL
>
>
> "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > On Sunday 14 April 2002 02:08, Vins wrote:
> > > How would I find out the image size ratio so that I could resize and
> image
> > > without the image pixelating ?
> >
> > Manual > Image functions
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> >
> > /*
> > QOTD:
> > If you're looking for trouble, I can offer you a wide selection.
> > */
>
>
--- End Message ---
--- Begin Message ---
file.php does more than one jobs depending on
HTTP_GET_VARS. for example if "..?mod=show" or it is
empty it shows things, elseif "..?mod=update" it
updates... so i must send a variable to the included
file but i can't do it in the file that includes it.
The file that includes file.php is a template file
which holds the design of the site and each page is
included in to that template.
My English is not very good so if you can't see a
reason not to do it your way i will try to write a
more clear explanation.
Thank you!
Oh! that's an important point:
on index.php(the template file) it decides which file
to include with a switch.
//querystring: /index.php?page=a_page
switch $page
case "a_page":
$inc = "http://$myhost/a_page.php";
case "another_page":
$inc =
"http://$myhost/a_page.php?mod=something";
include($inc);
--- Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
> Why do you want to include from localhost over HTTP?
> Sounds to me like
> you want to do:
>
> $foo='bar';
> include "$DOCUMENT_ROOT/folder/file.php";
>
> -Rasmus
>
> On Fri, 12 Apr 2002, Barí¥²t wrote:
>
> > What i want to do is :
> >
> include("http://localhost/folder/file.php?foo=bar");
> > but it doesn't work. As you may guess it looks for
> a
> > file called "file.php?foo=bar". "url_fopen" is set
> to
> > "on" in my php.ini file as told in the PHP manual.
> > I work on win98+apache+php4.1.1(or something like
> that
> > but at least 4.1...)
> > Do you know what's the problem?
> > Info about this subject is on
> > http://www.php.net/manual/en/function.include.php
> > ...
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
Let me try again:
This line of the script:
if (!stristr($lines[$key], $email)) {
yields the following error:
Warning: Empty delimiter in /home/sites/site56/web.........
Do you know what causes this error ?
Thanks
r
--- End Message ---
--- Begin Message ---
Hi everyone,
I am wondering if anyone has a good hosting service? I am currently with
Aletia which has an excellant package good tech support but sometimes not
very functional servers.
My site has gone down at least 3 times within the last 20 days. Too many for
me.
It has to be at least 50 mb disk space, 10 to 15gig /m transfer, of course
PHP and MySQL, ftp, ssh or telnet, cgi/perl, free domain transfer, at least
15 POP3 email accounts, cron support.
Thanks
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
--- End Message ---
--- Begin Message ---
hi folks,
i am somewhat like a new newbie, just read my first php tutorial, installed
an apache server on my windows and php on top for testing , first question
is : is this the right place for me here to ask questions or is this
newsgroup rather for advanced users?
second question is my task i want to complete in PHP :
i have an array for a dhtml navigation menu for my site. all the links are
"hard coded" inside the array and are , of course , the same for the whole
site EXCEPT for the language selection.
now, for example, i am on a page called about.php, i am clicking on the link
for the german version and a page called german/about.php should be
retrieved. same for spanish.
now, what do i do?
i have found a php snippet that reads the current url <?php
$filelocation=$HTTP_HOST.$PHP_SELF;
echo($filelocation);?>
but can i use this somehow and how do i do that?
i would be happy for any kind of advice .
thankyou
cookie
--- End Message ---