[PHP] using curl to peform post
Hi all I have need to simulate the role of a web browser by submitting the following code. form name=form1 action=propsearch.pl method=post textarea rows=12 cols=70 name=msgGREENc/textarea input type=submit value=Submit /form Heres my PHP code that got from the curl function. ?php $url = www.example.com; $page = /cgi-bin/ecco/scripts/h2h/glo/propsearch.pl; $post_string = msg=GREE01; $header = POST .$page. HTTP/1.0 ; $header .= MIME-Version: 1.0 ; $header .= Content-type: application/PTI26 ; $header .= Content-length: .strlen($post_string). ; $header .= Content-transfer-encoding: text ; $header .= Request-number: 1 ; $header .= Document-type: Request ; $header .= Interface-Version: Test 1.4 ; $header .= Connection: close ; $header .= $post_string; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 4); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header); $data = curl_exec($ch); if (curl_errno($ch)) { print curl_error($ch); } else { curl_close($ch); } print $data; ? Any assistant would gratefully be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php training tips
Hi Im sure there will be others out there that will completely disagree with me, but why dont you look at Sams teach your self PHP. The reason I suggest this is because its cheap, it has excerises in them, it pretty much has all the dirty for you. I bet they (Sams) have pretty much thought in the same line and foot steps you have been thinking in what to offer and pretty much put in what they think is appropriate. Also, I think it a good reputable source, amongst others of course. But I would also like to recommend showing, teaching other resources like PHP.net, this mailing list, and some of the other wonderful sites (PHPClasses etc), basically teach the people to think for themselves and where the resources are if they hit a stumbling block. Just my 2c for the day Kind Regards Brent Clark - Original Message - From: Jaskirat Singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 2:21 PM Subject: [PHP] php training tips Hello, I am a PHP coder for the last 4 years doing mostly PHP MySQL stuff. Off late I have been requested by a number of programmers and students to teach PHP. I am wondering how different teaching is from coding and how to design the contents of a 1-2 week training course. I am planning to begin with a free of cost 1 hour per day class, but entry will be restricted to keep it a small bunch of seriously interested people only. Any tips are welcome. Jas -- 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] file locking over NFS?
Hi there If i am not mistaken, that is a standard part of the nfs suite. All you need to make sure is that your export is correct, and the you are not using the -nolock option. Other than that if its PHP you more interested in, look at the flock() function. Kind Regards Brent Clark -Original Message- From: kyle [mailto:[EMAIL PROTECTED] Sent: Monday, July 05, 2004 6:54 PM To: [EMAIL PROTECTED] Subject: [PHP] file locking over NFS? Hi all, Is there any simple, safe, and efficiency way to do file locking over NFS? 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] php functions avail ?
Hi I would like to know if these functions (for php 5)are already uploaded, available on the php.net sites, in terms of research and or support. http://zend.com/php5/whats-new.php Kind Regards Brent Clark MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell: +27 82 701 7827 Work No: +27 21 683 0069 Fax No: +27 21 683 6137 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file locking question
Hi all I have this script whereby I use the php function file(). Just a quick question, do I need to implement file locking. if so, can I just use something like flock( file(/path/file.ext) ); Kind Regards Brent Clark MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell: +27 82 701 7827 Work No: +27 21 683 0069 Fax No: +27 21 683 6137 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] html problem
Hi all When ever I do echo on my variable I get the following out: Business%20Class is there a way to strip the %20, or what ever be displaying if the future. If someone could assist, it would be most appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array problem
Hi all I have this problem whereby im try to create some kind of an array of a split off a file. //Here I pull the file in the array $contents. $contents = file($hotelpathprod.$hotel); foreach($contents as $arr=$conts){ $ff[] = split(\|,$conts); //Here im trying to do a split on the file } Now this the array $ff is fine, the catch is now, it that, the first element has a have like p101. What I trying to do is do a substr($abc,1) and the take that value and make that the number of the element I want. This is what I was going with. foreach($ff as $qaz=$wsx){ $ffile[substr($qaz[0],1)]=$qaz[0]; } If anyone could assist, it would really be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP
hi is this a joke -Original Message- From: Cheung Pui Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Dear Sir/Madam, I would like to make a page on which people may add records to a table and view them (As my web server does not support MYSQL, I may have to do it on text files). I would also like to sort them by descending order of time. Can you please tell me which functions are available for the following items I want to do? If possible, can you write a sample code for me? Thank you for your time and attention. *Date / Time *Name *E-mail (Check them too please) *Company *Vehicle *Route (Original) *Route (Now on) *Notes Yours faithfully, Cheung Pui Pan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cant right click
Hi all On the link provided below, I noticed that you cant right click. Therefore you cant get View source code or Copy link etc (Depenind on the browser used of course) http://www.full.xtremedl.com/6.htm Would anyone know how to do this. I see that you cant even right click on the pic Weird Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] BUTTONS
Hi all I came across this on freshmeat, I thought I must share it http://phpbutton.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] want to buy second hand books online - cant remember site
Hi all a while ago someone on the list was kind enough to mention where he or she buys books online. The URL im looking for is a site that sells second hand IT books. I know the site is someone where in the US. For the likes of my I cant remember it. If someone could assist it would greatly be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Distance and info
Hi all I have a question regarding phpclasses.org. There is a section, where is says, Find the closest mirror. My question is, does anyone know how do they determine the distance (Sits on the right of the screen) and also the details for Your approximate location. Cause its pretty acurrate. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Select box
Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select box to be at the option of the query. Below is part of my code. If someone could help, it would be most appreciated. select name=uname ?php $sqlu=SELECT id,user,name FROM users ORDER BY user ASC; $name_result = mysql_query($sqlu); while($rowu=mysql_fetch_array($name_result)){ echooption value=\$rowu[user]\$rowu[user]/option\n; } ? /select -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] between date
Hi all I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. Kind Regards and thank you in advance Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] between date
Hi Sorry, I should have copied and pasted the table structure before, sending the mail. (Sorry for the scewness) Kind Regards Brent Clark ++---+++++ | id | user | ref_id | stage | files_captured | time | ++---+++++ | 7 | admin | 13 | Capture Batch | 19 | 1084876173 | | 6 | admin | 12 | Read Batch | 19 | 1084874313 | | 5 | admin | 10 | Read Batch | 19 | 1084873823 | | 8 | admin | 14 | Archive| 0 | 1084877521 | | 9 | admin | 15 | Archive| 1 | 1084877659 | | 10 | admin | 16 | Archive|702 | 1084877710 | ++---+++++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML problem
Hi, I know that this is not an xml list but maybe you could help me. 'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of tutorial? http://www.zend.com/zend/tut/index.php Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] thought I should share this
http://developers.slashdot.org/article.pl?sid=04/05/16/1631212mode=threadtid=126tid=169tid=172 Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Not sure
Hi all I have the following php code: echotdnbsp;/tdtdinput type=\checkbox\ name=\frow\ value=\$var\/td\n; I now have the following javascript code: !-- From webmin-- a href='' onClick='document.frm.frow.checked = true; for(i=0; idocument.frm.frow.length; i++) { document.frm.frow[i].checked = true; } return false'Select all/anbsp; a href='' onClick='document.frm.frow.checked = !document.frm.frow.checked; for(i=0; idocument.frm.frow.length; i++) { document.frm.frow[i].checked = !document.frm.frow[i].checked; } return false'Invert selection/abr the problem I have is that if I change the echotdnbsp;/tdtdinput type=\checkbox\ name=\frow\ value=\$var\/td\n; to echotdnbsp;/tdtdinput type=\checkbox\ name=\frow[]\ value=\$var\/td\n; Then my php task is fine, but if I make it a normal variable, like name=frow But then my PHP does not work, and the Javascript does work (Selects all the checkboxes with a tick) I can determine if this is a javascript fault or a php fault. Im stumped If know of a solution, it would be most appreciated Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Active PHP Sessions
I'm on a shared server, and I do not believe that I have access to the /tmp directory where the session files are stored (I believe that is how it works :). I want to keep track of which sessions are active. Basically, I just want a list of the active sessions for my site. How can I do this? Hi Are we talking about smb shares for linux. If so, why dont you just ask your admin to create a share to /tmp or create via php a web page that looks at /tmp and displayes the file. Remember, there are many ways to skin a cat. Copied and pasted from za.php.net ?php $dir = /tmp/; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo filename: $file : filetype: . filetype($dir . $file) . \n; } closedir($dh); } } ? Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LAMP
Hi Anyone know what LAMP stand for Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LAMP - Thanks
Hi Thank you And yes, I feel like a dork, for not knowing this. LOL Enjoy the weekend, where ever you may be. Brent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] gifs, icons etc
Hi all I would like to know if any body has a url for free some icons and, or small pics that can be used in a site \ page development. I was looking at a project call dotproject. And I noticed a lot of kewl small pics. I dont want to infringe on any licenses etc Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] protecting web page
i'm designing a web application and i want to protect my web page from printing and if possible want to protect source code too. Do you know any solution that can help me. I've find an application named HTML guard but it only work for static html pages. I need more a class or function to prevent for printing. Hi No disrespect Whats wrong in sharing your code believe in open source hmmm! Just something I was wondering Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] passing the file back
Hi all In the CMS package mambo , there is an option to backup a database etc. Which I can do etc, but what I would like to know, is of a way to pass the .sql file, or what ever was selected, to be passed back to the user Im looking in the source, but my OO skills is very much lagging. I basically want a file to be passed back to me, via a web front end Kind Regards Brent Clark not sure what you're after here as mambo gives you an option to download the file to the local computer when you selct backup database... do you not see that option? Hi I know about that But what im asking for, it HOW do you do that. I want my script to dump a copy of the database and then, without a link or any other button etc to automagically pass the file generated, back to me. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hope this helps someone
http://www.hk8.org/old_web/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing the file back
Hi all In the CMS package mambo , there is an option to backup a database etc. Which I can do etc, but what I would like to know, is of a way to pass the .sql file, or what ever was selected, to be passed back to the user Im looking in the source, but my OO skills is very much lagging. I basically want a file to be passed back to me, via a web front end Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Button ???
Hi I a few minutes ago I came across something interesting I subscribed to www.phparch.com and when clicking the final button for Complete Order The button went to to dead state, whereby you could not click on it again. It just sat there Does anyone know how to do that and be so kind as to share your code \ idea, that would be most appreciated Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Button ???
Something like this: input type=submit value=submit disabled Hi Yes this is correct But how do you get it from an active to disabled state Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Button ???
This has nothing to do with PHP. Its javascript, http://www.jguru.com/faq/view.jsp?EID=280434 Please keep to topic. Your right and I apologies Thanks for the link Much appreciated Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Button ???
Agreed, but he didn't know it was JavaScript causing it (as was obvious from his first post). I'm all for keeping on topic - but really, you have to cut some people some slack sometimes. Hi Its kewl I should have known better and investigated it more properly. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JScript
Hi I know this is not a javascript mailing list and I do apologies. Does anyone know how display a javascript window, WITHOUT having to reload or refresh a page on which the link was clicked Below is a copied and pasted section of my code Please keep in mind that I am new to javascript Kind Regards Brent Clark echotdstronga href=\scanbatch.php?display=1\ onclick=\window.open('displaybcode.php?file=$var','Test','height=300,width= 300,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes');\$va r/a/strong/font/td; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] JScript
Hi sorry I figured it out here is my example Kind Regards Brent Clark echotdstronga href=\\ onclick=\window.open('displaybcode.php?file=$var','Test','height=300,width= 300,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes');opener =self;return false;\$var/a/strong/font/td; I add this part after the jscripts ) opener=self;return false; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP vs PERL? HOPE THIS HELPS
http://www.bagley.org/~doug/shootout/index2.shtml http://www.bagley.org/~doug/shootout/bench/ary3/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs PERL? HOPE THIS HELPS
That's a really interesting link. Thanks! No problem, my pleasure I was quite shocked to see how PHP performed gcc still rocks though Brent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Text Box question
Hi all I have a problem where, when I click on a link and when the page is finish loading I would like for the cursor to ready in the correct html text box. I cant seem to find a solution If anyone could help, that would be most appreciated Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A good search tutorial
Hi there I have a site driven by a database and I need a search engine...when someone enter a word the script to search the entire database for that word and return the results. Could someone give me the link to that kind of tutorial? Please email me asap Not that my database (mysql) is big or anything, and I only work with a very selected columns I just normally use LIKE in my query. E.g. SELECT abc FROM def WHERE LIKE '%string%'; Depending on what you what. I place the % before, after and in this example before and after. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Text Box question
You can use javascript to perform this... Do the following: script type=text/javascript document.formName.boxName.focus(); // set the focus to the box /script Thank you Worked like charm Much appreciated Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Resizing Pictures
Grab a copy of TikiWiki - http://freshmeat.net/projects/tiki/ It's quite a large system, but there are lots of useful libraries in it. lib/imagegals/imagegallib.php has a nice sample of building thumbnails and smaller copies of the original as well as managing them. Alternatively phpgallery - http://www.giffin.org/phpgallery.php has a similar set of functions but you will need to scout them out. ( Isn't open source great - just borrow what you want :) ) Indeed it is There is real nice one called phpix. This is non OO project. Might be easier to read Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Search for a *
Hi all how do you search for a * in preg_match Kind Regards Brent Clark
Re: [PHP] Search for a *
preg_match('/\*/', $var); Thanks, worked like charm Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C or C++
Hi All Just a quick question, is PHP written in C or C++. Kind Regards Brent Clark
[PHP] restart a function
Hi all I have a function called dofile() I seem to have a problem where I need the function to stop and then restart after the mysql_error() is true and the renaming is done. otherswise in the php file I have to execute is like so: dofile(args); dofile(args); dofile(args); this is a few times; If someone knows of an elegant why to perfect this, that would be most appreciated. Kind Regards Brent Clark if(is_dir($batch_dir)){ $fd = opendir($batch_dir); while(($part = readdir($fd)) == True){ clearstatcache(); //if($part != . $part != .. (substr($part,0,3) == $begin_number) (strlen($part) = 8)){ if($part != . $part != .. (strlen($part) = 8)){ $d_array[] = $part; } } }else{ return OOPS; } if($fd == True){ closedir($fd); } if(! is_dir($processed_dir./.$time)){ mkdir($processed_dir./.$time, 0777); } if(count($d_array) = 1){ foreach($d_array as $fname=$fvar){ $bcode = substr($fvar,0,-4); $sql=INSERT INTO Barcodes (barcode, month, filename) VALUES ('$bcode','$time','$fvar'); mysql_query($sql); if(mysql_error()){ if(strstr($var,-)){ === Problem starts here $value = substr($fvar,9,-4); $prefile=substr($fvar,9); $value++; rename($batch_dir./.$fvar, $batch_dir./.$prefile-$value..pdf); $redo=true; //$newvalue = substr_replace($fvar,$value,-5); //rename($batch_dir./.$fvar, $batch_dir./.$newvalue..pdf); }else{ $file=substr($fvar,-5); rename($batch_dir./.$fvar, $batch_dir./.$file.-1.pdf); } }else{ rename($batch_dir./.$fvar, $processed_dir./.$time./.$fvar); } } }
[PHP] SsH
Does anybody know if theirs a function or something for php that when I click a button it automatically sshes into a box runs a script and then exits? Ive seen it been done in java but php would be better. Kind Regards Brent Clark
[PHP] Javascript help
Hi all I know this is not a Javascript mailing list, and I do apologies. I have this problem where in my php and I know very little javascript that I execute a function to create a window. But I need to know if anyone knows of the function to kill that window, once one of my other functions is finished Anyone know of a javascript mailing list, that what I would not have to post the wrong thread to this mailing list. Kind Regards and thank you Brent Clark
[PHP] Getting the barcode
Hi All I have asked this question before, and the solution was partyly solved, I hope hope someone can help me again. I have a binary file ( readbar ) that I execute with exec(). and it give me an output as so: readbar file Key1 is 4 barcodes found Code 39-10301535 Code 39-10301536 Code 39-10301537 Code 39-10301538 I need to get all the numbers after the - I there is a carriage return after the number. My preg_match is like so if(preg_match(#([0-9]{8})# , $key1, $result)){ which works for only the first top number, but not for the rest. If there away to get this it an array or do a grep on this. There can be many lines that begin with Code 39- If somone can assist that would be most appreciated. Im out of ideas on this one Kind Regards and thank you Brent Clark
[PHP] header problems
Hi All I need to display a javascript window with some text displayed in to. After the execution and displaying of this windows, I have two executable php script that perform some task for me. After all this I need the page to direct to another page. I keep getting this header error. If someone know of a solution, that would be most appreciated Here is my code: if($read){ require_once('lib/functions.inc'); {execute the javascript window here} exec(/var/www/html/ag.php); exec(/var/www/html/convert_tif2pdf.php); header(Location: capture.php); exit; } Kind Regards and thank you Brent Clark
[PHP] Ncurses example @ zend
Hi all a while ago I posted a request for if someone knew anything or know of example etc about ncurses etc I found this http://www.zend.com/zend/tut/tut-degan.php Kind Regards Brent Clark
[PHP] Executing PHP shell script in PHP
Hi Does anyone know of how to execute a php shell script in a php file. Kind Regards Brent Clark
[PHP] tiff to pdf conversion
Hi all anyone know of a quick way to convert a tiff file to a pdf format file. I was thinking of a shell script. Kind Regards Brent Clark
[PHP] Ncurses
Hi all I was browsing the list of functions for PHP and I saw a whole range of ncurses functions. I was wondering if anyone knows of a site that has any demos or examples and or where it can be used Kind Regards Brent Clark
[PHP] Regex
Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 This is the search1 barcodes found 2 barcodes found Code 39-10005216 Datalogic 2 of 5-4 This is the search2 barcodes found 1 barcodes found Code 39-10005210 This is the search1 barcodes found 2 barcodes found Code 39-10006106 IATA 2 of 5-2 This is the search2 barcodes found 1 barcodes found Code 39-10005218 This is the search1 barcodes found 1 barcodes found Code 39-10004516 This is the search1 barcodes found 1 barcodes found Code 39-10006087 This is the search1 barcodes found 3 barcodes found Code 39-10005802 IATA 2 of 5-2 IATA 2 of 5-8 This is the search3 barcodes found 1 barcodes found Code 39-10006081 This is the search1 barcodes found 1 barcodes found Code 39-10004518 This is the search1 barcodes found 1 barcodes found Code 39-10004531 This is the search1 barcodes found 1 barcodes found Code 39-10004039 This is the search1 barcodes found 1 barcodes found Code 39-10004521 This is the search1 barcodes found 1 barcodes found Code 39-10004519 This is the search1 barcodes found 2 barcodes found Code 39-47429 Code 39-10004306 This is the search2 barcodes found 2 barcodes found Code 39-47429 Code 39-10004306 This is the search2 barcodes found No barcodes found This is the searchNo barcodes found No barcodes found This is the searchNo barcodes found 2 barcodes found Code 39-47429 Code 39-10004306 This is the search2 barcodes found 2 barcodes found Code 39-47429 Code 39-10004306 This is the search2 barcodes found 2 barcodes found Code 39-47429 Code 39-10004306 This is the search2 barcodes found
[PHP] Grabbing the STDOUT
Hi all Ive been try for sometime now, and too tried googling for an answer, to grab the STDOUT of a command. In this case the binary command is readbar The general output of readbar executed on its own is as so: Code 39-10005802 IATA 2 of 5-2 IATA 2 of 5-8 1 barcodes found I basically need to grab this output. Does anyone know how to send this to an array or varible. I too have tried the passthru function. Kind Regards and thanks to anyone that can help Brent Clark ?php $dirfile = opendir(/var/www/html/davies/Scanned); while(($row = readdir($dirfile)) == TRUE){ clearstatcache(); if($row != . $row != .. (substr($row,0,4) == scan)){ $filearray[] = $row; } } if($row == True){ closedir($row); } foreach($filearray as $var = $key){ system(/usr/sbin/readbar $key 2%1); } ?
[PHP] Java script prompt - help
Hi all I know this is not a Javascript mailling list, and I do apologies. I someone could please help me a url or an email, this would be most appreciated. I would like to have a yes \ no prompt displayed and depending on which button is pressed take the right course of action. Kind Regards and thank you Brent Clark
[PHP] Mysql look up and then rename
Hi all for some reason I seem to be having a problem having to do a look up in a mysql table and the take the result of that query and then perform the right action. Basically I need to do a look up for a file for example 10006547.pdf. I then need to: if no letter of the alphabet is present. then make it 10006547A.pdf else if does exist, make it 10006547B.pdf for some reason I cant seem to pull this off, add I honestly thought is would be a simple function. If anyone knows of a URL or can help in anyway I really would appreciate it Kind Regards Brent Clark
[PHP] Letter incrementing
Hi all Does anyone know how, or even if it is possible to increment a letter from the alphabet. I know that if you use e.g $o = 1; $o++; will result in $o == 2,. But I need to do a $variable = B; and then do a $variable++ that will result in $variable == C Kind Regards Brent Clark
[PHP] Regex help - PLease
Hi there im in desperate need of help for a reg expression to ONLY allow 8 NUMBERS to start with 100 and may not have any other kind of letters or characters. Only numbers for example 10064893 Kind Regards And thank you Brent Clark
[PHP] Regex help - PLease
Sorry I to should have added this this is what im going with so far preg_match(/\d100.*/); Kind Regards Brent Clark
[PHP] Presence of a program (PHP)
Hi there I have to make use of embedded pdf files in my page (management decision, please dont argue with me on this one, not my choice). I there a function or somthing to detect the presence of adobe reader to make sure the client has it installed, before continuing with displaying it in the browser. I was thinking of trying to do a find the adobe.exe file, but I dont think that to smart solution. Kind Regards Brent Clark
[PHP] Listing for a specific list of files
Hi there I need to perform a function whereby I can list a directory (which is I can do) but the problem is that I want to list only a certain list of files that is in the directory. for example in linux I do a: ls -l 00*.pdf If some one can knows of a url as an example or could help in some way. That would be most appreciated Kind regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php