[PHP] Cannot "view source" via IE browser

2001-05-20 Thread John M
call this error happening JUST AFTER I installed. I think I could for awhile and then all of a sudden I could not. I am posting this question in a few other PHP newsgroups as I am unsure where this would fall under: php.dev php.doc php.general php.windows Thanks to anyone who can assist. John

[PHP] checkboxes vs text filed array and hidden variables

2002-01-14 Thread m. ali
Hi my problem : i have to pass the price, and part number which i get from the database to the shopping cart so when i select some of the items by checking the checkboxes and submit the form i get only the last item in the list i use hidden variables to pass these values to shopping cart. my co

[PHP] Redirection and Passing Data (arrays)

2002-01-15 Thread m. ali
hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works fine

Re: [PHP] Re: Redirection and Passing Data (arrays)

2002-01-19 Thread m. ali
the login script thanx "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ...or echo some hidden inputs in the login form? > > Julio Nobrega Trabalhando wrote: > > > session_register('array_of_select

[PHP] $PHP_AUTH_USER

2002-04-20 Thread Alec M.
Hello, I have trouble unseting the values of $PHP_AUTH_USER and $PHP_AUTH_PW. I use the WWW-Authenticate via header() to authorize the user when accessing the page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to remain and the user isn't asked again to authorize till a new br

[PHP] Sorry, this is relate to subscription problem but cant solve it

2002-04-25 Thread M VM
Hello, sorry this off-topic msg but I don't know how to solve subscription problem to this list. Due yahoo email changes (no more pop services), I am trying to subscribe this list using alternate email address ([EMAIL PROTECTED]) but receive = Hi. This is the qmail-send program at pb1.pai

[PHP] Re: Form ID name

2002-04-07 Thread M Green
If you are using a function as an easy way to add links to your page, i'd recommend that you define a function that echoes in that manner. /Mattias "Morten Nielsen" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I got a table where I have some ima

[PHP] import_request_variables() is undefined!?

2002-04-07 Thread M Green
When i just migrated to linux instead of win2k the function import_request_variables() is not defined anymore. I used 4.1.2 in win2k and 4.0.6 now under linux. I was wondering if it had to do with the versions or someting. Seems odd. Very tankful for any help that might get me to solve the probl

[PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
Php works in general (phpinfo()). The gd-lib however will not work for some reason. I tried extension=libgd.so in php.ini without any result. Anyone familiar with this problem? /M Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
gt;in php.ini without any result. > > > >Anyone familiar with this problem? > > > >/M Green > Too few arguments ;-) > Did you already compiled GD ? > Did you compile php with gd support? > Oliver > I just followed the instructions on php.net for apache servers and c

[PHP] Redirecting Using Header{} Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that s

[PHP] Header Refresh Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that s

[PHP] PHP File not found

2001-10-25 Thread Chris M
Hi, I have just set up PHP on my webserver (IIS 4 on NT4). I have set up the script mapping so that I can save php files as .html and php processes them. This works fine until someone goes to a page that doesn't exist - instead of getting the customised error 404 page (i.e. the page you requeste

Re: [PHP] PHP File not found

2001-10-26 Thread Chris M
The only pages that are getting this error are the ones that php is mapped to parse (i.e. .html .php .phtml) if I go to a page that doesn't exist with a .htm or .cgi extension etc it works fine and I get the standard IIS 404 error page. But when it is a page that php processes thats when the CGI

[PHP] problem finding out original filename while using php to upload.

2001-12-16 Thread Neil M
the file was ? like .jpg , .png etc. Any help appreciatted , i am really stuck on this ;0) Thanks Neil M -- 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]

[PHP] Betr.: [PHP] where to get info on developing web e-mail

2001-03-27 Thread M. Verheijen
Dear Khai, If you're planning to your webmailapplication in PHP visit www.phpposta.com. Right now it's in a developing stage but you can download the code and have a look at it. Ofcourse it's GPL, if you make some additions, changes in the code please let me know! Best regards, Maarten Verheij

[PHP] Betr.: [PHP] Page Counter

