Re: [PHP] Download

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 16:02, Ashley M. Kirchner wrote: > Okay, so since www.php.net and de.php.net are unreachable, I hit > us.php.net. Worked. Went to downloads, clicked on the Complete > Source link and to my surprise it went back to trying to contact > www.php.net. Well, that don't do me any g

[PHP] Re: Call a script without a return

2001-09-18 Thread _lallous
check lgwm.org goto reading comprehension section and then double-click or select any word on this page and see what happens! Yes it can be done what you're thinking of. "Alex Shi" <[EMAIL PROTECTED]> wrote in message 005d01c140b6$67c19550$0105050a@pony">news:005d01c140b6$67c19550$0105050a@pony.

[PHP] Download

2001-09-18 Thread Ashley M. Kirchner
Okay, so since www.php.net and de.php.net are unreachable, I hit us.php.net. Worked. Went to downloads, clicked on the Complete Source link and to my surprise it went back to trying to contact www.php.net. Well, that don't do me any good. Anyone have any suggestions for getti

[PHP] phpMyAdmin problem that might have you fustered

2001-09-18 Thread Adam
I found that if you were trying to back up a database in this application, and you had a # mark anywhere on an entry, this would cause a fault when you tried to reload the script back into the sql statememnt. you will have to make a find and replace script on page to convert it to a different char

Re: [PHP] real simple regex

2001-09-18 Thread Frank M. Kromann
The imap_mail() function connects to a SMTP the same way mail() does. It just takes a few paremeters more allowing you to set Reply-To and other headers normaly defined in PHP.INI. In general the imap functions can be used with IMAP¤ and POP3 servers to read mails. - Frank > but can imap repl

Re: [PHP] Passing Variables and the include command

2001-09-18 Thread Rasmus Lerdorf
Included files share the same global symbol table as the parent file. So, simply do: $file = "somefile.txt"; include "counter.php"; And by the way, please don't use "$file". It makes no sense. Just $file. -Rasmus On Tue, 18 Sep 2001, Andrew V. Romero wrote: > I was wondering if it is possi

[PHP] Passing Variables and the include command

2001-09-18 Thread Andrew V. Romero
I was wondering if it is possible to pass some variables to a php file that will be accessed via the include command? For example, I am working on creating a nicer "hits" counter and would like to just write the code for the counter once and then have each page access that counter.php3 and pass a

[PHP] One more for the night

2001-09-18 Thread Scott
I promise, this is the last one tonight :) I want to be able to pull up all the items for navigation on the left menu, then each item might have a sub item underneath it, but I only want to call them when you are on that section. The code is below. Example, when you first hit the page you will

Re: [PHP] Showing up variables in URL !

2001-09-18 Thread Alex Shi
Try this: Alex - Original Message - From: "Arcadius A." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 6:14 AM Subject: [PHP] Showing up variables in URL ! > Hello ! > We all know how to pass value to variable using an URL. > So, how can I do the inve

Re: [PHP] Showing up variables in URL !

2001-09-18 Thread Richard Baskett
The question is... "Why would you want to do this?" Rick > Hello ! > We all know how to pass value to variable using an URL. > So, how can I do the inverse ? > I mean , showing the value of a variable in the URL? > > for instance my page "index.php" is : > > $greetings="Hello" ; > echo $gree

[PHP] Showing up variables in URL !

2001-09-18 Thread Arcadius A.
Hello ! We all know how to pass value to variable using an URL. So, how can I do the inverse ? I mean , showing the value of a variable in the URL? for instance my page "index.php" is : So, how to make PHP so that when I load my page in the browser(typing "index.php" in the adress bar) , it w

Re: [PHP] re: array question

2001-09-18 Thread Scott
Thank YOU! It worked wonderful, I used a blank to separate the content like this: $displn = implode("",$new_data); Thank you again and thank you to everyone for helping me through this! At 01:15 PM 9/19/2001 +0930, David Robley wrote: >On Wed, 19 Sep 2001 12:28, Scott wrote: > > That works, t

