[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thanks, ya'll! Got it working. "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have a basic question I can't figure out. > > My site lets people enter in their information... I now want to be able for > a user

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Matt Matijevich
http://www.w3.org/TR/html4/loose.dtd";> Untitled Document Take a look at the manual for sessions session_start() has to be the first thing called http://www.w3.org/TR/html4/loose.dtd";> Untitled Document -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] New lines

2004-02-03 Thread Matt Matijevich
[snip] This is where the var's $list and $additional_letters are filled. The file is called hangman.php. I want to open this file, put the words into a html file so that someone can change them and write them back. That's it. [/snip] is it out of the question to store the values in ther own separa

RE: [PHP] Extract of a Paragraph

2004-02-04 Thread Matt Matijevich
$string = substr($stringname,0,50); echo $string; http://www.php.net/substr That will just give the first 50 characters of the string. You could just try one of the many suggestions on http://www.php.net/manual/en/function.str-word-count.php Scroll down to the user comments and there is

Re: [PHP] Using sessions with register globals off

2004-02-04 Thread Matt Matijevich
Assuming there's a preceding page that has created the session 'name' and registered the var 'order' with the 'name' session. session_name('name'); session_register('order'); Try $_SESSION['order'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Another preg question

2004-02-13 Thread Matt Matijevich
Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace("/\n\n+/", "\n\n", $text); // remove excess This doesn't seem to do anything. not 100% sure this is right but give it a try $text = preg_replace("/\n\n+|\n\r[\n\r]+|\r\r+/", "\n\n", $tex

[PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Matt Hedges
Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height="*", but it doesn't work. If you look at

Re: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Matt Matijevich
Can I avoid that intermediate step, somehow? When my script logs in the user, how to I write the code that dispatches directly to the home page? Have you tried a redirect? http://www.php.net/header http://www.example.com/";); /* Redirect browser */ /* Make sure that code below does not get

Re: [PHP] * populate menu from directory *

2004-02-16 Thread Matt Matijevich
I want to be able to simply FTP a new movie onto the server, and then have the menu update itself. possible? I would also be looking to do something similar with JPGS. take a look at http://www.php.net/readdir http://www.php.net/opendir here is some code to help start you echo ''; if ($

Re: [PHP] Are variables persistent?

2004-02-16 Thread Matt Matijevich
I'm guessing this is not a sensible approach. Every place I construct a url, I'd have to remember to add this. Have you looked into sessions and/or cookies? I think you want to use $_POST not $POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
rint ''; $rowcount = 0; while(ora_fetch($cursor)) { print ''; for($i=0; $i$cell_data"; } print "\n"; } print ''; ?> Thanks for any advice. Matt

[PHP] Re: Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
${where_clauses}"; Matt Matt Hillebrand <[EMAIL PROTECTED]> wrote: I have an Oracle 8 problem. Unfortunately, I can't use the OCI functions and must use the ORA functions. The code below looks fine to me. It will return *almost* all of the rows, but then the script just dies with no wa

Re: [PHP] regular expressions

2004-02-17 Thread Matt Matijevich
Anyone recommend a book for a regex newbie ? O'Reilly usually has some good stuff http://www.oreilly.com/catalog/regex/ There is plenty of tutorials online too, just google and you will get a bunch of results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
assume I'm gonna have to use some sort of recursion here, but I'm not sure how to go about this. Please help if you can. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Recursive Select Box

2004-02-18 Thread Matt Palermo
No, i'm using a MySQL DB. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > Hey everyone. I'm looking for assistance/suggestions/answers on how to > > build a select dropdown box from data that nee

Re: [PHP] Delayed mail()... ?

2004-02-20 Thread Matt Matijevich
What they've asked for, is that when they reply to the enquiry, they are reminded to chase up the enqiry a few days later... Now I could give them a message on screen, if they happen to be in the admin area, but what i'd like to do , is simply mail the admin users, after say, 3 days. regardless

Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Matt Matijevich
Can anyone tell me if this is a common problem? Is this a purely MSIE bug, or could PHP be a factor? I would guess it is a MSIE problem. You could check the raw post data coming into php too see if it is a php bug. I think $GLOBALS['HTTP_RAW_POST_DATA'] has the post data -- PHP General Mailin

Re: [PHP] Connection handling and output_buffering

2004-02-23 Thread Matt Matijevich
Was reading through: http://uk.php.net/manual/en/features.connection-handling.php And I was wondering how PHP handles script termination when you have 'output_buffering = On' in your php.ini? If I have a long script that does lots of database stuff for example, and is riddled with echo() fun

[PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Matt Hedges
Hello, I am working on using PHP to build a web store. http://www.squirrelcart.com/ looks to be pretty good for a shopping cart- does anyone have any experience with this or others? Also, what suggestions do ya'll have for a payment gateway? thanks matt -- PHP General Mailing List

Re: [PHP] About php and mysql

2004-02-24 Thread Matt Matijevich
I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? http://www.php.net/manual/en/function.mysql-connect.php http://www.php.net/manual/en/function.mysql-pconnect.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Matt Matijevich
But, I want to know is there any tools similar with "php-mssql" for php connect with MS-SQL ? Any other can help ? 1. look at the manual http://php.net/mssql 2. try google 3. search the list archives -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
hanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Hello, I'm trying to password protect an online PDF file. I know how to use PHP to pw protect a webpage, but what would be the best way to protect access to a nonwebpage file? thanks a lot Matt -- ___ | Matt Hedges | President, Vino del Sol | [EMAIL PROT

Re: [PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Thanks, that worked great. I found this for anyone else like me new to htaccess: http://www.htmlbasix.com/passwordprotect.shtml works great. matt "Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm trying to password protect

Re: [PHP] Uploading Files

2004-02-24 Thread Matt Matijevich
try this if($userfile) { if(move_uploaded_file($_FILES ['userfile'], "$uploadpath/$userfile_name")) { echo $userfile_name; echo "Successfully Added!\n"; } else { echo ("error!"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] Get MySQL table field names

2004-02-29 Thread Matt Palermo
How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Matt Matijevich
I already tried that, but had problems with ' ' " ". Did you try the htmlentities function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login Form weird behaviour in Mozilla/Netscape Not in IE

2004-03-03 Thread Matt Matijevich
Try an absolute url. >>> "Daniel Perez" <[EMAIL PROTECTED]> 3/3/2004 8:55:06 AM >>> Hi there, I´ve got a login form, that calls a script, to check if the user/pass match. If yes, the script do a header("Location : index.php"). In Explorer works but not in Mozilla nor Netscape. Anyone knows somethi

Re: [PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matt Matijevich
http://www.mydomain.com/private/some_privat_file.doc and downloading this file! I need a way to make this file only accessible to users who have a user_id in there session - is this possible? Or is my only alternative to password protect this directory using the webserver and force users to re-au

Re: [PHP] Link List

2004-03-04 Thread Matt Matijevich
I have tried to use readline to make this happen, but I'm getting error messages. Somebody with a suggestion about this? have any code samples or example error messages for us? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date()

2004-03-18 Thread Matt Matijevich
i am new to php, i am trying to call the date function this way: and the result i get is: object18/03/04 any help would be appreciated I recommend the manual and google http://www.php.net/manual/en/ref.datetime.php http://www.php.net/date http://www.php.net/manual/en/function.time.php http

Re: [PHP] Retain form values...

2004-03-18 Thread Matt Matijevich
thoughts? I would look into sessions http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Matt Matijevich
I'm about 90% sure that URL strings are passed in the clear to SSL servers, so this would defeat the purpose of SSL. I don't think this is true. You can see the query string in the address bar, but (with what little http knowledge I have) the http conversation is encrypted, if you sniff it, the

[PHP] RE: Guru's advice needed ........[Security: SQL injection]

2004-03-19 Thread Matt Chatterley
ience has already tried this... Thanks, Matt -Original Message- From: Tariq Murtaza [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 18:41 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Guru's advice needed [Security: SQL injection] *Dear Friends!* Can someone shed some lig

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Matt Matijevich
go to secure page Turn off register globals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with header

2004-03-24 Thread Phil Matt
e other statement go? header("Location:error.shtml"); TIA for any advice you can offer. I must be really missing the point here. Cheers --- Phil Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP alternative to Browser Hawk?

2004-03-30 Thread Matt Matijevich
Does anyone know of a good solid PHP alternative to the very good (but very expensive!) BrowserHawk? (http://www.cyscape.com/) Dont know if this has all of the features you are looking for, but it has a bunch of them http://phpsniff.sourceforge.net/ -- PHP General Mailing List (http://www.php

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Matt Matijevich
I agree with you but when I first looked at this I too thought there was some way of doing this in php which might look more elegant. Seeing urls such as www.mydomain.com/index.php?article_id=2&id=e5t28er647ryh362hy67eh4563yh4635 looks fairly cumbersome and I'm sure I've seen something about probl

Re: [PHP] Inserting string - need to trim comma

2004-04-01 Thread Matt Matijevich
function insert($table, $data) { $sql = "INSERT INTO ".$table." SET "; foreach ($data as $k=>$v) { $sql.= $k." = '".$v."', "; } $sql.=";"; $result = mysql_query($sql); } The only problem with the statement is the appended comma to each iteration - the statement generates a mysql error wit

Re: [PHP] Inserting string - need to trim comma

2004-04-01 Thread Matt Matijevich
--- Matt Matijevich <[EMAIL PROTECTED]> wrote: > http://www.php.net/rtrim rtrim() trims whitespace, not commas. Hope that helps. Chris string rtrim ( string str [, string charlist]) there is a second optional paremeter you can add to rtrim rtrim($var,','); will take

Re: [PHP] PHP Logo with a dog?

2004-04-01 Thread Matt Matijevich
Has anybody had the PHP logo in phpinfo() appear with a picture of a dog? April Fools easter egg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ADOdb installation

2004-04-02 Thread Matt Matijevich
Would each virtual host need to have a directory with the ADOdb scripts? No Just put the adodb scripts in the include_path, or just have a designdated place on your windows bow for adodb, then in you include statement just use something like include('c:\adodb\adodb.php'); //not exactly sure wha

[PHP] Problem sending with mail()

2004-04-02 Thread Matt MacLeod
tmail addresses with no luck. any ideas? Cheers, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
could you post all of your script? Is there any white space before your http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
change your script to just this: Don't have any white space before http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
Sorry for responding to myself but I also need to ad that you should not echo or print anything out in your php code before your header function or the text/html header will be sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
you should have script, call it image.php or something like that, the only thing that should be in that script is this: no html tags in there, no whitespace. to see the image you could call the page like this http://www.yourdomain.whatever/image.php . you could call it in a iumage tag like this

[PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
of a way this can be done? Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
is to work for any tag, no just . Any suggestions for this? Thanks, Matt "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > I am building a system which allows users to post data. I want to allow > >

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
This is what i have so far: $allowed = ''; $info = strip_tags($info, $allowed); $info = preg_replace('/<([^>])[^>]*>/', '<\1>', $info); This works for everything except the closing tags. It turns into . Anyone know why? Thanks, Matt "J

[PHP] Regular Expressions

2004-04-04 Thread Matt Palermo
t gets changed to this: 2 <>. How can I set it to only replace things when there is a < and a matching > for it? Anyone have any ideas? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reusing MySQL Connections - Can it be done?

2004-04-05 Thread Matt Matijevich
[snip] function connect_db() { if (!defined('_CONNECT_DB')) { $result = @mysql_pconnect("localhost", "Username", "Password"); @mysql_select_db("database_name"); define('_CONNECT_DB', $result); } return _CONNECT_DB; I call this function this way...

Re: [PHP] Regular Expressions

2004-04-05 Thread Matt Palermo
What exactly does this do: /< (?<=p|br) [^>]+ >/x It may work, I just want to understand what it's looking for. Thanks, Matt "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Matt Palermo ([EMAIL PROTECTED]): > &

Re: [PHP] Newbie question about operators

2004-04-07 Thread Matt Matijevich
[snip] foreach ($some_array as $name=>$value) { ... some code ... } [/snip] http://www.php.net/foreach will give you a good explanation. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Matt Matijevich
[snip] e.g. $conn->Connect(false, 'scott', 'tiger', $oraname); [/snip] http://www.php.net/oop will give you some help. I am not even sure if I can explain it correctly. I believe you would say use -> to call object methods and -> to get/set the class variables. I am sure someone can give a bett

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Matt M.
> How can i do a php script with a html extensionsuch as > http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html > apache could do this a couple ways http://httpd.apache.org/docs/mod/mod_mime.html#addhandler http://httpd.apache.org/docs-2.0/mod/core.html#setinputfilter http://h

Re: [PHP] PHP + Javascript, immediate database update

2004-10-27 Thread Matt M.
> I have a webform which my users are expecting to act like a Windows program, > they only need to check the box and it is automatically written to the > database. you could try this http://developer.apple.com/internet/webcontent/iframe.html or this http://jibbering.com/2002/4/httprequest.html

Re: [PHP] PHP and send XML

2004-10-28 Thread Matt M.
> I'm trying to pass XML file from Site A to Site B for Site B to parse. > Site B is maintained by other company, so I only need to worry about sending > over the XML file. I've been hinted that fsockopen() can do the job. if you have to do this I would suggest giving pear a try, no need to reinv

Re: [PHP] exec() or system() to run *.exe and let php continue with code

2004-10-29 Thread Matt M.
> Hi all im new to PHP and im trying to let a process (*.exe file) to run in > background(localhost) and let php continue processing the script. But PHP > always stops and wait for the (*.exe) stops/close! > > Anyone here can help me by giving me an simply example to let PHP run the > exe file and

Re: [PHP] Friday afternoon - being thick

2004-10-29 Thread Matt M.
> I've got some text that contains carriage returns, which are not . > what tag do I need to use to display the text with the carriage returns? > Can't even remember whether it's html or php. html, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] PHP Working With Excel File ?

2004-11-01 Thread Matt M.
> Can PHP work with Excel files as database ? > If not, how can I conver it to MySQL format and > reconvert it to Excel 'coz I need it to report it > in Excel format, if you are on windows you could use a com object. if you have access to perl, you could use http://search.cpan.org/~kwitknr/Sprea

[PHP] Adding to a Date

2004-11-06 Thread Matt Cassarino
day = date("Y-m-d"); and then trying to add "x" to it, but it only adds "x" to the year, not the day value. So how can I get PHP to add "x" to the day value? Any help would be awesome! Thanks, Matt Matt Cassarino 206 484 4626 [EMAIL PROTECTED] www.mattcass.com

Re: [PHP] copy function?

2004-11-16 Thread Matt M.
> I have a button which I want to add a function to, so that when it is > clicked, the data from one will be copied to another > > Which event handler of the button should I use and hoe should I construct > the function? onclick. This is not really a php question. do some googleing for javasc

Re: [PHP] Sorting...

2004-11-17 Thread Matt M.
> array ( > 20040310, Title, Author > 20041115, Title, Author > 20040513, Title, Author > ) > > where each array element is 1 line from the csv. When I go to print it > out, Im going to explode each by , and then print it out the way I like. > > BUT, I want to sor

[PHP] Close all open tags in HTML text

2004-12-08 Thread Matt Palermo
HTML string and add closing tags and comments to it if needed? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Close all open tags in HTML text

2004-12-09 Thread Matt Palermo
news:[EMAIL PROTECTED] > Matt Palermo wrote: >> I am allowing users to imput HTML code into a textarea. After they input >> this, I wany to output their HTML to the browser. In order for the >> document >> to be safe, I need to close all open HTML tags that have been l

Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread Matt Palermo
want to allow them to use HTML, but I want to close tags that were left open by them. This way it allows them to use HTML and it won't screw up the rest of the page. Thanks, Matt "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Pa

[PHP] Re: empty() problem

2004-12-12 Thread Matt Palermo
How about: if($Game_Rating == "") $errors[] = "You didn't enter the Online Status for the Game."; This should work for you. -Matt "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Group Members > i have a probl

Re: [PHP] in_array w/statement

2004-12-16 Thread Matt M.
> reason it seems to always be true, ... something i'm doing wrong? btw, i > cannot add the in_array to the statement because if the $buddylist is empty > it will generate errors because of the empty implode. you could add the is_array() check. > $buddylist = preg_split('/( )+/', trim($userinfo['

Re: [PHP] Problem with loose typing

2004-12-17 Thread Matt M.
> You would expect the while loop to go on forever just looking > at the above code. However, what's happening is that when the > empty string is getting returned due to $i being > 10, the while > loop is resolving FALSE when $bob is set to the value of the > empty string. > Is there any way that

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Matt M.
> Hi all, > I have created a download manger to handle files, when a user clicks a link > the file is sent though fopen() and fpassthru() you could try http://us3.php.net/readfile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete files from the server

2004-12-16 Thread Matt M.
> I have uploaded some pictures and thumbnails using a PHP form into a > particular directory. I would like to be able to select the name of the > picture and then chose to delete that picture and its thumbnail from the > server using another form. try the manual my man http://us2.php.net/unlink

Re: [PHP] PHP parse Excel and Access files

2004-12-20 Thread Matt M.
> How to read and get data from Excel Files and Access Files. > Can you post me articles and tutorials on the web-sites that explain > the basic concept to create an interface for PHP and this files-type. > Thanks so much to all. I am pretty sure that you an set up odbc connections to access acces

Re: [PHP] convert hidden form to get url

2004-12-20 Thread Matt M.
> Anyone got any suggestions on the best way to convert the snippet of code > below (which I'm dynamically collecting from another website) to a get url > (i.e. > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27 ) > > http://www.somewebsite.co.uk/Availability.cgi"; method=

Re: [PHP] convert hidden form to get url

2004-12-20 Thread Matt M.
> Sorry for not been clear. The snippet of html is code I am getting > dynamically using curl from another website. I want to then convert that > html code into a url like > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27. you need something to parse the html, I found th

Re: [PHP] first letter

2004-12-20 Thread Matt M.
> $name = "John"; > > how can i echo the first letter only so the result on the browser will be "J" echo $name{0}; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Matt M.
> I know that "register_globals = on" is not secure. But one program > requires to use register_globals=on. So in php.ini register_globals is > set to on. > > I have PHP 5.1, is it possible in the code set register_globals=off > for specific scripts. > > So I want to keep PHP register_globals=on

Re: [PHP] Destroying session data

2004-12-23 Thread Matt M.
> I have multiple pages on a website that uses sessions ($_SESSION) to > store the data. However, I noticed that in the C:\Windows\Temp > directory, all the session variables/data files are stored there from > previous (and current) sessions. what version of php are you using? this might be comin

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Matt M.
is what comes out in the html or is it ? can you upload any files at all? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache won't start after upgrading to 4.3.10

2005-01-05 Thread Matt Blasinski
nfiguration File (php.ini) Path => /usr/local/lib/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp, https, ftps If anyone has had a similar problem or has

Re: [PHP] Error in foreach?

2005-01-10 Thread Matt M.
> This is in response to the following line: > > foreach ($_GET as $key => $value) is $_GET an array? when in doubt, print it out try: print_r($_GET) or even check is_array($_GET) might be an earlier version of php http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.get

Re: [PHP] Free library for PDF functoins ???

2005-01-18 Thread Matt M.
> Does anyone knows of a free library to compile PHP against and have PDF > functions support ? you could try this class http://www.fpdf.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
refresh. I have thought about the Iframe solution - does this work in Mozilla? Are there non-iFrame solutions? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
;-) Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 12:41 PM To: Matt Babineau Subject: Re: [PHP] Multiple select boxes - select in one box

[PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Matt Babineau
Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Matt Harnaga
s and you're print problem will go away. -Matt Todd Cary wrote: Jochem - Here is the function: /* Make page path */ function make_page_path($page_string, $script_name) { $parts = explode('|', $page_string); for ($i = 0; $i < count($parts); $i++) { if ($i

[PHP] RE: Problem with SELECT SQL_CALC_FOUND_ROWS

2005-02-01 Thread Matt Babineau
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is very strange behavior! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message

[PHP] Beautiful HTML Invoice -> Prints like crap! I need some suggestions!

2005-06-07 Thread Matt Babineau
a JPG? I'm on a linux box and have php 4.3.10. Thanks for the help! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-07 Thread Matt Babineau
run on the server to do the convert work. Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 3:21 PM To: php-general@lists.php.net Subject

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
y more input on this? Everything I have read so far has been very helpful and I thank you for that. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:0

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
m to be able to print a copy. I've looked into PDFing the invoice but its just a bit easier to hit the print button and be done since Adobe PDF usually crashes your browser :( Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Messa

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
ally up a creek right now - unless I convert the bg images to foreground image which would really suck...but could be done. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent:

[PHP] Php.net/pdf -> Making a PDF from the invoice

2005-06-09 Thread Matt Babineau
that good. Thx- Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 2:05 PM To: php-general@lists.php.net Subject: Re: [PHP] Beautiful HT

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Yikeshas anyone got a url for a good "Make PDF From HTML Class" that uses my newly installed PDFlib library? Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] Three queries. One Form.

2005-06-09 Thread Matt Babineau
Well after the first query you could do this: $art_id = mysql_insert_id(); There is your new unique art_id you just created. Do this for the next table, the do the insert on your 3rd table. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED

RE: [PHP] Something is messing up the php output

2005-06-22 Thread Matt Babineau
I bet if you connect using the IP directly it will solve your problem. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 6:27 PM To: php

RE: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Matt Babineau
ment. I don't have to even think about the server. I spend about 1 hr a month messing around with the server (daemon restarts or php config changes). That's where LAMP's value really shines through I think you will find. Thanks, Matt Babineau Criticalcode 858.733

Re: [PHP] Find largest integer filename

2005-07-06 Thread Matt Blasinski
ething slightly different than mine does, then try adjusting which field cut takes. HTH, Matt Philip Hallstrom wrote: Suppose I have a directory with a HUGE number of filenames, all of which happen to look like integers: ~/nntp/1 ~/nntp/2 ~/nntp/3 . . . ~/nntp/59874 ~/nntp/59875 ~/nntp/59876 Now

[PHP] Some CLASS file help, should be a quick answer...

2005-07-11 Thread Matt Babineau
uple tutorials but none explain this very wellanyone have any thoughts? Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    10   11   12   13   14   15   16   17   >