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] New Flash Chat Program

2004-07-30 Thread Matt Palermo
nformation here: http://sweetphp.com/nuke/modules.php?name=Script_Preview&script=6 As a thank you to all those who have helped me on here I am giving away 5 free copies of the program to the first 5 people who contact me about it. Thanks again for all your help guys. Great job! Matt

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 >

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

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

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.
On Thu, 19 Aug 2004 14:01:45 +0100, WebMaster. Radio ECCA <[EMAIL PROTECTED]> wrote: > I tried what you said but i get an eval error: > Parse error: parse error, unexpected '=' in /index.php(135) : eval()'d > code on line 1 > > ;( > > > - Original Message - > From: "Jay Blanchard" <[

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.
rtal, > si crees que hay algún enlace que deberia aparecer decidmelo! me llamo matt try this list: http://news.php.net/group.php?group=php.general.es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

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] 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] HTTP Authentication in include()

2004-09-02 Thread Matt Wondra
Howdy. I'm trying to include a file from an HTTP Authenticated server in PHP. I have a valid username and password. Is there any way to remotely login and include the file? Ex: include("https://www.url.com/incl1.php";); // Trying to include from password-protected site How do I get past the 4

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] gzip

2004-09-07 Thread Matt M.
> I have a file on my server that I want to compress in a php page i.e take file.txt > and add it to the archive file.zip. > > How the hell do I do it using gzip cant understand the manual, or is there another > way to create a zip file or other compressed file. > have you looked at http://pea

Re: [PHP] More on the credit card fraud

2004-09-07 Thread Matt M.
> The fraudulent orders that I receive on my site come with email > addresses of eight random alphanumerics @yahoo.com. preg_match('/[EMAIL PROTECTED]/', $email) should do the trick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() from addess problems

2004-09-07 Thread Matt M.
> How would I get this to change? I didn't see anything in php.ini or > httpd.conf. I've found it's not possible to do a header rewrite with > postfix either. There is examples in the manual http://us2.php.net/mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] foreach()