Re: [PHP] re: array question

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 12:28, Scott wrote: > That works, thank you, but it prints at the top of my page, is there > a way to store that array into a single variable? > Yes - implode() -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders Uni

RE: [PHP] re: array question

2001-09-18 Thread Hoover, Josh
If you want to store all the values in the array in one variable (just as a string with delimiters maybe?) Try this: foreach ($array as $value) { $temp .= $value . "|"; } Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve

Re: [PHP] re: array question

2001-09-18 Thread Scott
That works, thank you, but it prints at the top of my page, is there a way to store that array into a single variable? At 07:43 PM 9/18/2001 -0700, Jason Bell wrote: >or, assuming PHP4 is in use, you can do it a little cleaner, and use a >foreach loop: > >foreach ($array as $value) { > p

[PHP] Call a script without a return

2001-09-18 Thread Alex Shi
Hi, I know my question might be a little bit strange but I am really thinking for the posiblity. Suppose we have a page and on it a button link to a backend script. When click the button, at the server side the scritp will be called. My question is, how can we program the script that just let

Re: [PHP] re: array question

2001-09-18 Thread Jason Bell
or, assuming PHP4 is in use, you can do it a little cleaner, and use a foreach loop: foreach ($array as $value) { print $value; } if you wanted the key names, as well as the value, you could use this: foreach ($array as $key => $value) { print "$key of \$array = $value"; } - Origi

RE: [PHP] re: array question

2001-09-18 Thread Scott
Jack- Thanks for the response, but I don't want to echo the array, I want to bundle it into a new variable that will be called as part of a str_replace. The array is created from a loop through all the navigation items in a database. The code is below, if I echo the code is formatted in the wron

RE: [PHP] re: array question

2001-09-18 Thread Jack Dempsey
perhaps i'm misunderstanding you, but why not use a for loop? for($i=0;$imailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 10:11 PM To: [EMAIL PROTECTED] Subject: [PHP] re: array question Oh, that works wonders and for the first time in 24 hours I am smiling! One more thing to make i

[PHP] re: array question

2001-09-18 Thread Scott
Oh, that works wonders and for the first time in 24 hours I am smiling! One more thing to make it complete. Is there a way to loop through the display of that array? In other words, I now have an array called $new_data and can call each element in the array by doing $new_data[0], etc, but I n

Re: [PHP] Re: Problem: lost session id when htaccess'ing.

2001-09-18 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 18 Sep 2001, Chris Lee wrote: > - you have cookie support on or off ? > - you using any header redirects ? (you have to manually add the SID to > URI's) Sorry for the lenght of this mail. PHP compiled with --enable-trans-id, so PHP adds SID to the URL. session.use_cookies = 0, session.r

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-18 Thread Lic. Rodolfo Gonzalez Gonzalez
On Tue, 18 Sep 2001, * R&zE: wrote: > > and get DD-MM-, but with well formed -MM-DD it doesn't match!. Is > > this a bug?. > It would help if you send the code you're using, 'cause we can't see > what you're doing now. FAFAIK it should just be possible. See the Sure: --- start --- $dat

Re: [PHP] Speeding up program

2001-09-18 Thread David Robley
On Tue, 18 Sep 2001 20:56, Niklas Lampén wrote: > How big difference does it make in speed in these: > > for ($i = 0; $i < mysql_num_rows($Results); $i++) { > blah > }; > ?> > > or > > $n = mysql_num_rows($Results); > for ($i = 0; $i < $n; $i++) { > blah > }; > ?> > > So actually I'm ask

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Mark
On Tue, 18 Sep 2001 16:29:21 -0700 (PDT), John Holcomb wrote: >I have a text input field in my form. I need the user >to be able to enter something like: Hello, I need # >help. After which they click on a submit button. The >succeeding page then takes this text and tries to >display it and tri

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread David Robley
On Wed, 19 Sep 2001 08:59, John Holcomb wrote: > I have a text input field in my form. I need the user > to be able to enter something like: Hello, I need # > help. After which they click on a submit button. The > succeeding page then takes this text and tries to > display it and tries to stor

RE: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread hue micheal
Thanks everyone for ideas and suggestions. In short, it is no easy way, but there are work arounds by using scripting, CSS etc, but it may not be portable. I guess people can always use the browser's print button, but this has some limitation on pages that use frames etc. Regards, Huem --

Re: [PHP] real simple regex

2001-09-18 Thread Christian Dechery
but can imap replace my old mail() calls? Don't I have to get a server that supports it or something?? the regex thing I already got working... thanks... At 21:53 17/9/2001 -0700, Frank M. Kromann wrote: >Take a look at http://php.net/manual/en/function.imap-rfc822-parse-adrlist.php > >This fu

Re: [PHP] Thank you Rebecca

2001-09-18 Thread Rebecca Donley
Glad to be of help John. Wish I could think of something a little more elegant. The # seemed like an odd choice to me for a comment line because it's a well used character in both html and common text. I'm surprised it hasn't given a lot of people trouble. Rebecca >From: John Holcomb <[EMA

[PHP] Thank you Rebecca

2001-09-18 Thread John Holcomb
Excellent idea Rebecca. I guess I'll have to resort to this because no one else out there seems to have ever had this problem. You've been a big help. Thank you for your ideas. John --- Rebecca Donley <[EMAIL PROTECTED]> wrote: > What about writing a function to change all the # > characters

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Rebecca Donley
What about writing a function to change all the # characters to something else (maybe something you would never see in the input) and then another to change them back again before entry into your db? I'm pretty new to PHP so I'm not sure what string functions are available but in ASP you could

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread John Holcomb
Thank you. This has been the biggest help so far. But, if it's a user entered string is their anyway to do this without having to parse the string and looking for the # sign and then reconstructing the string. That would be very difficult to do. I would appreciate any comments you might have.

Re: [PHP] PHP Site

2001-09-18 Thread Scott
http://www.zend.com/manual/ At 04:37 PM 9/18/2001 -0700, Jason Bell wrote: >Thanks. I suppose really need to download the docs to my machine. :) > > >- Original Message - >From: "Scott" <[EMAIL PROTECTED]> >To: "Jason Bell" <[EMAIL PROTECTED]>; "PHP Users" ><[EMAIL PROTECTED]> >Sent: Tu

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Rebecca Donley
John, I had a similar problem when passing # from one page to another as an html anchor. What worked for me was separating the # in quotes as follows: echo "?id=" . $row[0] . "#" . strtolower($row[1]) . '">'; When I did this I had no problem passing the entire string without the end being i

Re: [PHP] PHP Site

2001-09-18 Thread Jason Bell
Thanks. I suppose really need to download the docs to my machine. :) - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: "Jason Bell" <[EMAIL PROTECTED]>; "PHP Users" <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 4:34 PM Subject: Re: [PHP] PHP Site > The net is slow ri

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Jason Bell
John, someone did reply to you alread. here let me snip from that email oOoOoOoOoOoO Gerard Samuel Said: oOoOoOoOoOoO check to see if the field where the info is going into is long enough. ie varchar(50). anything more than 50 get cut off. > being diplayed on the succeeding web pag

Re: [PHP] PHP Site

2001-09-18 Thread Scott
The net is slow right now as there is another Microsoft IIS worm/virus floating around. This one is worse than Code Red in the amount of traffic it generates, something to effect of 10 requests a second, compared to one with Code Red. While php.net is not running IIS, it is subject to these prob

[PHP] Is there no one who can help me out there.

2001-09-18 Thread John Holcomb
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store "Hello, I need # help" in a varchar field in a mysql ta

[PHP] PHP Site

2001-09-18 Thread Jason Bell
is it just me, or is php.net down right now?

RE: [PHP] The Salty Marine's eMail eMuster Subscription

2001-09-18 Thread Salty Marine
Greetings to Duncan and all those on the list: Lol, I've removed the [EMAIL PROTECTED] address from the distribution list. Sorry for the error, I must remember to lay off the mountain dew and twinkies and get some sleep after thirty hours, lol. Regards, Salty -Original Message- From:

Re: [PHP] The Salty Marine's eMail eMuster Subscription

2001-09-18 Thread Duncan Hill
On 18 Sep 2001 [EMAIL PROTECTED] wrote: > > Thank you for subscribing to the Salty Marine's eMail eMuster newsletter, Ooh.. some other mad list that doesn't have validation of subscribed accounts. Or someone being bored. -- Sapere aude My mind not only wanders, it sometimes leaves completely

[PHP] The Salty Marine's eMail eMuster Subscription

2001-09-18 Thread oort
Thank you for subscribing to the Salty Marine's eMail eMuster newsletter, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] ...::: Vacation on us! :::...

2001-09-18 Thread Jason Bell
All of us? WoW! Well, if we win, how do we decide who gets to go? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 8:06 AM Subject: [PHP] ...::: Vacation on us! :::... > You have been specially selected to qualify for the followi

[PHP] ...::: Vacation on us! :::...

2001-09-18 Thread Sophia242
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://wintour.my163.com Confirmation Number#Lh340 Please confirm your entry within 24 hours

[PHP] help please with # sign

2001-09-18 Thread John Holcomb
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store "Hello, I need # help" in a varchar field in a mysql ta

[PHP] Re: Warning: stat failed - Why does it appear?

2001-09-18 Thread Philip Hallstrom
I am using 4.0.7-dev and I too now get this error on unix (FreeBSD 4.3-STABLE). So it's happening all over. I think it's a good thing cause it helps remind you that you're trying to stat something that doesn't exist... and if you're doing that on a file that might or might not exist then your co

Re: [PHP] Re: Getting data over https?

2001-09-18 Thread Ville Mattila
Thanks Chris, but I'm using Win32 at the moment... The solution should anyway be compatible with Win32 as well as Linux/Unix. But anyway mainly with Win32. - Ville "Chris Lee" <[EMAIL PROTECTED]> kirjoitti viestissä [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > php doesnt support https url-w

Re: [PHP] For the RegExps gurus!

2001-09-18 Thread ~~~i LeoNid ~~
On Mon, 17 Sep 2001 13:15:08 +0200 impersonator of [EMAIL PROTECTED] (* R&Ze:) planted &I saw in php.general: >Ehhh... hai! > Halo! Good to see you back:) >I've been away on vacation, so it's a bit late, but anyway... > Indeed late.. Had a good one? > >> You didn't. Actually please expose - tell