2001-04-02 Thread M. Verheijen
Dear Wendy, Check out http://www.hotscripts.com/PHP/Scripts_and_Programs/ You should all you the scripts you'll need here!, still some problems? Let me know? Best regards, Maarten Verheijen MvG, Maarten Verheijen T/EXP kamernummer C558 Telefoonummer 4559 >>> Wen Ni <[EMAIL PROTECTED]> 02-04-

Re: [PHP] log.

2004-07-23 Thread Matt M.
> I am learning php. > I need to log all actions on my page. (like ip, browser, time, pages etc). > question is: how can i identify a user and when he is on my page(s) to log > all his actions. Along with the other stuff posted, take a look at http://phpsniff.sourceforge.net/ -- PHP General Ma

Re: [PHP] strlen question

2004-07-23 Thread Matt M.
> the form is separated into 5 sections and if there are no items filled out > in that section, then i need to hide the title too. > > I have been playing around with the syntax and am not having any > success...any suggestions? > > here is a sample of what i am trying: > > 0) { ?> > >

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Matt M.
> PDF Lib is very COOL , its give you ability to encrypt an existing pdf file > its give you a powerful method to import pages from an existing pdf file and > do some thing on it , its have only one problem very expensive price for > full power . > if they only split php version annd change the pr

Re: [PHP] HTML Escaping

2004-07-23 Thread Matt M.
> Needless to say, the href is quite long and includes several "'" > characters. My conditional works great but I want to know if there is an > easy way to escape the whole href so that the "'" characters will not be > seen as PHP quote marks. See below... urlencode will escape the quotes -- PHP

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Good solution, but the problem is once the program is > completed it goes out of my hands and most prolly the > client wont know the exact paths, the templates folder > would *always* be one below...but the path before the > /templates will change. if you dont know what directory it will be in,

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Have you tried > > $_SERVER['DOCUMENT_ROOT'].'/'; > sorry, I meant include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] INSERT INTO using foreach