2004-09-08 Thread Matt M.
> Warning: Invalid argument supplied for foreach() in > c:\apache\htdocs\or_6.4.php on line 15 do a print_r on $_POST to see what is in the array. > > > BBQ Pork Bun > Chicken Bun > Lotus Seed Bun > Bean Paste Bun > Bird-Nest Bun > > > > > Selected buns: > > foreach ($_POST['lunch'] as $c

[PHP] Explode, Arrays and Checkboxes

2004-09-08 Thread Matt Winslow
ve $product[2], [10], [34] checked, with $price[2], [10], and [34] equal to "28", "15", and "16" respecively. Any help would be greatly appreciated. -- Matt Winslow [EMAIL PROTECTED]

Re: [PHP] problem with header("Location:home.php")

2004-09-09 Thread Matt M.
> the connection file I have included in every page. > why this error is occuring? check E:\PHPMySql scripts\bugtrack\connection.php for white space before or after -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax questoin

2004-09-16 Thread Matt M.
> $Msg .= "Test is complete" > > I'm thinking it means concatenate $Msg with "Test is complete" and then > store the new string into $Msg > > Am I right? you are correct, same as: $Msg = $Msg."Test is complete" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Matt M.
> > I'd like to sort the array based on one of the values in the field > > href, description, or time. Is there a canonical way of doing this? you might be able to use http://us2.php.net/manual/en/function.usort.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> > > > can anyone help? start looking here http://us2.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> >> I am new to php and xml and would like to know how I can set a > >> variable (i.e $terror_threat_level) equal to the value of > >> Threat_Advisory's Condition in the following that is available at > >> http://www.dhs.gov/dhspublic/getAdvisoryCondition ... > >> > >> > >> if you are using p

Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Matt M.
> Is it possible to have PHP dynamically build an HTML page (from database > data etc) and provide an option to output the page as PDF without going > through all the database query routine again? you could use output buffering. If they choose output as pdf, capture the html that was produced, ru

Re: [PHP] Re: Need help... getting information from external xml document

2004-09-23 Thread Matt M.
> As John noted at the end... I do not have control over the format of > the XML... but thanks I will try... BTW i am using PHP4 is > SimpleXML able to be used and if so how? I would just use John's regex idea, I am guessing (i could be wrong though, I have been many times before) that the for

Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Matt M.
> Thanks for that John, I think the big issue will be how to 'cache' my HTML > pages should I want to proceed down this route. BTW from memory I think the > 'product' was htmldoc, or similar. use output buffering, save the html into some kind of temp file -- PHP General Mailing List (http://www.

Re: [PHP] converting from name - id and PHP not seeing it?

2004-09-23 Thread Matt M.
> I jsut finished converting my pages to be W3C compliant... > One of the recuring 'errors' I had was my form elements were all using the > 'name' atrtribute... > apparently, this is bad, and I was suggested to switch them ti use the > 'id' attribute... if you want the info to be posted to the pag

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Matt M.
> Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A > > that one is using rawurlencode() but it's just as bad with urlencode - > How *should* I be doing this? is this how you tried to do it? $userAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; curl_setopt($c

Re: [PHP] spaces in select

2004-10-11 Thread Matt M.
> I have a select/option that gets populated with countries. The value of > these option are also set to the country name. The problem i have is > that some countries have spaces in them > > eg: United States of America. what doe your select loo like? something like this should work United Sta

Re: [PHP] Problem of varible

2004-10-11 Thread Matt M.
> When disable the globals varibles function, the following php can't be > good for working : this should point you in the right direction http://us2.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about array_search

2004-10-11 Thread Matt M.
> Say I'm trying to add a value to an array, only if it's not already in > there somewhere; so I do an array_search to see. The problem is that if > the item is at index 0 in the array, array_search gives the same answer > as if it's not in there at all. How does one circumvent this potential > pit

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Matt M.
> > $url='http://www.textx.com/t1/t2/t3/blah.html'; > > function ret_url($rel_path, $base = '') > { > $base_path = substr($base, 0, strpos($base, '/',7)); > > if(substr($rel_path,0,1)=='/' && > !strpos($rel_path,'/../')) > { return $base_path.$rel_path; } > > elseif(strpos($rel_pat

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-12 Thread Matt M.
> /../imgs/blah.jpg should return > http://www.textx.com/t1/t2/imgs/blah.jpg > > but its returning: > http://www.textx.com/t1/t2/t3/imgs/blah.jpg > > and this: /../../imgs/blah.jpg > should return: http://www.textx.com/t1/imgs/blah.jpg > > but its returning: > http://www.textx.com/t1/t2/imgs/bla

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Matt M.
> $filepath = "bla/bla/files/"; > $filename = "file.zip"; > $fullpath = "$filepath/$filename"; > > header( ' Pragma: '); > header( ' Content-Type: application/force-download' ); > header( ' Content-Type: application/octet-stream ' ); > header( ' Content-length:'.(string

Re: [PHP] detecting ssl

2004-10-13 Thread Matt M.
> It worked for me, for thousands of others, but not for everybody. Some people > just could not use the site anymore. So I guess the SERVER_PORT var can not > necessarily be count on. > > Has anybody an idea how to overcome this? try if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS'

Re: [PHP] reg. expressions

2004-10-13 Thread Matt M.
> on one place I have string "something (something_2)" > I have to take out of the string everything in brackets and brackets as > well. > probably I will need to use Regular Expression Functions but I'm really > bad with them :) $string = "something (something_2)"; $pattern = "/\(.*\)/"; $replace

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Matt M.
try an apache mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Matt M.
On Thu, 14 Oct 2004 10:52:20 -0500, BOOT <[EMAIL PROTECTED]> wrote: > OK thanks but I guess I didn't explain what I am trying to do properly. > > I need to be able to identify the variable name as well as pick the variable > with the lowest value. > > Something like this: > > Whose turn is it to

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> I am trying to set up a script that will do different things based on the > reffering page, without having to include the information in the URL. Does > PHP have a built in variable or function that would tell the rest of the > script what page the user came from? Any help is much appreciated.

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
> >> I am trying to set up a script that will do different things based on > >> the > >> reffering page, without having to include the information in the URL. > >> Does > >> PHP have a built in variable or function that would tell the rest of the > >> script what page the user came from? Any help

Re: [PHP] throw me a bone for a regexp please.

2004-10-15 Thread Matt M.
> Also if someone could direct me to a site that explains how to use and > create regexp in a small minded manor since I have been unable to > grasp the concepts. the regex coach has been a big help to me http://www.weitz.de/regex-coach/ you might find it useful -- PHP General Mailing List (h

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
> I'm setting up a credit card payment app. When I send the information > through the form I get a result similar to this: > > NOT CAPTURED:00:428930479495:NA:1015:9755676331042890:1:1 > > This is the only data in the result page. > > I have never done parsing, and I have no idea of how

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
> http://us2.php.net/manual/en/function.preg-split.php > > should do it also http://us2.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] splitting string into array

2004-09-29 Thread Matt M.
> Example, > A12B05C45D34 > > I need to split this into chunks of three A12,B05,C45..etc? not sure if your string will always be the same patter but this might work $string = 'A12B05C45D34'; $array = preg_split ( '/([a-zA-Z]\d{2})/', $string, -1,PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );

Re: [PHP] Session Variable Security

2004-09-30 Thread Matt M.
> Can anyone tell me how secure a session variable is. I realize that if > someone wanted to take the time to break into my site they will eventually > succeed, but I dont want to make it too easy. I have a database that stores > a username and an encrypted password which both are verifyed when t

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> I'm glad to hear that, cause some of them did seem a bit difficult. I > understood perfectly after seeing the correct answer and the > explanation, but they were a little tricky. I would be interested in feedback on the exam. I am looking into taking the test, just hoping Zend runs the $100 d

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 > > Enjoy. :-) I think I have it, why dont you email me the answer and I will double check that against what I got. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Matt M.
> This is just too easy: > > The shown times are posting-times for one day on this list, for posts > regarding mysql. ah ha. could also be unsubscribe emails -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Manipulation

2004-10-01 Thread Matt M.
> I would like to know if there is a way to have PHP determine the > dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide > or height have it scale it down proportionally to that width or > height? look at http://us4.php.net/gd -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Matt M.
> I'm trying to locate a PHP web host, preferably one running PHP 5, that also > supports the PHP payflow pro binaries? Anyone have any recommendations? have you tried google? http://www.google.com/search?hl=en&lr=&ie=UTF-8&client=firefox-a&q=PHP5+hosting+payflow&btnG=Search also, search the mai

Re: [PHP] Parse file and input into DB

2004-10-04 Thread Matt M.
> What I would like to do is upload a file and have PHP parse the file and > dump the information into a MySQL database, putting the information into > select tables. I believe I can do everything EXCEPT parse the page. > Anyone have some insight (or direct links) to some examples on what to > use

Re: [PHP] pdf_open_pdi_page

2004-10-06 Thread Matt M.
> *Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not > supported in this configuration in > *d:\worksheet-server\wss\html\pdf\test2.php* on line *7* I could be wrong but I think you need a special license for this functionality. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Push file to FTP Server

2004-10-06 Thread Matt M.
> Does anyone know how I might be able to have php push a file to an FTP > server? did you look in the manual or even try google? http://us4.php.net/ftp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> Do you have a source for your assumption ? to use pdi you need PDFlib Personalization Server (PPS) http://www.pdflib.com/products/pdflib/pps.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Muti-Dimensional Array Help Please

2004-10-07 Thread Matt M.
>$max = ($max >= count($ips) ? $max : count($ips)); if ($max >= count($ips)) { $max = $max; } else { $max = count($ips); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> I was on that page. > There's nothing which comes close to your assumption. sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? here is an assumption. I assumed you would read the pdflib manual, did you see? Note All functions described in this section require PDF

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? I mean you "do need" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matt M.
> My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. :) real sites use iis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] fopen and http://

2004-10-08 Thread Matt M.
> But I don't understand why I am getting that error about failed to open > strem: HTTP request failed, when I can bring up the links fine in a > browser on the server running the php script. So can anyone help me out? > Thanks do you have allow_url_fopen enabled? http://us4.php.net/manual/en/r

Re: [PHP] URL verification

2004-10-08 Thread Matt M.
> how can i check in the page if the user is accessing the the site via SSL ?? > or i have to put a redirect in the page anyway, whether the user is > alredy accessing the page via SSL? if it has to be https, why not just use mod_rewrite to make sure it is. With php you could check $_SERVER['SERV

Re: [PHP] Grab an array from a cookie without throwing errors?

2004-10-08 Thread Matt M.
> $cookie = $_COOKIE['bookmarks']; > if(unserialize($cookie) == true) { > $bookmarks = unserialize($cookie); > } else { > $bookmarks = array(); > } if (isset($_COOKIE['bookmarks'])) { $cookie = $_COOKIE['bookmarks']; if(unserialize($cookie) == true) { $bookmarks = unserializ

Re: [PHP] header redirect with POST?

2004-10-08 Thread Matt M.
> Is it possible to have a form where I post variables to a processing > script which would then redirect to another form have variables posted > from the processing script? I am researching the HTTP header things as I > write this, but have not found a viable answer that is PHP only. I dont know

Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Matt M.
> I'm implementing mass mailing program...as there are hundred's of users that receive > mails...as a result i'm getting this error... > > Fatal error: Maximum execution time of 30 seconds exceeded in > d:\phpsites\ac\asc\acendo on line 42 take a look at http://us4.php.net/manual/en/ref.info.

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Matt M.
> @session_start(); > session_name("userauth"); > $_SESSION['SESS_CUS'] = $user_id; I am not 100% sure what the problem is, but if you are trying to change the session name to userauth, I think you need to do that before session_start http://us2.php.net/session_name -- PHP General Mailing List

Re: [PHP] Session

2004-10-19 Thread Matt M.
> I am trying to make my pages last for only 1 minute but I am not been successfull. > > I have already changed session.cache_expire = 1 in php.ini (USING RedHat) but > nothing happens. > > I would like the pages to last only for 1 minute, this means that if the user do not > use the site withi

Re: [PHP] CPU usage @5% during 2 minutes SOLVED

2004-10-20 Thread Matt M.
> The thing was: > The new, 20 year old administrator guy set all clients to use the local > network via the proxy. And the proxy wasn't able to handle the approx. > 1,5MB huge web pages. good that the problem is solved. Not sure if you know or not but you could probably cut the size of the page

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> which works great except I have been getting some 403 > access denied errors for some sites, checking I see > that they are protected by a htaccess file (that > checks the referrer) so i tried putting > > header('referer: domain') > > where domain is the parse_url['host'] of $remote_file > but

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> Nope, no PEAR allowedany other options? curl, Is that available to you? http://us2.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> > Nope, no PEAR allowedany other options? also http://us2.php.net/fsockopen check the user comments for setting referer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
> Hi Matt, > Yep, cURL is available but I was going through the > manual for curl (and google too suggests that might be > my best option)...but it does not look very easy to > learn :-( It is not to bad. Go through the php manual and look at the examples. That should help. If

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
try this function, I lifted almost all of this stuff off of the manual and the zend site function check_link($link , $referer='') { $main = array(); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $link); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_NOBODY,

Re: [PHP] currency

2004-10-22 Thread Matt M.
> > What is the best way to output 38884 as $38,884.00? > > > > > > number_format() or http://us2.php.net/money_format -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function_exists question

2009-01-16 Thread Matt Pagel
recision parameter was added in php4, so will not work in php3. However, function_exists would return TRUE for both 3 and 4, but round itself would fail if I tried to send a precision level to the php3 server. Thanks much, Matt P.S. Of course the modified "function_exists" would

[PHP] Sanitizing Numbers

2009-03-13 Thread Matt Neimeyer
umeric field. Thanks for your collective guidance. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading from a COM port in Windows blows up

2009-03-14 Thread Matt Neimeyer
I just recently got a new Onkyo TX-SR706 Audio Receiver that has an RS232 interface and I thought... cool... Build a Web Interface so I can control it from several rooms away. The code below works using PHP 5.2.8 under Apache (XAMPP) on Windows XP to change the current input of my Audio Receiver.

Re: [PHP] Problems with implode

2009-03-24 Thread Matt Neimeyer
Yeah, like the odd backspace or carriage return perhaps. I can't tell you how many times I've had data that contained < and got all kinds of screwed up when data "disapeared" when really the browser was just turning it into an HTML tag. Matt -- PHP General Mailing List

Re: [PHP] Connecting to dBase using ODBC on Mac OS X

2009-04-12 Thread Matt Neimeyer
ilable Novell network file redirectors. At least that's what the Client's IT department tells me whenever we relay user complaints about the speed at that site) Hope this helps. Matt On Thu, Apr 9, 2009 at 10:53 AM, Rahul S. Johari wrote: > Ave, > > Does anyone have any knowle

[PHP] Boolean Parameter to 3 Options?

2009-04-29 Thread Matt Neimeyer
} Something about that disturbs me. Perhaps because any time I think "Oh it will be as simple as..." it usually isn't. Thanks in advance! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean Parameter to 3 Options?

2009-04-29 Thread Matt Neimeyer
On Wed, Apr 29, 2009 at 1:30 PM, Shawn McKenzie wrote: > Philip Thompson wrote: >> On Apr 29, 2009, at 11:42 AM, Matt Neimeyer wrote: >> >>> I have a function that currently takes a boolean value as a parameter. >>> But now I want to expand it to 3 options...

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Matt Graham
here are so many unknown >variables that I would really feel for the poor team who had to take >that project on! It sounds like whoever defined the requirements was trying to solve a problem in the wrong way. Why drag physical media into this when you have the Net available? And if the clie

<    6   7   8   9   10   11   12   13   14   15   >