Re: [PHP] Describing mysql table

2001-09-18 Thread Gerard Samuel
Hey I figured out my problem. Instead of using a foreach loop, I used a while loop and everything is cool man :). UPDATED CODE: $query = "DESCRIBE mpn_users"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)){ echo "$data[0], $data[1], $data[2]"; } Gerard S

[PHP] How do I tell the mail function that the message content is HTML?

2001-09-18 Thread Salty Marine
Greetings to You: How do I tell the mail function that the message content is HTML? Regards, Salty

Re: [PHP] Need help. please

2001-09-18 Thread Gerard Samuel
John Holcomb wrote: > I'm sorry for those who my have responded to my last > email. I thought I had plenty of room in my email > client, but I forgot to delete my trash, so I did not > get any responses. So, I'm going to restate my initial > problem. Any help will be greatly appreciated. > > Th

[PHP] Need help. please

2001-09-18 Thread John Holcomb
I'm sorry for those who my have responded to my last email. I thought I had plenty of room in my email client, but I forgot to delete my trash, so I did not get any responses. So, I'm going to restate my initial problem. Any help will be greatly appreciated. Thanks again I have a text inpu

Re: [PHP] Array question

2001-09-18 Thread Gerard Samuel
Try this. $sql = "select bp_section_id,bp_section_name from bp_sections order by bp_section_name"; $sql_result = mssql_query($sql); while ($row = mssql_fetch_array($sql_result)){ $bp_section_id = $row["bp_section_id"]; $bp_section_name = $row["bp_section_name"]; $ln = "$bp_secti

[PHP] Array question

2001-09-18 Thread Scott
Ok, I think I have my template and includes problem worked out, but making an array out of the data returned. My question is how do I make an array out of a returned result. Here is the code: $sql = "select bp_section_id,bp_section_name from bp_sections order by bp_section_name"; $sql_result = m

[PHP] Describing mysql table

2001-09-18 Thread Gerard Samuel
Im trying to get results from a mysql command (describe tablename;) into php. I know about the php functions, but I would like the mysql nameing instead. Im trying like so $query = "DESCRIBE users"; $result = mysql_query($query); $array = mysql_fetch_array($result); foreach ($array as $data)

[PHP] Help with escaping the # sign

2001-09-18 Thread John Holcomb
I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store "Hello, I need # help" in a varchar field in a mysql ta

[PHP] Warning: stat failed - Why does it appear?

2001-09-18 Thread "Kasper Skårhøj"
Hi folks. I have a project with over 270 is_dir, is_file and file-exists function calls. On unix there are no problems. On windows (WINNT/PHP Version 4.0.7-dev) these functions may return a warning like: Warning: stat failed for log.txt (errno=2 - No such file or directory) in D:\wwwro

Re: [PHP] SPEED: Apache module vs. compiled?

2001-09-18 Thread Michael A. Peters
On Tue, 18 Sep 2001 10:12:05 -0700 Camille Davis <[EMAIL PROTECTED]> wrote: > Does anyone have any benchmarks or proof of a speed difference between > compiling PHP as an Apache APXS module, versus compiling it right into Apache? > > I'm going to be using it on a virtual webhost with 400 domain

[PHP] PHP + NT + Weird line break??

2001-09-18 Thread Joseph Koenig
On NT, I have recently run into this problem. However, this is only as of today. When using include(); at the top of a page: HTML... There is a line break before my page most of the time, but not always. Removing the include file and copy-pasting it's contents into the top of the HTML file gets

[PHP] exclamation points appearing from nowhere in the mail() function...

2001-09-18 Thread m&m \(saul\)
hey, could anyone help me with the mail function? in my script, its sintax is right... when i use the mail() function it works normaly... but when somebody receives the email sent by the mail(), some exclamation points appear from nowhere and the strangest thing is that the excamation points appe

Re: [PHP] Re: include question

2001-09-18 Thread Jason Bell
include loads the entire file. I do something similar with my functions (Keep them in a seperate file, and include them when needed) I will usually have multiple function files, grouped by function... for example, I have one file for error reporting functions, one file for authentication function

[PHP] Re: include question

2001-09-18 Thread Nikola Veber
I'm afraid you have not understood me completely: My only concern on this topic is: Will the user be forced to wait for the whole included php file to load, or the server will just take the desired function from that file? My goal here is to call different fragments of html code depending on u

Re: [PHP] PHP 4.07 and Solaris Sun Package

2001-09-18 Thread Rasmus Lerdorf
> Yes, I would like to see RC1 of PHP4.0.7 available and not in CVS fashion. > And one more thing, is it possible to make PHP into a sun package > ?http://www.sunfreeware.com/pkgadd.html Go for it. We don't distribute binaries with the only exception being the Windows build. -Rasmus -- PHP G

Re: [PHP] 4.0.7 = when?

2001-09-18 Thread Rasmus Lerdorf
open_basedir has been around for years. It is not a new 4.0.7 feature. And you can get the latest RC from http://www.php.net/~zeev/php-4.0.7RC2.tar.gz -Rasmus On Tue, 18 Sep 2001, Camille Davis wrote: > Any clue when PHP 4.0.7 is coming out? > > I need the "open_basedir" option that 4.0.7 has

RE: [PHP] New to PHP, just looking for resources is all =)

