Re: [PHP] Sessions not working on Linux - Apache
>> What version of PHP? How are you 'setting' session variables? Version 4.2.2 $_SESSION[test] = 'testData'; Cheers Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions not working on Linux - Apache - FOllow Up
Have looked at this more and can now tell you that this is definatley down to the server not writing any contents into the sess_nnn file. Does anyone have any ideas why this would happen? I've checked all permissions and tried changing the save_path to another folder that I created specifically for the sessions with global write permissions this had no effect. Made sure the $_SESSION[name] had ' - $_SESSION['name'] made no difference. (Thanks though) Any help really appreciated. Zac Running on apache 1.3 session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = i session.auto_start = 0 session.cookie_lifetime = 0 session_start() is included in the top of each page. When I test session files are being written into the /tmp folder and the session variable is corerctly added to the url when moving to another page, BUT the sessions do not appear to be working? I can set a session var on one page and display it there but when moving to another page the session var is no longer available? If I look in the tmp folder a relevant sess_nnn file is there but contains no data. I've checked permissions and the /tmp folder is world writable and the sess_nnn file is owned by the web server and is writable? Can anyone suggest what to test next or where the problem may be? Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] URL Encode to send as form POSTed Items
Hi All, I would like to know if it's possible to use php to encode form variables as if they had come from a post form instead of a get form. I imagine I need to place them into a header but cannot find much to read that gives any information on this. I need to create form variables and than use header location to direct the user to another page that will process the form. I'm posting to another site which is why i have to use form variables. I would like to avoid using JavaScript as this takes longer, will not work on all machines. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Free WEB Hosting with PHP and MySQL support
easyDNS.com provide a dynamic dns solution to your problem Zac - Original Message - From: "crimix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 10:03 PM Subject: [PHP] Free WEB Hosting with PHP and MySQL support > Unfortunatelly I changed my ADLS setting from IP static to IP dynamic > and now nobody, me too, can access to my data. > My question is if exist a Free WEB Server where I can place my data > using PHP and MySQL support? > Thank you and have a nice day > > Tiziano Crimella - Switzerland > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] global variables without sessions on apache
Hi, Is it possible using php on our own apache server to create global variables for virtual host without having to use session variables. We would like to have three variables that are constant for each virtual host and that are available from every page, I thought it would be possible with htaccess or http.conf but am struggling to find documentation for it. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global variables without sessions on apache
Jason, Could you expand on this a little more? I've tried searching for auto-prepend in both php documentation and apache and cannot find anything thats relates to our needs. Thanks for your help Zac - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 2:46 PM Subject: Re: [PHP] global variables without sessions on apache > On Wednesday 05 June 2002 20:40, Zac Hillier wrote: > > Hi, > > > > Is it possible using php on our own apache server to create global > > variables for virtual host without having to use session variables. > > > > We would like to have three variables that are constant for each virtual > > host and that are available from every page, I thought it would be possible > > with htaccess or http.conf but am struggling to find documentation for it. > > Use an auto-prepend file. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > QOTD: > "The baby was so ugly they had to hang a pork chop around its > neck to get the dog to play with it." > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global variables without sessions on apache
Miguel, I mean that the variables will never change per Virtual host but that the site is a template for many sites and these vars are part of the distinction for each site / Virtual Host. So far the suggestions of using the auto-prepend in the php.ini have not seemed to cater for this. Can you help further? -- ORIGINAL MESSAGE -- Is it possible using php on our own apache server to create global variables for virtual host without having to use session variables. We would like to have three variables that are constant for each virtual host and that are available from every page, I thought it would be possible with htaccess or http.conf but am struggling to find documentation for it. Thanks, Zac - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Zac Hillier" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 7:12 PM Subject: Re: [PHP] global variables without sessions on apache > On Wed, 5 Jun 2002, Zac Hillier wrote: > > Is it possible using php on our own apache server to create global > > variables for virtual host without having to use session variables. > > > > We would like to have three variables that are constant for each virtual > > host and that are available from every page, I thought it would be possible > > with htaccess or http.conf but am struggling to find documentation for it. > > When you say "that are constant" do you mean that they never change or > just that they are the same for each page at any given time? > > If you need dynamic variables shared between all your pages, you're going > to have to either use a database or shared memory as documented at: > >http://www.php.net/manual/en/ref.sem.php > > miguel > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global variables without sessions on apache
Thanks Jason, Works great in htaccess Zac - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 4:08 AM Subject: Re: [PHP] global variables without sessions on apache > On Thursday 06 June 2002 06:05, Zac Hillier wrote: > > Miguel, > > > > I mean that the variables will never change per Virtual host but that the > > site is a template for many sites and these vars are part of the > > distinction for each site / Virtual Host. > > > > So far the suggestions of using the auto-prepend in the php.ini have not > > seemed to cater for this. Can you help further? > > The auto-prepend thing can be set per-site if you put it in the apache.conf > file, and possibly per-directory as well (haven't tried it) if put in > .htaccess files. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > You will have a head crash on your private pack. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] catching plurals
Hi I'm trying to write a function to catch and remove plurals from a search feature, can anyone suggest how I can efficiently remove 'ies' and 's' from the right hand end of each word within an array? Thanks, Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] is preg_replace the fastest way?
Hi All, I'm writing a search facility and am stripping noise words from a string (The string contains between 50 - 200 words). Presently I'm importing a text file of noise words (The noise words file contains almost 1000 words) then using : #-- remove noisewords $cntLmt = count($noise_words); for ($i=0; $i<$cntLmt; $i++) { $filterword = trim(strtolower($noise_words[$i])); $filtered = preg_replace("/(\b$filterword \b)/x"," ",$filtered); } to remove these noise words. However I'm wondering if it would be quicker to separate the $filtered string and then look for the words in a noise words string. If so how would I do this and remove the words? Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preg
Does anyone know how I can use preg or any other function to identify a double letter on the end of a string and then replace it. So 'foo' would become 'f2' and 'bar' would not change. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] row pointer
Hi I'm looking for a php function that will return the position of the pointer in a mysql recordset. I found mysql_data_seek, but this appears to only move the pointer, I need to get the equivalent row number for the pointer position before moving it, then return to the same position. Can anyone help? Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] row pointer
John, Dan & All, Thanks for your response, perhaps if I tell you more of the story then it'll make more sense. I'm afraid I seem to have an ability for asking cryptic questions. Below is the code I'm using, it is meant to check for a list of between 10 and 50 words in a table then return the key of the words found, for the words not in the table they should be added to the table. It seems to work fine, but in a effort to make the code more efficient I realised that at present I'm walking through a lot of the recordset for each keyword. But that the majority of the recordset would be in the same order as the keywords. So if I can add a little extra code that says if the next record in the recordset is not the word I'm trying to find then walk through the recordset, if you reach the end then start at the beginning and go down-to the initial row. This should confirm that the word is not in the recordset and so needs to be added, but leave the recordset in the correct place to check the next word. However to do this I thought initialy I would need to identify the row the recordset was presently at. However now I understand I need to push the recordset into an array then use this array to loop through finding the key's and the words that need to be added. However saying it and coding it seem to be two completely different things, can anyone help me getting started? Hope this makes some sense? If you have any other comments on the code to improve it or good coding practice I would appreciate your comments as I'm still new to this. Thanks Zac Code: #--create select statement for getting keywords from table $fndWrds = ''; foreach($kywrd as $val) { $fndWrds .= "wrd = '$val' OR "; } #-- add test word to get a result regardless $fndWrds .= "wrd = 'test'"; #-- get present keywords from db $dbKy = mysql_query("SELECT ky, wrd FROM ".$site_no."kywrdInd WHERE $fndWrds;"); #--create kywrd index array for index to be used in update value list $indx = array(); #--create update value lists to later add record into lookup table $vlst = ''; foreach($kywrd as $key => $val) { $fnd = 0; While ($kyRw = mysql_fetch_array($dbKy)) { if($kyRw['wrd'] == $val) { $fnd = 1; $indx[$key] = $kyRw['ky']; break 1; } } #-- reset pointer of db array back to begining mysql_data_seek($dbKy, 0); #-- if not in db then add word to db then set index if($fnd == 0) { if(! mysql_query("INSERT INTO ".$site_no."kywrdInd (wrd) values ('".$val."');")) echo 'Word not added'; $indx[$key] = mysql_insert_id(); } #-- check to see that each word has an index value if($indx[$key]) { #--create value list for update into lookup table $vlst .= "($compID," . $indx[$key] . "," . $scr[$key] . "), "; } else { echo 'no index set for keyword, word = '.$val.' index = '.$key.''; } - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Zac Hillier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 6:42 PM Subject: RE: [PHP] row pointer > Keep track of it yourself as you loop through the data. Maybe if you > explained what you need "overall" then we could suggest a method... > > ---John Holmes... > > > -Original Message- > > From: Zac Hillier [mailto:[EMAIL PROTECTED]] > > Sent: Friday, June 14, 2002 3:59 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] row pointer > > > > Hi > > > > I'm looking for a php function that will return the position of the > > pointer > > in a mysql recordset. > > > > I found mysql_data_seek, but this appears to only move the pointer, I > need > > to get the equivalent row number for the pointer position before > moving > > it, > > then return to the same position. > > > > Can anyone help? > > > > Thanks > > > > Zac > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sockets & 'requested address is not valid in its context'
Hi All, I'm opening a port on a remote machine presently I'm using fsockopen() which is fine for opening the port and sending data however I'm having trouble reading data back from the port. So I've considered using socket functions but do not appear to be able to get a connection. When I run the code below pointing to 127.0.0.1 everything runs fine however when I point to 192.168.123.193 (Another machine on the local network without a server running) I get these errors. Warning: socket_bind() unable to bind address [10049]: The requested address is not valid in its context. in D:\php-dev\new.php on line 20 socket_bind() failed: reason: The requested address is not valid in its context. Warning: socket_listen() unable to listen on socket [10022]: An invalid argument was supplied. in D:\php-dev\new.php on line 26 socket_listen() failed: reason: An invalid argument was supplied. What does 'requested address is not valid in its context' mean? Thanks Zac Code: "; } else { echo 'socket'; } if (($ret = socket_bind($sock, $address, $port)) == false) { echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . ""; } else { echo 'bind'; } if (($ret = socket_listen ($sock, 5)) == false) { echo "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . ""; } else { echo 'listen'; } socket_close ($sock); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I am out of pleases now get me off this fuckin list!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Maybe everybody should send him a copy then he'll get the message? Maybe To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <[EMAIL PROTECTED]> or for the digest to: <[EMAIL PROTECTED]> For addition or removal of addresses, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete the transaction. - Original Message - From: "Erik Hegreberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 2:15 PM Subject: [PHP] I am out of pleases now get me off this fuckin list ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Development Tools
Can't agree more, it's fine having Ultradev and the rest to get you started but the best end results come from understanding and writing code that is not bloated. For a great text editor that has all the features identified in PHPEdit but none of the bugs try JEdit www.jedit.org Zac - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Uwe Birkenhain'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 5:21 PM Subject: RE: [PHP] Development Tools > [snip] > What makes development tools better than a good editor? (serious question) > [/snip] > > Over the course of time (I have been writing code for 25 years, many > languages, some compiled, some not) I have found that the most useful tool > in the arsenal is a good editor with no more features than line numbering. > When I find myself in times of code trouble (props to John Lennon) I will > almost always turn to an editor first. I have used many, and for my money > where web application development is concerned, Programmers File Editor (no > longer supported) http://www.lancs.ac.uk/people/cpaap/pfe/ for Windows, and > vi or pico on *nix are the editors of choice. I do use PHPedit from time to > time because, while it is buggy, it does do syntax highlighting and matches > brackets and other curly thingies well, which is especially helpful when > viewing large scripts with lots of code. > > I have and continue to use some IDE's for certain projects (Visual C++, > UltraDev for ASP code) but often find myself using an editor on the code > created by these. > > So to answer the question above ... nothing beats a good editor. > > Jay > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fsock and fget driving me mad!
Hi Can anyone in the group help, I'm trying to read and write from a serial port using php. So far using fsockopen I've managed to open and send data through a serial port but I'm having real problems reading a response. I've tried fgets really to no success can anyone spare me some ideas or thoughts? Setup: Linux box running serproxy ( A tcp to serial port proxy ) IP 192.168.123.192 I connect to this from a webserver running on another machine with: \n"; } else { if(fputs ($fp, "test data".chr(37))){ echo 'data sent'; } else { echo 'no data sent'; } while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } ?> The output is being read by a small ap that displays the serial port data and allows me to send a response, I've logged the response I send at the linux box on the serial port and serproxy is supposed to translate this back to tcp port 5331 however I cannot read it with fgets? Please help it's driving me mad and I'm sure I'm just being stupid : { Thanks for any help. Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ereg_replace problems
I'm trying to replace values within a string with a value looked up from a database. I have a function that looks up the value in the database for me but I'm having trouble passing the value to the function because of the backslashes, is there a way around this? Code: $cntnt = eregi_replace("\[L=([a-zA-Z]+)]"."([a-zA-Z]+)\[EL]", "\\2", $cntnt); fndLnk is the function and the error I receive is - Warning: Unexpected character in input: '\' (ASCII=92) state=1 Thanks for any help Zac
[PHP] unexpected T_IF
Hmm, can anyone explain why I'm getting this error? Parse error: parse error, unexpected T_IF in /usr/local/htdocs/san.loc/upload-img.php on line 34 Code reads: 11:#--if form submitted then process file upload 12:if($HTTP_POST_VARS['ttl']) { 13: 14: #--check if there is already a picture called this 15: include $DOCUMENT_ROOT . 'incs/db.php'; 16: @mysql_select_db("infoNav") or die("unable to connect to table"); 17: $qry = "SELECT ttl FROM imgLst WHERE site = $HTTP_SESSION_VARS[site_no] AND ttl = '$HTTP_POST_VARS[ttl]';"; 18: $imgTst = MYSQL_QUERY($qry); 19: 20: if(mysql_numrows($imgTst) < 1) { 21: 22: #-- check file type 23: $ulf = $HTTP_POST_FILES['uplfile']['type']; 24: if($ulf == 'image/pjpeg' || $ulf == 'image/gif') { 25: 26: #-- get ext 27: ($ulf == 'image/pjpeg') ? $ext = '.jpg' : $ext = '.gif'; 28: 29: #-- create unique filename 30: $flNme = '\/imgs\/user-imgs\/' . time() . $REMOTE_HOST . $ext; 31: $FulflNme = $DOCUMENT_ROOT . $flNme 32: 33: #-- check file is realy uploaded for security then copy to store folder 34: if (is_uploaded_file($HTTP_POST_FILES['uplfile'])) { Thanks Zac
[PHP] fread and session vars
Hi all, I'm using the fread function to read one of my php scripts and then produce a static page, within this script I'm using session variables. If I browse to the script normally then all appears to work correctly, however when I use the fread function the session variables are not being translated. I've tried adding & SID to the end of the URL but to no avail. Can anyone suggest a course of action. I'm reluctant to produce GET variables as there are many variables and this script will need to be used by multiple domains. Thanks, Zac
Re: [PHP] fread and session vars
Code: generate page script: $pge = create-page.php $pd = $HTTP_GET_VARS['pd']; # Set the files $crtPge = "/". $pge ."?pd=". $pd; # the url of the dynamic page to write the output page $targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page # delete previous version of temp file if it exists @unlink('temp.html'); # open the dynamic page into dynpage $dynpage = fopen($crtPge, 'r'); # Check for errors if (!$dynpage) { echo("Unable to load " . $crtPge . ". Static page update aborted!"); exit(); } # function read the data $htmldata = fread($dynpage, 1024*1024); # close the dynamic page fclose($dynpage); # connect to temp file ready to write $tempfile = fopen('temp.html', 'w'); # Check for errors if (!$tempfile) { echo("Unable to open temporary file " . ('temp.html') . " for writing. Static page update aborted!"); exit(); } #write to temp file fwrite($tempfile, $htmldata); # close the temp file fclose($tempfile); etc... === create-page.php: To: "'Zac Hillier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 27, 2002 3:28 PM Subject: RE: [PHP] fread and session vars > Post some code. I don't understand completely what you're trying to do > or how you're trying to do it. > > ---John Holmes... > > > -Original Message- > > From: Zac Hillier [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 27, 2002 9:20 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] fread and session vars > > > > Hi all, > > > > I'm using the fread function to read one of my php scripts and then > > produce a static page, within this script I'm using session variables. > > > > If I browse to the script normally then all appears to work correctly, > > however when I use the fread function the session variables are not > being > > translated. I've tried adding & SID to the end of the URL but to no > avail. > > Can anyone suggest a course of action. I'm reluctant to produce GET > > variables as there are many variables and this script will need to be > used > > by multiple domains. > > > > Thanks, > > > > Zac > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fread and session vars
John, Thanks, the code does actually read this but I'm afraid I removed it so the servers ip is not exposed to the mail list. The script runs correctly and opens and creates the page, however it cannot find the include files I have in the page as the variable $SITE_DOCUMENT_ROOT requires a session variable. Zac - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Zac Hillier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 27, 2002 7:12 PM Subject: RE: [PHP] fread and session vars > Hi. > > > Code: > > > > generate page script: > > > > $pge = create-page.php > > $pd = $HTTP_GET_VARS['pd']; > > > > # Set the files > > $crtPge = "/". $pge ."?pd=". $pd; # the url of the dynamic page to > write > > the > > output page > > $targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page > > > > # delete previous version of temp file if it exists > > @unlink('temp.html'); > > > > # open the dynamic page into dynpage > > $dynpage = fopen($crtPge, 'r'); > > Here it looks like $crtPge is going to be equal to something like > "/create-page.php?pd=xx". If you want to open it via a URL, you need to > add the HTTP:// and server name to it. > > $crtPge = http:// . $HTTP_SERVER_VARS['SERVER_NAME'] . "/" . $pge . > "?pd=" . $pd; > > Something like that...then fopen() will work. > > ---John Holmes... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] map internal extension name to actual file
Hi, Does anyone have any good ideas of how to find out what extension was loaded/enabled from what actual file. For example the "ming" extension (thats its internal name) could come from php_ming.dll in my extensions dir. But if the file name is say mingFlash.dll how can i determine (in php) that my ming functions come from the mingFlash.dll file? I had thoughts of getting the name of the first function from get_extension_funcs("ming") and then seeing if the text of the function name appeared in the actual content of mingFlash.dll, but it seems a bit inaccurate and slow. Can unpack help me here? To re-cap id love to be able to say (from within php), yea the ming extension was loaded by enabling the mingFlash.dll in php.ini. Hope that makes sense Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php compiler
You could try this Jay (I havent used it before, has anybody?) http://www.roadsend.com/home/index.php?SMC=1 Zac -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 15 March 2005 11:21 To: Davy Durham; php-general@lists.php.net Subject: RE: [PHP] php compiler [snip] Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) [/snip] http://www.priadoblender.com ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] report_zend_debug ini setting
Hi, Does anyone know what the "report_zend_debug" ini entry does. I have searched the php wesite (http://docs.php.net/en/ini.html) and cant find any info on it. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and Ajax?
You should also look at JSON (JavaScript Object Notation - is a lightweight data-interchange format) http://pear.php.net/pepr/pepr-proposal-show.php?id=198 http://mike.teczno.com/json.html Zac -Original Message- From: Hidayet Dogan [mailto:[EMAIL PROTECTED] Sent: 29 April 2005 07:41 To: Jeremiah Johnson Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Ajax? Try SAJAX at http://www.modernmethod.com/sajax Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri D.T.O. A.S. -- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr tel : +90 312 4355343 * faks: +90 312 4354006 On Thu, 28 Apr 2005, Jeremiah Johnson wrote: > Does anyone have any references on using PHP and Ajax? I caught the > news on PHP Architect about the webcast they are doing in May and it > sounds like an interesting technology, but I can't wait, of course > :)... and I wanted to learn as much as I could before their > presentation. > > Any pointers? > > > Thanks! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Retrievable weather service info?
http://www.weather.com/services/xmloap.html Weather XML Data Feed Now you can include weather from The Weather Channel in your own application by signing up for access to our XML data feed. We'll enable you to search for a location and to integrate current conditions and the forecast for today and tomorrow in your application - for FREE! Hope that helps Zac -Original Message- From: I. Gray [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 14:33 To: php-general@lists.php.net Subject: [PHP] Re: Retrievable weather service info? You might want to have a look at http://www.accuweather.com/wx/accunet/index.htm Not checked it out properly, but give it a go. Don't think it's free though. Anyone got any other ideas? Murray @ PlanetThoughtful wrote: > Hi All, > > Just wondering if anyone knows of a free weather service that can be > interrogated by PHP for information such as current temperature for a range > of cities around the world? > > Regards, > > Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php session variables limited to 1 character -- please help
Hi! I've got a very strange issue that is basically cutting off session variable data after 1 character. When I set the session variable as "50" it comes back as "5". When I set it to "XYZ" it comes back as "X". I have a script that is taking $_GET['State'] variable and setting it to a session variable named $USER['State']. This worked fine until a few days ago, but now it's persistent! Any ideas what might be causing this?? I've searched the web/lists and can't find any reference. http://www.triptrivia.com/step2-debug.php?State=abc Thanks, Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP web based administrator... Pyrite
Sorry that embedded link should be http://pyrite.zacbarton.com/ :-( Z On 11/2/05, Zac Barton <[EMAIL PROTECTED]> wrote: > > Hi list > > I have been working on a free web based app that lets you update the > php.ini from your browser very much like Coldfusion has. > > You can find a demo off the app at > http://pyrite.zacbarton.com<http://217.150.107.157/pyrite>and im looking to > see if anyone thinks this might be useful or share any ideas/comments > before I take it any further. > > The demo site is pointing to a test php.ini file so feel free to play with > it. > > Regards > Zac >
[PHP] PHP web based administrator... Pyrite
Hi list I have been working on a free web based app that lets you update the php.inifrom your browser very much like Coldfusion has. You can find a demo off the app at http://pyrite.zacbarton.com<http://217.150.107.157/pyrite>and im looking to see if anyone thinks this might be useful or share any ideas/comments before I take it any further. The demo site is pointing to a test php.ini file so feel free to play with it. Regards Zac
Re: [PHP] Re: PHP web based administrator... Pyrite
Hi James Thanks for you comments, its a fair call. All I could add at this stage is that you have to login to Pyrite to be able to do any editing of the php.ini files and you can configure Pyrite to only work via Locahost and not remote connections. It is also true that you do need write permissions to the php.ini file and I would hope that Apache is setup to use a non-root account but with privileges to write to the php.inifile. I could deff use an extra pair of eyes over the code to make sure the app is as secure as humanly possible... interested? Best Zac On 11/3/05, James Benson <[EMAIL PROTECTED]> wrote: > > It should be fine for windows but how are you gonna save the php.ini on > any linux box that typically (when setup correctly) requires root access > to save the file, your opening up a security hole with something like > that unless you tackle this issue some other way! > > > James > > > > > Zac Barton wrote: > > Hi list > > > > I have been working on a free web based app that lets you update the > > php.inifrom your browser very much like Coldfusion has. > > > > You can find a demo off the app at > > http://pyrite.zacbarton.com<http://217.150.107.157/pyrite>and im > > looking to see if anyone thinks this might be useful or share any > > ideas/comments > > before I take it any further. > > > > The demo site is pointing to a test php.ini file so feel free to play > with > > it. > > > > Regards > > Zac > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
[PHP] Looping or what?
The code below is suppose to replace some images and links but when I run it the page just seems to hang and eventually times out. Am I Looping somewhere and not realising it? Thanks Zac $i = $c01_1; $imgLst = ''; function imgRplc($val){ global $imgLst; global $i; $imgLst .= "Fig. $i,"; return '(Fig.'.$i.')'; } // first remove pics and add a reference to the end of the doc for those that are required while(preg_match("//i", 'imgRplc', $disp,1); $i++; } // now remove all other pics $disp = preg_replace("//i", '', $disp); // remove bigPic links target="bigPic" $disp = preg_replace("/(.+)<\/a>/i", '\\2', $disp); // next find shopping links and mark up $disp = preg_replace("/(.+)<\/a>/i", 'Link to: \\3 (Enter into your browser: http://www.lasersailing.com\\1)', $disp); // remove paragraphs $disp = preg_replace("/<\/p>(\s*)/i", '', $disp); $disp = preg_replace("//i", '', $disp); $disp = preg_replace("/<\/p>/i", '', $disp); echo $disp; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions not working on Linux - Apache
Running on apache 1.3 session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = i session.auto_start = 0 session.cookie_lifetime = 0 session_start() is included in the top of each page. When I test session files are being written into the /tmp folder and the session variable is corerctly added to the url when moving to another page, BUT the sessions do not appear to be working? I can set a session var on one page and display it there but when moving to another page the session var is no longer available? If I look in the tmp folder a relevant sess_nnn file is there but contains no data. I've checked permissions and the /tmp folder is world writable and the sess_nnn file is owned by the web server and is writable? Can anyone suggest what to test next or where the problem may be? Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php