2004-07-23 Thread Matt M.
> foreach($_POST as $key => $value){ > if($key == 'Submit'){ > exit; > } > else{ > $sql = "INSERT INTO registration ('$key') > VALUES ('$value')"; > $result = mssql_query($sql); > } > } not sure if wrapping columns names in single quotes is valid mssql, try: $sql = "INSERT INTO

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> I've got a field in my database that contains a single numerical character > ("1" or "2" or "3", etc.). I need to load a different background image in > one cell of a table depending upon what the number the field contains. > What's the easy syntax for associating entries in the field ("1" or "2"

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > > You got it... > > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", > "3" => "bkgrnd-negative.gif"); > imgNeeded = table['field']; > imgName = ??? >

Re: [PHP] which user is a script executing as?

2004-07-23 Thread Matt M.
> How do I determine with which user's permissions PHP scripts are executing? > > I am experimenting with suEXEC and running PHPs as CGIs; I need to know > with which user's permissions PHP scripts are executing. > > I've tried using getmyuid() and get_current_user(), but these only report the >

Re: [PHP] Is there a brian I can pick?

2004-07-26 Thread Matt M.
> I need to kill that extra Texas and Virgina.here's how I'm doing this: > > > $query=mysql_query("SELECT DISTINCT state FROM members WHERE > country='US' ORDER BY state ASC"); > while($q=mysql_fetch_array($query)) { > $q1=mysql_fetch_array($query); > $q2=mysql_fetch_array($query); > $q3=mys

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Matt M.
> --snip-- > $char_code = strpos($char_set,(substr($input,$loop,1))); > --snip-- even a little shorter $char_code = strpos($char_set,$input{$loop}); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing PEAR on Windows

2004-07-27 Thread Matt M.
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ > www\pear\Archive\Tar.php on line 21 > > Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM > E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line > 21 > p

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matt M.
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén <[EMAIL PROTECTED]> wrote: > I am correcting myself... > > class foo {} > > $oObjectA = array(); > $oObjectB = array(); > > for($i=0;$i<2;$i++) { > $oObjectA[$i] = new foo(); > $oObjectB[$i] = $oObjectA[$i]; > } > > unset($oObjectA[1]);

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> My web host recompiled php with the freeTDS library for me so that I can use > the php mssql extensions but it still doesn't seem to work. He has told me > that I can change the configuration file...what needs to be done? any error messages? Can you use tsql to connect to the mssql databases?

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> I was simply using a script which attempts to use the mssql_connect function > yet I still get the error that it is undefined > > http://mwvre.ht-tech.net/dbtest.php if you do a phpinfo() do you see any mssql information? php needs to be compiled with freetds http://us4.php.net/mssql --

Re: [PHP] perl LWP for PHP?

2004-07-27 Thread Matt M.
> I'm familiar with perl's LWP library. Today I searched through the PHP > documentation, but the only thing I found that was somewhat similar to > LWP was file() and some socket-functions to do http-GET/POST calls to a > foreign server. Are any higher level functions available so I don't have > to

Re: [PHP] Sessions Timeout

2004-07-27 Thread Matt M.
> Problem is that when someone goes so far in the ordering process, and then > (for whatever reason) leaves the site, and comes back hours, seconds or > whatever later, and goes again to place an order, the details are different > (time), and the session stays the same so the order entry is entered

Re: [PHP] Array assistance

2004-07-27 Thread Matt M.
> Ten separate arrays with an array at 0 that has the data I'm after. > This is where I'm getting stuck. How can I get to the keys that are > either 'mc' or 'truefalse' and sum them? foreach my man http://us2.php.net/foreach foreach ($_SESSION['arans'] as $arans) { $truefalse += $arans['truefals

Re: [PHP] Session Expiration Timeout

2004-07-28 Thread Matt M.
> I've been looking for about changing somewhere the session exiration > time, but only found about the session cookie expiration. > - Wich is the default timeout for a session? And, is some way to know > the expiration time for a session? Take a look at the ini variables. http://us2.php.net/ses

Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Matt M.
> unset($_COOKIE['foo']); > > And also > > $_COOKIE['foo'] = ''; Are you trying to delete the cookie on the client side? if so try: setcookie ('foo', '', time() - 3600); http://us2.php.net/setcookie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Matt M.
> No. I'm trying to delete it from PHP memory, but keep the cookie on their > client in the cookie.txt file or wherever it's stored. > > The idea is for added security. I just don't want traces of it around after > the initial login. I am not sure about deleting a superglobal, but even if you do

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Matt M.
> I would rather not put it into a file as it will be changing in real time > dynamically so it would put some strain on the filesystem. All I really want to > do now is just stick it into a string variable. How could I do that? you could just use http://us2.php.net/file_get_contents -- PHP Gen

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Matt M.
> I'm in the process of building an application that has an adminstration > back-end shared by multiple sites. I need to maintain a persistent session > across these sites to properly identify users. I'm using a db to store the > session data but when switching from site to site, a new session_id i

[PHP] Re: regex help needed

2004-08-01 Thread M. Sokolewicz
You could try something like: $return = preg_replace('#(.*)#Uie', 'str_replace("", "", "$1")'); - Tul Kathleen Ballard wrote: Sorry, Here is the code I am using to match the tags: .* I have removed all the NL and CR chars from the string I am matching to make things easier. Also, I have run tidy

Re: [PHP] php coding software

2004-08-02 Thread Matt M.
On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski <[EMAIL PROTECTED]> wrote: > Does anyone know any good software for PHP/mysql coding? I currently use > DreamWeaver MX, however it doesn't have much PHP support, and no MySQL > support. I just want an easy program to script in, and upload on to my >

[PHP] Re: langauage error

2004-08-02 Thread M. Sokolewicz
try using htmlentities() - Tul Me2resh wrote: i am using a form to enter articles into mysql databse in Arabic language when i enter the data from Phpmyadmin it converts the letters to the unicode they match like يبلي but when i enter it from my form it returns strange letters which is not usefu

Re: [PHP] multiple checkboxes

2004-08-02 Thread Matt M.
> How would I get all the boxes check when "grouping" them by using the > same name for all checkboxes in the name field? there are a number of ways, try: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Spellchecking using MS Office spellchecker

2004-08-02 Thread M. Sokolewicz
well, you could use the win32std extension (found in PECL), connect to the right dll and then you could feed it and get stuff back from it. Exact data on the way to handle the connection would be available via MSDN (msdn.microsoft.com). when using 4.2.0 <= PHP <= PHP 4.2.3 you could also try th

Re: [PHP] multiple checkboxes

2004-08-03 Thread Matt M.
> Keeping the name the same makes them a RADIO button and you will only > get the last one. this is not true -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: webserver response-time, how?

2004-08-04 Thread M. Sokolewicz
Tobias grønlund wrote: Im trying to find a way of getting the responsetime from a remote webserver before it actually starts sending some output for your browser to read. Any ideas?? try timing the fsockopen() or (whatever you use) call. :) That'll give you a reasonable estimate. - Tul -- PHP G

[PHP] Re: sessions not working when page redirects

2004-08-10 Thread pete M
u need to start the session at the top of each page sesion_start(); Angelo Zanetti wrote: Hi all, Im having a slightly weird problem with my session variables. when on a certain page call it "A", I register a session variable and assign it a value. I then test if it is registered successfully and

[PHP] Re: Image and variable

2004-08-10 Thread pete M
$myimage = 'hi.gif'; echo ""; Henri marc wrote: Hello, I would like to use a variable instead of an image file name in a html page with this instruction: '; ?> I tried but the image doesn't show up. Is it impossible or do I do something wrong? My goal is to have a random image print in the page, th

[PHP] Re: SQL Functions

2004-08-11 Thread pete M
This might be slightly off the topic but I would recommend you use a database abstraction layer which will do what you want to achieve Check out Pear DB http://pear.php.net/manual/en/package.database.db.php and adodb http://adodb.sourceforge.net/ pete Dan Joseph wrote: Hi Everyone,

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
> if (session_is_registered($_SESSION['login'])) > echo("seesion is reg"); > else > echo("seesion not reg"); try if (isset($_SESSION['login'])) echo("seesion is reg"); else echo("seesion not reg"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
On Mon, 16 Aug 2004 17:39:21 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > ok I thought the problem was fixed but its not. The session variable > gets registered correctly however when I go to the next page and too see > if its still registered using the isset() function its not registered > a

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
> session_write_close(); > header("Location: franchise_menu.php?".SID); > exit(); SID will be empty if session ID was set in an appropriate session cookie if you do a print_r($_SESSION) on franchise_menu.php do you see anything? If you have access to the webserver you could just go in and look a

Re: [PHP] getting an array out of the POST array

2004-08-17 Thread Matt M.
> while (list ($key, $val) = each ($_POST[firstname])){ > $_POST[firstname][$key] = trim($_POST[firstname][$key]); > $_POST[middlename][$key] = trim($_POST[middlename][$key]); > $_POST[lastname][$key] = trim($_POST[lastname][$key]); you might be able to get this one yoursel

Re: [PHP] preg_match question

2004-08-18 Thread Matt M.
On Wed, 18 Aug 2004 17:16:24 +0200, Nicklas Bondesson <[EMAIL PROTECTED]> wrote: > Hello, > > How do I find an exact match of a string with preg_match? > > Example: > > String1: www.test.com/ > String2: www.test.com/somepage.php?param1=true > > How do you write the regexp to only return String

Re: [PHP] form items lost their values when start using sessions

2004-08-18 Thread Matt M.
On Wed, 18 Aug 2004 14:35:19 -0700, Leticia Campos <[EMAIL PROTECTED]> wrote: > Why since I put session_start(); in my php code the input items lost values > previously entered if user goes back to the form page? might have something to do with session.cache_limiter , get rid of it and see if you

Re: [PHP] Delete a file after it has been downloaded?

2004-08-18 Thread Matt M.
On Wed, 18 Aug 2004 23:56:57 +0200, Yngve <[EMAIL PROTECTED]> wrote: > Hi! > > I wonder if it´s possible (and how) to delete a file after it has been > downloaded, without running anything on the server except for the PHP page > which the user gets the file from. > > If it is not possible, i wond

Re: [PHP] Links with parameters in DB

2004-08-19 Thread Matt M.
nip] > It doesn´t work, I have other fields in the DB apart from the field 'Link', > so if I use > $link = eval($result); > I get a parse error. Apart from that, I have to write the name of the field > (link), if not the server won´t know the field I´m refering to. > [/snip

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Matt M.
On Thu, 19 Aug 2004 16:50:28 -0400, Don <[EMAIL PROTECTED]> wrote: > Hi, > > I have a PHP file containing the code below. It works great when all > default setting exist in IE; each time I click on refresh, the session > variable is incremented and displays on the screen. If I change my browsers

Re: [PHP] Nueva web necesita enlaces php

2004-08-19 Thread Matt M.
On Fri, 20 Aug 2004 03:30:28 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Apreciados colegas, estoy desarrollando una web en php que si bien no es muy > complicada espero sea útil. > > Se trata de http://www.rutaweb.com/ > > La web principalmente está dedicada a enlaces de calidad pero

Re: [PHP] How to destroy session ID

2004-08-20 Thread Matt M.
On Fri, 20 Aug 2004 03:23:48 -0700 (PDT), khuram noman <[EMAIL PROTECTED]> wrote: > hello > > i have problem in destroying session id, i use the > following code > > session_start(); > print "before Destroy".session_id(); > session_destroy() ; > > session_start(); > print "After Destroy".sessio

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread Matt M.
> = Start of Code = > session_start(); > header("Cache-control: private"); //IE 6 Fix > if(!$_SESSION['count']){ > $_SESSION['count'] = 1; > $sid = session_id(); > echo 'Session is: ' . $sid . ''; > } else { > $_SESSION['count']++; > } > echo 'You have visited pages so > f

Re: [PHP] PHP 5.01 and HTML

2004-08-20 Thread Matt M.
> >$db = new COM("ADODB.Connection"); > $dsn = "DRIVER=SQL Server; SERVER=D63WV941;UID=sa;PWD=sa; > DATABASE=BINDER"; > $db->Open($dsn); > $rs = $db->Execute("SELECT * from company"); > while (!$rs->EOF) > { > $Name = $rs->Fields['Name']->Value

[PHP] Re: Reading the documentation

2004-08-22 Thread M. Sokolewicz
Octavian Rasnita wrote: Hi all, I have 2 questions: 1. Do PHP libraries have a documentation included inside of them like in case of Perl's modules? 2. If yes, how can I read that documentation? Thank you. Teddy that would depend on what you understand under the term "PHP libraries", if you mean t

[PHP] Re: Sending email

2004-08-22 Thread M. Sokolewicz
Octavian Rasnita wrote: Hi all, I want to send a test message with the following specifications: 1. The message is sent by [EMAIL PROTECTED] 2. The message is sent to the following recipients: [EMAIL PROTECTED], [EMAIL PROTECTED] 3. The message has the subject: [EMAIL PROTECTED] 4. The message has

Re: [PHP] Error message

2004-08-23 Thread Matt M.
> Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' > in D:\utf8php5\config.php on line 16 > > What can I do about this? include PEAR::DB before you include this config file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Re: Determine if a property in a class is public, protected or private

2004-08-25 Thread M. Sokolewicz
Erik franzén wrote: Is it possible to determine if a property inside a object is public, protected or private in PHP 5? /Erik use the (undocumented) Reflection API -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exploding

2004-08-25 Thread M. Sokolewicz
Jake McHenry wrote: Hi everyone. Is there a way to explode by every character in the variable? Example: $var = "8"; $test = explode("", $var); output would be $test[0] = 0; $test[1] = 0; $test[2] = 0; $test[3] = 0; $test[4] = 8; Can I get an array like that? Thanks, Jake McHenry MIS Coordinato

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Matt M.
> function http_post($host, $path, $data) > { > $http_response = ''; > $content_length = strlen($data); > > $fp = fsockopen($host, 80); > fputs($fp, "POST $path HTTP/1.1\r\n"); > fputs($fp, "Host: $host\r\n"); > fputs($fp, "Content-Type: application/x-www-form-u

Re: [PHP] Keep from using cache

2004-08-26 Thread Matt M.
> Here's the problem... > After a deletion, when the question list page is reloaded, the browser uses > the cached version of the page and the question which was just deleted is > still displayed. If you refresh the page, the question disappears. So, I > know that the deletion is working. I just ne

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread Matt M.
On Fri, 27 Aug 2004 03:18:31 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > go and take the practice test and find out. It is late and I am probably just missing it, but how do you take the practice exams? Do you have to buy something before you can take them? Anyone know? -- PHP General Mail

Re: [PHP] Problem with sessions

2004-08-26 Thread Matt M.
> but when I use PHP's header("location: b.php"); expression a new session is > created and the data from the previous one is lost. Anyone familiar with > this problem? Any known solutions? It's been really driving me nuts! you sure the cookie is being set? try this header("Location: http://"; .

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread Matt M.
On Thu, 26 Aug 2004 21:52:12 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: > The site has a spot where you can search for locations in your area that > give the test. Buy a voucher and then call the nearest place giving the > test and schedule to take it. I was thinking there was (hopefully free) pr

Re: [PHP] Include if file exists?

2004-08-27 Thread Matt M.
On Fri, 27 Aug 2004 12:16:32 +0200, Jay <[EMAIL PROTECTED]> wrote: > Hi! > > Is there a ready to use PHP function for including ONLY if the file exists? > > I tried it like this: > > [main.php] > include_once("lib.php"); > .later > includeIf("somefile.php"); > > [lib.php] > function include

[PHP] Re: crypt()

2004-08-27 Thread M. Sokolewicz
Jasper Howard wrote: you can use md5() which will create an encrypted string that's not entirely true, all it will do is compute the md5-hash of that string. Which is *always* a 32-character hexadecimal number (though before PHP5.0.0 it was returned in a different way). The big difference betwee

[PHP] Re: Open a stream to the shell..

2004-08-28 Thread M. Sokolewicz
As of PHP 4.3.0 you can use the proc_* functions (proc_open & proc_close in PHP 4.3.0+ and proc_get_status, proc_nice and proc_terminate as of PHP 5). If you don't have access to that, you can use the following: use shell_exec to create a process, and make it send all output to some temporary f

[PHP] Re: Variable variables

2004-08-28 Thread M. Sokolewicz
Janbro wrote: Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I rec

[PHP] Re: Newbie. Posting to backend MySQL database

2004-08-28 Thread M. Sokolewicz
Aidan wrote: Please help, I'm tearing what remains of my hair out here. I've got a MySQL database where I've defined one of the table fields as an integer. Using PSP I've passed a session variable and can echo it to the screen using . So the session variable exists and can be echoed I now want to

[PHP] Re: Problem sending mail

2004-08-30 Thread M. Sokolewicz
Zoran Lorkovic wrote: $file = file_get_contents("text.inc"); $start = "[start]"; $end = "[/end]"; $pos_start = strpos ($file, $start); $pos_end = strpos ($file, $end); $data = substr ($file, $pos_start, $pos_end); mail ("[EMAIL PROTECTED]", "My Subject", $data); This

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread M. Sokolewicz
next time, please read the isset documentation carefully. I quote: [quote]isset() will return FALSE if testing a variable that has been set to NULL.[/quote] Catalin Trifu wrote: Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the class OO there is onl

[PHP] Re: xml tags interfere with php tags

2004-09-01 Thread M. Sokolewicz
Josh Close wrote: How do I get an xml tag to work with a php script? php is trying to parse that. -Josh turn OFF short_open_tag in php.ini, or using the PHP_FLAG short_open_tag Off in your apache .htaccess file (if you're using that). -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Matt M.
On Wed, 1 Sep 2004 13:08:11 -0500, Josh Close <[EMAIL PROTECTED]> wrote: > How do I get an xml tag to work with a php script? > > > > php is trying to parse that. you could just echo it at the top ';?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Checkbox Question

2004-09-02 Thread M. Sokolewicz
Stephan Fiedler wrote: Hi Nick, Nick Wilson wrote: Hi all, [...] so, what is it? a= [...] if a was checked "a=on" is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan that actually depends on the browser. Mayne browsers send a= when it's not checked (meani

[PHP] Re: Assign null value using php

2004-09-02 Thread M. Sokolewicz
T Umashankari wrote: Hello, Can any one tell me how to assign a null value to a php string?. I tried assigning empty single quote,backslash with zero,double quotes also. but nothing works.. Regards, Uma $var = null; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Re: Assign null value using php

2004-09-02 Thread pete M
T Umashankari wrote: Hello, Can any one tell me how to assign a null value to a php string?. I tried assigning empty single quote,backslash with zero,double quotes also. but nothing works.. Regards, Uma $str = NULL; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] php does not get variable values in POST method

2004-09-02 Thread Matt M.
> I developed an html/php form in a Php version 4.0.6, working fine, but when > a moved the files to another web server with Php 4.3.2 the file > procesaadmision.php called in the Post method does not get any of the input > html variables defined in the calling form. > I am guessing register_glo

[PHP] Re: List Slow?

2004-09-02 Thread M. Sokolewicz
John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) 1.5 hours for me... and many more people I'd guess... Judging by the incredible amount of duplicate answers t

[PHP] Re: Call to undefined function imagettftext()

2004-09-03 Thread M. Sokolewicz
Paul Reinheimer wrote: While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). The PHP Manual states that the function is available in PHP 5 (http://www.php.net/manual/en/function.imagettftext.php), and I have compiled with GD suppo

Re: [PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Matt M.
> $pdfdoc = $__BASE_PDF_BUILD_DIRECTORY.$_GET['FID']; > > $filesize = filesize($pdfdoc); > header("Pragma: "); > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); > header("Content-type: application/pdf"); > header("Content-Length: ".$filesize); > header("

Re: [PHP] how can I get the fileversion?

2004-09-03 Thread M. Sokolewicz
Pedro irán méndez pérez wrote: Thank you for your help, My question is: How can I know the version of a file, I mean, in Windows if you press click with the mouse right button you can see the file properties, that is correct in those properties you can see the version. you can? I can't find any me

Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
Nick Wilson wrote: * and then Dre declared first of all thanks for ur reply you're most welcome there are no white spaces before the See the other reply, that sounds like it.. i was unaware of this... is there a special format for writing paths in the php.ini file .. as I do believe that I

[PHP] Re: Unable to open word document.

2004-09-04 Thread M. Sokolewicz
Cbharadwaj wrote: Hi, I am asked to generate reports on MS WORD. OFFICE 2000 is installed in mechine. when I am calling a PHP page containin this code. $word = new COM("word.application") ; I am getting following error. Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF-00

[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely

2004-09-04 Thread M. Sokolewicz
I think you didn't read all instructions we gave. One of them was to remove all spaces and/or newlines BEFORE the first anything before the PHP starts processing PHP encounters spaces and/or newlines PHP sends headers to the browser PHP sends those spaces and/or newlines to the browser PHP not

[PHP] Re: Would you help me ?

2004-09-04 Thread M. Sokolewicz
Manoj Kumar wrote: hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.

[PHP] Re: New module Entry issue ..

2004-09-04 Thread M. Sokolewicz
Manoj Kumar wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will av

Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
jeez.. stop using so many capital letters... it's considered as "yelling" or "shouting" when you do that. Are you prepending any file? (php.ini/.htaccess file.prepend setting) Dre wrote: YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my ph

Re: [PHP] can PHP talk to mail server?

2004-09-04 Thread M. Sokolewicz
Raditha Dissanayake wrote: See Kok Boon wrote: Hi experts, I would like to write a script to read mails directly from the mail server and extracting the information, create "custom" auto-responders automatically. Is this possible? Start by reading about the imap functions but you cannot create

[PHP] Re: interface problem in PHP5

2004-09-04 Thread M. Sokolewicz
you could however always call: $a->__destruct(); that would also kill $b and $c Erik franzén wrote: If you want to delete an object, when you have other references to it, you must use the & operator, otherwise the object will not be killed for all references. I tested without the &-operator, but

[PHP] Re: array_merge changed behaviour in Php5??

2004-09-05 Thread M. Sokolewicz
You can find more info about this here: http://www.php.net/manual/en/migration5.incompatible.php I2eptilex wrote: Hi, I came across a strange behaviour in array_merge since I installed php5. I merge three arrays, one of them can be empty. So not an array at all. In php 4.3.6 that I had before, ther

<    1   2   3   4   5   6   7   8   9   10   >