2001-09-18 Thread Boaz Yahav
mod_auth_mysql - mod_auth_mysql was written in order to allow users to use the blazing quick speed of MySQL in order to store authentication information for their apache web servers. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=558 or : http://www.weberdev.com/index.php3?GoTo=s

[PHP] PHP 4.07 and Solaris Sun Package

2001-09-18 Thread Nael Mohammad
Yes, I would like to see RC1 of PHP4.0.7 available and not in CVS fashion. And one more thing, is it possible to make PHP into a sun package ?http://www.sunfreeware.com/pkgadd.html -Original Message- From: Camille Davis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 10:15

[PHP] 4.0.7 = when?

2001-09-18 Thread Camille Davis
Any clue when PHP 4.0.7 is coming out? I need the "open_basedir" option that 4.0.7 has added. I've downloaded snapshots from snaps.php.net but those are 4.0.8-dev and acting weird. (IE gives many "page not found" errors. Refreshing the screen sometimes finds the page again.) Is there a plac

RE: [PHP] What is PHP's equivalent?

2001-09-18 Thread Boaz Yahav
As much as I love PHP, if you are going to use com, I suggest you stick to ASP/COM :). No other language than the one MS it self wrote will have the compatibility to COM and the OS like ASP. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow

[PHP] manipulating graphics

