Hello Craig,
On 7 Jan 2004 at 9:50, craig wrote:
> This may be more of an HTML question - can't find anything
> in the php manual, but I may not know where to look.
>
> Is it possible to put the cursor into a form element
> when a page loads without using javascript?
PHP does everything it h
Hello Richard,
On 7 Jan 2004 at 21:02, Richard Kurth wrote:
> I can't seam to get this while loop to work properly. It should create
> a message that has the first two lines and then it will list all the
> domain that meat the criteria.
>
> $lines = "The following are web sites that are at 95%
Hello Khoa,
On 8 Jan 2004 at 0:13, khoa vo wrote:
>
>
> Your name:
>
>
That's fine, but that's not what you have up on your web space. Your form is pointing
to
action.html, not action.php.
>
> #!/lusr/bin/php
> Hi .
Ok, you
Hello Rolf,
On 9 Jan 2004 at 0:51, Rolf Berkenbosch wrote:
> I have a big problem with the mail function in a php script.
> If I run this script with root access, the mail function is working.
> If I try to run it like http://www.i-s-u.nl/test.php it won't work.
> What is happening, what can
On 9 Jan 2004 at 8:20, Ryan A wrote:
> I dont know if this is the right way to do this, so please have a looksee
> and tell me. Its working perfectly well...but will I have problems if I
> try it on a large email list or will it hog resourcesetc? ANY advice
> appreciated.
One step at a time,
Hi there, Jake,
On 9 Jan 2004 at 2:30, Jake McHenry wrote:
> Can someone point me in the right direction towards creating and
> implementing XML with php? I've heard it can make things much easier on
> me, and would like more info on it. Also, if anyone has any storys
> from using it, might give
Hello Vincent,
On 9 Jan 2004 at 16:23, Vincent Jansen wrote:
> After xslt I end up with a html document with a souce that looks
> something like
>
>
> "http://www.w3.org/TR/REC-html40/loose.dtd";>
>
>
> dotted e (ë) works
>
>
>
Hi Philip,
On 10 Jan 2004 at 12:42, Philip J. Newman wrote:
> I want to store some images outside the /public_html/ how ever my isp
> has decided that i'm not aloud to write files in that area. Would the
> next best solution that wold be as secure to maybe put them in a folder
> with a .htaccess
Hello Tim,
On 12 Jan 2004 at 17:50, Tim Burgan wrote:
> I'm wondering if anyone can help me or point me in the right direction
> regarding how I can write to an XML file.
Writing to an XML file works the same way as writing to any other file: you need to
open
the file with fopen(), append to
A quick idea that can probably be perfected:
2050 )
{
return false;
}
$ini_date = mktime(0, 0, 0, 1, 1, $year); // Jan. 1
$end_date = mktime(0, 0, 0, 12, 31, $year); // Dec. 31
// The array to be returned.
Hello Gregor,
On 13 Jan 2004 at 15:08, Gregor Jaksa wrote:
> hello, i need to replace some words in file with [tag]word[/tag] and other
> words with [sample]word[/sample].
>
> i have a list of words which i need to replace with [sample] tags declared
> like
> $words = 'word1|word2|word3|word4';
Hi Chris,
First of all, thanks a lot for sharing your "modus operandi" with us.
On 14 Jan 2004 at 7:32, Chris W wrote:
> I then verify that every character in the string is with in the ascii
> range of a space to the ~ which is basically all the characters on the
> key board.
How exactly are y
Gregor,
On 14 Jan 2004 at 16:02, Gregor Jaksa wrote:
> Can anyone provide me with some link or code on how to deal with nested
> tags.
Could you please tell us a bit more about what you want or need? Are you talking about
HTML or XML? What do you want to be able to do with your nested tags? Yo
Hello Jiri,
I'm not sure I understand your problem (I had some trouble with your English), but
have
you tried PHP's utf8_encode() and utf8_decode() functions? Check out the PHP manual
in your native language for more information on these functions.
Cheers,
Erik
On 15 Jan 2004 at 12:52, Ji ¡
Hello João,
On 15 Jan 2004 at 17:07, João Cândido de Souza Neto wrote:
> I'm using str_replace("\r\n","\\r\\n",addslashes($campo)) to add "\" in
> mysql data to send to javascript variable.
>
> Running in my machine with win xp + iis it's all ok, but in server with
> linux + apache, the javascri
Hello Angela,
On 16 Jan 2004 at 11:30, Angela K Hilton wrote:
> I'm trying to dynamically randomise a chunk of HTML that is used on a
> page, aka random image, so that each time a client opens the page [or
> refreshes] a part of the page changes.
>
> The chunks of HTML are saved in their own
Matt,
You're not by any chance using an Apache server on a machine that also has a firewall,
are you? I've had all sorts of mysterious session-related problems when running
scripts
on my test server (Apache on Win2k with a ZoneAlarm firewall). Took me *ages* to zero
in on the source of the pro
Hi there,
On 17 Jan 2004 at 21:28, SASSINC Internet Solutions - wrote:
> Now I have SAMS book for PHP and mySQL but in Arabic.. so now at the
> moment I only want to learn things which will help me in my project..
> so which lessons must I see.. and which PHP Actions will I use for
> that?
Wha
Hello CC,
On 26 Jan 2004 at 12:47, C C wrote:
> Hi,
>
> I'm trying to insert binary data into a MS SQL Server database. Text
> files are added fine, but binary files with null bytes are not. The
> field I'm adding the binary data to is image type. I get an error about
> unclosed quotation marks
Hi John,
On 26 Jan 2004 at 21:42, John wrote:
> How can I show xml files which have been created in MS Word, in a
> browser as ie Html.
>
> Is this posible and what would it take.
The short answer to your question is "Yes, it's possible".
As for what it would take, the answer is a little long
Check out the message below, which a user added to the online version of the PHP
manual. Could this have anything to do with your problem?
** FROM http://br2.php.net/manual/en/function.mysql-escape-string.php **
sp4m_only at hotmail dot com
02-Apr-2003 10:07
I found out another very curiou
Hello Jake,
On 26 Jan 2004 at 17:55, Jake McHenry wrote:
> I want a list of all variables used. I tried just putting var_dump() but got
> an error. I'd like to see a list of all variables being used in the script,
> then I can start cleaning original code and what I have added. Some strange
> res
On 26 Jan 2004 at 18:21, Jake McHenry wrote:
> yes, but they're not converted into those yet. all of the variables
> are with register_globals = on and they're all global vars. I'm
> converting them all over to session vars, this is why I need to know
> the list.
Just an additional note to my pr
Hello 24 fan,
On 27 Jan 2004 at 0:56, Jack Bauer wrote:
> i'm looking for a function to remove multiple dynamic parts
> of a string, there are only the start and end strings given
>
> (remove all between string A and string B)
>
> got somebody a working procedure for that?
I'm not sure I under
On 27 Jan 2004 at 13:25, Jack Bauer wrote:
> i tried your code zu replace some parts of a string,
> the problem is that this method only replaces when
> there is only 1 word between stringA and stringB.
Of course. "\w*" will match alphanumeric characters, but not whitespace, and word
boundaries
Hello Ben,
On 27 Jan 2004 at 9:27, Ben Ramsey wrote:
> I'm trying to run a query against a database with a PHP script that
> cycles through each record (about 4,000+) and sends and e-mail to them
> if they have an e-mail address present. The problem is that everytime I
> do this, it processes
Hello Alex,
On 27 Jan 2004 at 9:25, Alex Hogan wrote:
> while($row = mssql_fetch_array($result))
>
> {
>
> $id[] = $row['id'];
>
> $ques[] = $row['question'];
>
> }
To keep question and id together even after shuffling the array, why don't you build
an
array of arrays like this
Hello Tony,
On 27 Jan 2004 at 16:47, tony wrote:
> Hi,
>
> i'm trying to send emails with attachment but i get an error (...)
I haven't even had a look at your code, but sending e-mails with attachments can be
quite tricky, so I suggest that instead of trying to re-invent the wheel you use
Ri
Hello Dan,
On 27 Jan 2004 at 14:31, Montagna, Dan wrote:
> echo "";
Uh-oh, this won't work: you have an unclosed tag here. Try this:
echo ''.$row['community'].'';
Good luck,
Erik
Hello Will,
On 28 Jan 2004 at 12:31, Will wrote:
> However recently I encrypted some data which I stored in the database.
> The string contained a \ which I added slashes to when entered in to
> the database. But as the database appears to strips the first slash
> off the double slash automatical
Hello John,
On 28 Jan 2004 at 0:10, John Jensen wrote:
> Hello everyone. I am new to PhP and MySQL. I was wondering what a good
> (Or Free) Php Editor is?
If you want something nice and simple to start with, try WinSyntax
(http://www.winsyntax.com).
If you want a very nice and configurable edi
Hello Patrick,
I have good news and even better news for you. The good news is that you can make all
your form-related woes disappear in less than a day. The even better news is that
everything you need to know in order to solve your problem can be found in one
convenient location:
http://www.
Hi Nico,
On 29 Jan 2004 at 17:52, [EMAIL PROTECTED] wrote:
> I want to locate patterns such as
>
> 12345678
> 1 23 45 67 89
> 1 2 34 567 890
>
> and replace the pattern string with a new string.
>
> I tried
>
> $filter['message'] = eregi_replace("[0-9\s]{4,}",'',
> $filter['message']);
Use
On 29 Jan 2004 at 10:47, craig wrote:
> specifally, you want: $_FILES['userfile']['type'] = The mime type of
> the file, if the browser provided this information. An example would
> be "image/gif".
That's basically it and will work for common file types. However, it's the user's
browser,
not P
Hello Andrew,
On 29 Jan 2004 at 21:05, Andrew Wood wrote:
> I'm calling it with the same arguments as I used to set it originally,
> but with a null string value & an expiry time in the past but the
> cookie persistently remains in the browser.
>From the PHP manual:
"Cookies must be deleted w
Hello Jon,
On 30 Jan 2004 at 10:57, Jon Shoberg wrote:
> Might anyone be able to recomend a PHP based (or Java/Perl/Python) based
> document management system?
>
> I'm looking to being a LARGE collection of PDF documetns online. The
> focus of this application isn't necessarily publishing
Hello Ashley,
On 30 Jan 2004 at 18:51, Ash wrote:
> Hi,
> I am totally new to PHP and dont know a thing. I tried looking through the
> articles but they were of no use. My Question is:
> How can I just write php in a text editor, save it as a .php, and view it in
> internet explorer, offline? I h
Hello Angelo,
On 3 Feb 2004 at 9:36, Angelo Zanetti wrote:
> is there ever a certain situation where you would have something at the top
> of your page before session_start();? If so why would it be before
> session_start();?
The closest thing to a "certain situation" that I can think of is when
Hello Joshua,
On 9 Feb 2004 at 15:45, Joshua Minnie wrote:
> Does anybody have any idea to allow for multiple downloads while another
> one was going on. Maybe some additional headers? I have tried adding
> headers before and after where I open the file for HTTP/1.1 200 OK and the
> correspondi
Hello Rajani,
On 10 Feb 2004 at 12:36, Rajani Anand Iyer wrote:
> Can someone recommend some good books on PHP Advanced topics.
Well, I can advise you on what not to buy, which should help, too.
Don't spend your money on Professional PHP4 (Argerich, Choi, Coggeshall, Egervari,
Geisler, Greant,
Hello Don,
On 11 Feb 2004 at 11:19, Donpro wrote:
> I've searched the archives and note that many have probelms using session on
> a Win2K server. I am getting a
>
> Undefined index: sessions in
> D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768
>
> error. Line 768 is: sessio
Hello Imran,
On 12 Feb 2004 at 1:17, Imran Asghar wrote:
> Hi,
>
> Is not working, is it correct way
>
> File1.php
>
>
>
>
>
> File2.php
>
> echo $colors[0];
> echo $colors[1];
> echo $colors[2];
> echo $colors[4];
> ?>
>
>
>
> imee
>
I'm afraid
On 12 Feb 2004 at 17:20, adwinwijaya wrote:
> Hello php-generaler's ,
>
> I have a script like this :
>
> if($foo == 'something'){
> header('Location:to_another_page.php') ;
> }else
> {
>do another thing in here
> }
>
> header('Location:to_previous_page.php');
>
>
On 12 Feb 2004 at 0:29, Matthew Oatham wrote:
> I have a form on page1 that i want to submit to another php page - page2
>
> the form has the fields
>
>
>
>
>
> Basically I want to have these form field values as an array of values I
> can loop through on page 2 but what do I put on page 2 t
Hello Joel,
Before you read my comments below, let me say that I'm not trying to prove you
*wrong* or even express disagreement with the points you made; I'm just interested in
your reasons.
On 12 Feb 2004 at 20:11, joel boonstra wrote:
> Hopefully you're aware that $HTTP_USER_AGENT is an unre
Hello Carlos,
On 12 Feb 2004 at 18:52, carlos castillo wrote:
> does anyone know how to reproduce a mp3 file with php?
If my Spanish serves me right, what you want to do is play an MP3 file. Well, that's
something that would happen on the user's computer and would depend on the
presence of a s
Hello Dave,
You'll find all this information and much more in the PHP manual (
http://www.php.net/docs.php ). Look for the chapter on functions.
Have fun,
Erik
On 14 Feb 2004 at 7:31, Dave Carrera wrote:
> Hi List,
>
> Here is an easy one for you :-)
>
> --- Example1 Function ---
>
> Func
Hello Philip,
On 14 Feb 2004 at 18:48, Philip J. Newman wrote:
> Whats the best information to add to a session to say a user is logged in?
>
> I currently have $siteUserLogIn="true";
>
> anything else that I could add to beef up security?
You'll find an in-depth answer to your question in an
Hello Shaun,
On 16 Feb 2004 at 22:23, Shaun wrote:
> I have a form on a page. If certain options are selected on that page
> I need a popup window with a select option on there to appear. How can
> I make this happen with PHP, or do I need to use some JavaScript?
PHP is a server side scripting l
Hello Angelo,
On 17 Feb 2004 at 11:21, Angelo Zanetti wrote:
> I am querying a db and getting the resultset, then to get out each
> individual field of the resultset (which is a single unique line all
> the time) as mysql_result($result2, 0, "p_company"). the problem is
> that if the actual fiel
Hello Chris,
On 17 Feb 2004 at 15:39, Chris W. Parker wrote:
> anyone have any thoughts on this? am i making this more complicated
> than it is? ;)
Well, yes and no. You're trying to organize your files so that each set is only
accessed
via one protocol (http or https), which makes pretty goo
On 17 Feb 2004 at 21:24, Chris wrote:
> I am looking for suggestions for a textbook for an undergraduate class
> introducing PHP and MySQL (using PHP, not MySQL administration). Right now
> I am using the McCarty book "PHP 4 A Beginner's Guide" but there might be
> new and/or better books out t
Hello Juan,
On 18 Feb 2004 at 13:51, Juan Torres wrote:
> Does PHP allow parser a XML with a XSL-FO and create a PDF?
Your English is kind of difficult to understand, but I guess you want to know if you
can
perform XSL-FO transformations with PHP. If this is your question, the answer is 'no':
Hello Seba,
Check your php.ini file: you'll probably find that "session.use_trans_sid" is set to
1,
which is actually a security hazard. If you set "session.use_trans_sid" to 0, session
IDs
will no longer be automatically sent as GET variables.
Cheers,
Erik
On 19 Feb 2004 at 13:15, Seba wr
On 19 Feb 2004 at 15:53, [EMAIL PROTECTED] wrote:
> I just discovered something totally bizarre with file uploads and mime
> types, if i have the document open i am trying to upload say a word file
> application/octet-stream and if i close the document application/msword ,
> why is this ?
My gues
On 19 Feb 2004 at 17:15, seba wrote:
> Unfortunately I do can not oblige users which will use those pages to
> accept cookies . The pages are for an e-commerce web site. If I use
> the directive session.use_trans_sid = 0 is not possible to MANTAIN THE
> SAME phpsessid value among differents pages
What are the contents of your file? You do realize, I hope, that whatever is in the
file is
going to be output to the browser, so any HTML tags in the file will be processed
before
anything is displayed in the browser. Have a look at the resulting page's source code.
On 20 Feb 2004 at 10:15,
Hello all,
I'm looking for an alternative to PHP's XSLT extension. Does anyone
know of a good PHP class capable of performing XSL transformations?
Thanks for your time,
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 20 Feb 2004 at 16:25, Juan Torres wrote:
> you try with XMLDOM Functions. You look this function:
> DomXsltStylesheet->process -- Applies the XSLT-Transformation on a
> DomDocument Object
Thanks Juan, but I'm actually looking for a class that I can upload to a site rather
than
an extension
Hello Alex,
On 11 Mar 2004 at 10:15, Alex Hogan wrote:
> if(empty($_SESSION['sellocation'])){
>
> $_SESSION['selloction'] = '0';
Have a close look at the array member above. It's spelled differently from the others
(an
A is missing).
>
> }
>
> $_SESSION['sellocation'] = $_POST['sellocation
Hello Elliot,
On 11 Mar 2004 at 23:55, Elliot J. Balanza wrote:
> I need to make a query to a MySQL database that only has two fields, name &
> value. That I can do.
>
> Then I need to store the values i receive in an array in the form of:
>
> $variable['name'] = value;
>
> But haven't been ab
Damon,
Sessions have to do with requests being sent by browsers to the web server. Each time
you close all the windows of your browser on your computer and start the browser
again, a new session is started. I suspect that since all your users are essentially
using
the same web browser (since t
Hello all,
For a while I tried in vain to find a decent regular expression tester. The closest I
found
was RegExpEditor, by the same people who produce PHPEdit, but I found it to be slow
and didn't like its constant bitching about "invalid delimiters" or some such thing.
Anyway, I ended up wri
I'm writing this message in the hope that some of the people responsible for PHP5 will
eventually read it.
I have just downloaded and installed PHP5 RC1 according to the instructions found in
the package (which are basically the same as for previous releases of PHP). Before
relating the problem
On 19 Mar 2004 at 19:23, Lester Caine wrote:
> [EMAIL PROTECTED] wrote:
>
> > I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
>
> Mines 2.0.48, but no problem.
>
> > Upon installation, when I first started Apache again, I got an error message to
> > the effect
> >
65 matches
Mail list logo