2001-09-18 Thread Jay Paulson
Hello everyone- I've been looking at the php manual to see what functions are available to resize images. I was wondering if there was a function that Constrained the Proportions of the image or am I going to have to write that function? Thanks, jay -- PHP General Mailing List (http://www.ph

[PHP] SPEED: Apache module vs. compiled?

2001-09-18 Thread Camille Davis
Does anyone have any benchmarks or proof of a speed difference between compiling PHP as an Apache APXS module, versus compiling it right into Apache? I'm going to be using it on a virtual webhost with 400 domains on one server, and good amount of traffic. PHP used for *everything*. Module wou

RE: [PHP] MySQL tutorials?

2001-09-18 Thread Boaz Yahav
Simple Connection to MySQL with PHP : http://www.weberdev.com/index.php3?GoTo=ViewArticle.php3?ArticleID=11 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Tue

Re: [PHP] Undefined Variable in formular... what happens???

2001-09-18 Thread Philip Olson
Most likely it has to do with your error_reporting setting. See : http://uk.php.net/manual/en/phpdevel-errors.php#internal.e-notice http://uk.php.net/manual/en/features.error-handling.php Level E_NOTICE produces Warnings such as "Undefined Variable", so, doing the following : echo $ia

RE: [PHP] when logic fails, PHP randomly skips execution of lines

2001-09-18 Thread php
How about: $enc="abcdefe"; echo "swap: ".$enc."\n"; // swap 1st and 2nd half of string $len= (int)strlen($enc)/2; $enc=substr($enc,$len).substr($enc,0,$len); echo "swp2: ".$enc."\n"; echo "end\n"; Your /2 system wont' work when strlen is an odd number. Sean -Original Messag

[PHP] when logic fails, PHP randomly skips execution of lines

2001-09-18 Thread Jens Kisters
Hello everbody, I have noticed something quite strange, i have a piece of code that looks like, i removed some of it to make it readable: there are no statements in the code that would cause the termination of the method before reaching the last line, no return, die or whatever. This thing is

Re: [PHP] Handling sessions between servers?

2001-09-18 Thread Chris Lee
using mysql is an excelent choice, if your not using a db Ive seen people pass the data raw echo " mediawaveonline.com "; then session_decode(base64_decode($session_data)); its ugly, but it works. -- Chris Lee [EMAIL PROTECTED] "Josh Hoover" <[EMAIL PROTECTED]> wrote in message E973048A

[PHP] Re: how can i show my table 5 record by five record ?

2001-09-18 Thread Chris Lee
I dont understand, so Im going to make up a question and then answer it. "how do I make a table five elements wide dynamically ?" echo " "; foreach( $db->select_array('', 'product', '') as $pos => $val ) { if ( !(@$counter++ % 5) ) echo " "; echo " {$val['product_name']} ";

[PHP] Re: Getting data over https?

2001-09-18 Thread Chris Lee
php doesnt support https url-wrappers. grab the data with an external app maybe, it'll be ugly. exec('lynx -source https://www.pilotmedia.fi/ > /tmp/somefile.txt'); fopen('/tmp/somefile.txt', 'r'); unlink('/tmp/somefile.txt'); -- Chris Lee [EMAIL PROTECTED] "Ville Mattila" <[EMAIL PROTEC

Re: [PHP] What is PHP's equivalent?

2001-09-18 Thread Chris Lee
correct me if Im wrong, but I wanted to add a note saying that php supports loading .COM and .NET only if the server is windows based. -- Chris Lee [EMAIL PROTECTED] "Sterling Hughes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, 17 Sep 2001, E

[PHP] Re: Problem: lost session id when htaccess'ing.

2001-09-18 Thread Chris Lee
- you have cookie support on or off ? - you using any header redirects ? (you have to manually add the SID to URI's) send some src and a link. lets see whats going on. -- Chris Lee [EMAIL PROTECTED] "Lic. Rodolfo Gonzalez Gonzalez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread Marc Swanson
> Do you know how to create a button to print current page without > bringing up the printer dialog box? I just print to the default printer. > > And also how do I insert a page break ? Yes, to both questions. See http://www.meadroid.com/scriptx It is an ActiveX component that allows pretty

Re: [PHP] chewing up apache logs

2001-09-18 Thread Marc Swanson
> I've just changed ISPs, and my old ISP used webalizer to report > usuage/everything else stats about a website. The new ISP offers a > simular product for a cost, but it looks very clumsy and bloated. I had the same problem... I used to host my own and then had to switch to a hosting service

[PHP] Re: INCREASING GAS PRICES

2001-09-18 Thread _lallous
Hehhere (Lebanon) the gas price rasied to $2 per 20 Litters already! <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Oil prices have jumped amid concerns that U.S. > retaliation for this week's terrorist attacks > could hurt supplies from the Middle East.

[PHP] Re: INCREASING GAS PRICES

2001-09-18 Thread _lallous
Hehhere and just now the gas price rasied to $2 per 20 Litter <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Oil prices have jumped amid concerns that U.S. > retaliation for this week's terrorist attacks > could hurt supplies from the Middle East. > > Bren

[PHP] replace with display function

2001-09-18 Thread Scott
Hi, I am working on replacing strings in a navigation file. I need to be able to assemble the left navigation from a table. My problem is the function code gets placed above where it should appear in the template. Here is what I have: $temp5 = str_replace("[LEFT NAV]",call_leftnav(),$temp4);

[PHP] Re: Get the beginning array number

2001-09-18 Thread Steve Edberg
At 4:12 PM +0200 9/18/01, _lallous wrote: >reset($array); >list(, $value) = each($array); >this will give you first value in $value ...and according to http://www.php.net/manual/en/function.reset.php reset() returns the first element of the array, so you could shorten this to

RE: [PHP] Re: Is it *really* an associative array?

2001-09-18 Thread Boget, Chris
> what are you trying to do? > why do you want to diffirentiate between "99" as a string or > as a number? Because if it is a string, more than likely it means that the key was user defined and is not PHP defined as an element number. Again, consider the differences between these two arrays: a

Re: [PHP] SMS with php

2001-09-18 Thread
> http://www.ietf.org/rfc/rfc1861.txt?number=1861 > There. How is that. A lot better :) -- * R&zE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -

Fwd: Re: [PHP] SMS with php

2001-09-18 Thread Lewis Bergman
http://www.ietf.org/rfc/rfc1861.txt?number=1861 There. How is that. You should still try google. You might turn up more to help you. -- Lewis Bergman Texas Communications 4309 Maple St. Abilene, TX 79602-8044 915-695-6962 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] html anchors and form variables again

2001-09-18 Thread Rebecca Donley
Hi all, Several days ago I asked for help with this problem and you gave me information on the output control functions, which was much appreciated and solved some of my problems. However, I can't seem to find away around the following one: I need to pass a variable value from one page to the

Re: [PHP] SMS with php

2001-09-18 Thread
> > could U list the URL > > > http://www.radio.net/rfc1861.txt?number=1861 This URL doesn't exist. Please check it... -- * R&zE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Station

Re: [PHP] SMS with php

2001-09-18 Thread Lewis Bergman
Due to all the questions I am posting replies to this thread to a single message. > I'm very intruiged how you have got this to work it was my > understanding you needed to be running a server, such as kannel, and have a > contract with an smsc? No, you don't need anything special. > could

[PHP] Re: Get the beginning array number

2001-09-18 Thread _lallous
reset($array); list(, $value) = each($array); this will give you first value in $value "Brandon Orther" <[EMAIL PROTECTED]> wrote in message !~[EMAIL PROTECTED]">news:!~[EMAIL PROTECTED]... > Hello, > > I have an array sent to my script that starts at different numbers each > time. Here is an ex

[PHP] fwd: INCREASING GAS PRICES

2001-09-18 Thread gasman6103
"Oil prices have jumped amid concerns that U.S. retaliation for this week's terrorist attacks could hurt supplies from the Middle East. Brent Crude futures for November delivery jumped 61 cents, or 2.2 percent, to $28.96 in mid-morning trade on London's International Petroleum Exchange." It's a

[PHP] Re: May I ask sql question here??

2001-09-18 Thread _lallous
Man...you could have asked already and you might have got an answer from others and "NO" from others... I might answer you if your question is in the range of my knowledge. "Zenith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know that, this is a newsgrou

[PHP] May I ask sql question here??

2001-09-18 Thread Zenith
I know that, this is a newsgroup for PHP, but can I ask some SQL question here? Or, would you mind point me to a suitable newsgroup for SQL question? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] T

Re: [PHP] Re: Replacing datafile with array

2001-09-18 Thread _lallous
Man, you can't do echo Array! you have to walk through an array! dump the array and see its content via: var_dump($retVal) for example, refer yourself to the array functions in PHP's manual, "Daniel alsén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm.

RE: [PHP] Re: Replacing datafile with array Sorry... .)

2001-09-18 Thread Daniel Alsén
Sorry, It seems like every time i posted a question i was able to solve it myself :) Something strange going on in my problem solving part of the brain. I got the whole script to work. The navigation part solved itself when i moved the 'cleaning up' part to the very end of the script. Still, if

RE: [PHP] Re: Replacing datafile with array II

2001-09-18 Thread Daniel Alsén
Woops! I actually got the listing to work by replacing $photos = file($retVal); with $photos = $retVal; :) But, there´s still a problem. The script doesn´t seem to be able to use the navigation part (print out the next and previous links). That part of the script looks like this: next pa

RE: [PHP] Re: Replacing datafile with array

2001-09-18 Thread Daniel Alsén
Hmm... it still doesn´t work. If i echo $retVal i just get the word 'Array' (the same number of times that the number of files in the directory). If i echo $file i get the file listing...however, it doesn´t pass on the content to the rest of my script. Maybe someone could help me out with the

[PHP] Undefined Variable in formular... what happens???

2001-09-18 Thread Ingo
hello i am using win2000 xitami, php and access. so my problem is that the script couldn't find the variable.. . so i cant save the user changed buttons and editfields... is that a known problem with xitami and php? when i try to run the script on a real webserver with .php installed, it works f

RE: [PHP] Can I use Microsoft Access as a database?

2001-09-18 Thread Arno Welzel
First you have to define a *system* data source (DSN) with the ODBC control panel applet - e.h. with the name "accessdb". Be sure, that *other* applications are able to use this data source as well, before you try to access via PHP (e.g. with Excel, which comes with a data query tool to import dat

  1   2   >