On Tue, Dec 15, 2009 at 6:44 AM, Wouter van Vliet / Interpotential
wrote:
> And if that doesn't suit your needs - you might want to take a look at this:
>
> http://sourceforge.net/projects/simplehtmldom/
+1
I've never used the html2text library, but simplehtmldom is very easy
to use and has wo
On Wed, Nov 25, 2009 at 3:01 PM, Allen McCabe wrote:
> *Warning*: Unknown: Your script possibly relies on a session side-effect
> which existed until PHP 4.2.3. Please be advised that the session extension
> does not consider global variables as a source of data, unless
> register_globals is enabl
On Tue, Nov 24, 2009 at 6:22 AM, Al wrote:
> This bothers since the current working directory is effectively where my
> original script resides; is it not? If so, doesn't the "include Net/SMTP.php
> on line 206" look for the path relative to it and not in
> /home1/youstart/php/?
When including a
> We are currently using PHP version 5.2.6. in production, and I'd like to
> upgrade to the latest 5.3.1
Before upgrading production, upgrade your staging server and do QA.
Any big changes like this should be tested in staging before being
pushed to production. Also take a look at
http://php.net/C
On Tue, Oct 27, 2009 at 5:50 PM, Skip Evans wrote:
> Any Netbeaners out there know how to install syntax highlighting stuff?
1 - Exit NetBeans
2 - Unzip the file in your ~/.netbeans/ folder.
3 - Start NetBeans
4 - Select the new color profile from Tools -> Options -> Fonts and
Colors -> Profile d
On Mon, Oct 26, 2009 at 6:31 PM, Angus Mann wrote:
> When I use a form to upload a file, using $_FILES['uploadedfile']['name']
> and move_uploaded-file($_FILES['uploadedfile']['name'], $targetpath) strange
> effects happen.
>
> The file is uploaded to the target directory just as it should.
>
> Bu
On Sep 17, 2008, at 957PM, David Rocks wrote:
I am running a test PHP web app on my local machine that uses
REMOTE_ADDR and most of the time ::1 is returned as the IP addr and
sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2.
PHPINFO always returns ::1 for REMOTE_ADDR. I
On Fri, Sep 12, 2008 at 12:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> Microsoft sucks because they didn't make their symbolic linking
>> methodology public knowledge and charge additional fees to obtain the
>> Win2k system kit they suggest you use to make the links in the first
>> place.
On Sep 12, 2008, at 544AM, Jochem Maas wrote:
the current error_reporting/display_errors settings. and learn about
error_log() and how to 'tail' the error log (fuck knows how you go
about
that on windows ... then there are reasons I have a Mac ;-))
The ability to tail error logs is one of t
On Sep 12, 2008, at 516AM, Luke wrote:
Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'?
Not sure how to do this on Windows
Windows 2k and up do support symbolic links, take a look at
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
Brady
--
PHP General Ma
On Sep 10, 2008, at 821PM, jmatt wrote:
Hi, I was using NVU to edit PHP but when I upload the index.php file
back
there will always be a slight error in disorientation.
Example using NVU I edited the text just a bit then bam..The webpage
became
really funny
What is the best to edit my PHP f
On Sep 10, 2008, at 950AM, Ben Stones wrote:
There's a bug, I believe with XAMPP where from XAMPP CP you click
'admin'
under MySQL, when WinMySQLadmin comes up, the icon in the right
(traffic
light) is always red, and there's no option to start the service
anymore...
Click the "Start" bu
On Sep 8, 2008, at 809AM, Charlene wrote:
The company I work for is going to be creating the catalog to a
small store (~100 items). The customized catalog will include the
front end that the shoppers will use as well as the back end data
entry.
We need shopping cart/checkout software, pr
On Aug 31, 2008, at 904PM, Tom Shaw wrote:
My array looks very similar to this. I need to create a single row
for the
items that have the same order number for CSV export. I'd prefer to
do this
PHP wise instead of SQL. But would appreciate any help I can get.
Please send an example of w
On Aug 29, 2008, at 851AM, Edward Diener wrote:
I have not looked into PHP IDEs at all so far. Any recommendations ?
Thanks !
Please don't start this up again. Check the "PHP IDE Needed" thread
that has been active for the past several days or search the list
archives.
http://marc.info/
On Jul 24, 2008, at 1052AM, [EMAIL PROTECTED] wrote:
$result = mysql_query($query)
Missing a ; at the end of the line.
$mailsend = mail("[EMAIL PROTECTED]","The IP's that Attacked
$hostname", "The following are ip's that have try to attack your
system.\r\n\r\
You can't execute cod
On Jul 11, 2008, at 555PM, Ryan S wrote:
before the next days counter starts this data is stored in a table
which has a simple structure like this
img_id1 int,img_id2 int (etc till img_id10)
That sounds like a painful db structure to deal with if you want to
add more images in the future.
On Jul 6, 2008, at 305PM, Ron Piggott wrote:
I am trying to scramble individual words and/or phrases.
When it is a phrase I would like to keep the letters of each word
together, with a space between each one. The code I have so far is
below. I use PHP 4.4.7. The code below is fine for a sin
On May 31, 2008, at 211AM, Yui Hiroaki wrote:
I just do not want to load mail() when load.php is load.
if you know how to solove it, please teach me it!
*MyClass.php***
buff();
mail("[EMAIL PROTECTED]","test","test");
class MyClass{
Private $google;
function __c
On May 27, 2008, at 923AM, Bastien Koert wrote:
Interesting to know, however the OP's question was about using PHP
to run
the scanner, not on the already present PDFs in the FS.
That's not how I read the question, but clearly I could be wrong...
Could / Would you be willing to share you s
On May 19, 2008, at 520AM, robert mena wrote:
So, in order to allow phpunit to be ran, have the firefox/IE support
and use
xdebug I have two basic options:
a) stay with windows, install XAMPP (or any other all-in-one). And
live
with the fact that some things will have to be taken care of (
On May 14, 2008, at 854PM, Tony M wrote:
Can I install a newer version of php over an older version ?
I am new to php and am in the process of installing it and reading
various tutorials.
I always suggest using XAMPP (http://xampp.org) or a similar package
that will install MySQL, PHP an
The last comment on http://php.net/manual/en/function.simplexml-load-string.php
is what you need:
simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA);
Brady
On May 9, 2008, at 1250PM, Chris W wrote:
I have an xml file with a cdata element like the one below. How
would I
On May 1, 2008, at 843AM, Richard Heyes wrote:
it's the most flexible and fastest to query.
Mmm, that's debateable. Not knowing the ins and outs of MySQL I'd
hazard a guess that reading an extra 255 bytes from the table file
might be faster in some circumstances than opening two extra tab
On May 1, 2008, at 743AM, Richard Heyes wrote:
Is this how its done or am I barking up the wrong tree?
You have multiple options:
1. Fully normalised, where you have three tables - one for your
"articles", one for your categories and a link table.
This is the route that I would suggest, i
On Mar 30, 2008, at 227AM, Alain Roger wrote:
i want to implement on my web portal electronic invoicing system.
basically data will be stored into PostgreSQL DB.
If you're not set on building it yourself, you might take a look at
Bamboo Invoice - http://bambooinvoice.org/.
Brady
--
PHP Gen
On Mar 20, 2008, at 922AM, Lamp Lists wrote:
$query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'");
For a non-array value, the curly braces are unnecessary:
$query = mysql_query("SELECT * FROM table1 WHERE id='$session_id'")
WIth an array element, you have to either us
On Mar 18, 2008, at 1008PM, Sudhakar wrote:
1. are the connection statements ex = $conn =
mysql_connect($hostname, $user,
$dbpassword); etc does these remain the same or are they different.
http://php.net/mssql
2. unlike in mysql with phpmyadmin which is browser based to access
databases
On Mar 3, 2008, at 614PM, gary liang wrote:
Is there any command line tool, which is able to crop part of pdf
file? I ask for command line tool, because it can be used in php
code. Any hint?
Depending on what exactly you mean by "cropping" a pdf, pdftk may be
what you need.
http://www.a
On Feb 24, 2008, at 200PM, hE wrote:
The following program gave the error:
"Parse error: parse error in C:\apache\htdocs\mysqltest.php on line
10"
Did you copy/paste the code? If so maybe the quotation marks are the
fancy "smart quotes" like MS Office likes to use. Try replacing your
q
On Feb 24, 2008, at 1135AM, hE wrote:
hi,
I found an e-book in the net about php and mysql and with its sample
program I am trying to test whether I have mysql working correctly
or not. the following program gives error message. why?
What exactly does the error message say? We can help tr
On Feb 19, 2008, at 712AM, tedd wrote:
Hi gang:
I have a date picker in javascript working, but I need to take the
date selections to php.
Here's the link and code:
http://www.webbytedd.com/a/calendar/index.php
How can I get what is selected in javascript to POST?
Have you tried placin
On Feb 18, 2008, at 531PM, Teck wrote:
Is it possible to "return" more than one values in PHP?
Yes, in the form of an array.
return $x;
return $y;
Only one return statement can be used.
http://us.php.net/manual/en/functions.returning-values.php
Brady
--
PHP General Mailing List (http://
On Feb 17, 2008, at 256PM, Daniel Brown wrote:
On Feb 17, 2008 5:37 PM, nihilism machine
<[EMAIL PROTECTED]> wrote:
i am using this code to get the extension of a filename:
$extension = strtolower(strrchr($fileName,"."));
how can i get the text BEFORE the . (period)
You can STFW and RT
On Feb 13, 2008, at 426AM, pretty wrote
hi any one help me out, im using cronofirm, i need to field form
details will
converted into pdf as well as it will go maill attachment doing this
in
joomla, atleast i need this only php with out joomla.
For sending email:
The standard mail function
> > I don't use a mac myself but a colleague does. He seems to have apache
> > and PHP installed on the machine but he generally uses the Xampp
> > package. I don't know if this is the official home page or but but start
> > here: http://www.apachefriends.org/en/xampp-macosx.html
> Thanks Colin,
>
On Jan 26, 2008, at 357PM, Michael Fischer wrote:
hi there,
is there a way to determine the tmp-filename of a file upload while
the upload is still in progress?
I'm not sure when it becomes available, but $_FILES['file_name']
['tmp_name'] is the only place I know of to find the temporary n
On Jan 18, 2008, at 1014AM, Balasubramanyam Ananthamurthy wrote:
I'm fetching content from database and printing it on the browser. I
want add an link on the same page "Click here to view it in PDF". Is
it possible to do it using FPDF? If yes, how can I do this?
Yes, this can be done with FP
I'm having users enter dates in MM-DD- format. is there a way
to check if what they have entered is invalid (like if they enter
1-15-2008 instead of 01-15-2008) ?
Why not use something like http://www.dynarch.com/projects/calendar/
to make it easier for the users? Along with being easi
On Jan 14, 2008, at 1127PM, Lukáš Moravec wrote:
I have one question about $_POST ['something'] array...
I am trying to use a form and php in a same file and when I am using
the
form for the first time, Any $_POST index which I use in the form is
not
defined (which is logical)...how can I r
On Jan 5, 2008, at 639AM, A.smith wrote:
I'm having a problem getting .phtml files to display in a web
browser. I
can successfully display a test.php page as per PHP install
instructions but
the phtml files show up blank
(in firefox or IE).
A blank page often means that there's an error o
On Jan 4, 2008 9:33 AM, Christoph Boget <[EMAIL PROTECTED]> wrote:
> Not wanting to re-invent the wheel, I'm wondering if there is a package out
> there that can read in an HTML file and allow you to manipulate and dissect
> it much like you can in javascript? For example, functionality similar to
> when I type the word blah's to my text box
> variable, and then insert it into mysql after being ran through
> mysql_real_escape_string(), it does:
>
> insert into contract (contract_id, responsibility) VALUES (15, 'blah\\\'s')
It looks like magic quotes is turned on. Take a look at
http://us2.p
i would like to improve my coding quality when i use PHP code and
for that i
would request your help.
in my web developer experience, i have to confess that i've never
succeeded
in spliting PHP code from HTML code.
There's a myth that by separating html and php your code is cleaner,
it's
If you're using PHP5, you can use the tidy functions -
http://us2.php.net/tidy. The default settings output html tags in
lower-case. For tidy config settings, see
http://tidy.sourceforge.net/docs/quickref.html
Brady
On Dec 19, 2007 1:10 PM, Christoph Boget <[EMAIL PROTECTED]> wrote:
> I've been l
On Nov 28, 2007 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
> if ($res) {
> // now see if user's id exists in database
> if (mysql_num_rows($res,0) {
You need another ) on that last line:
if (mysql_num_rows($res,0)) {
You might want to consider getting an editor/ide that will higlight
David Christopher Zentgraf wrote:
On 27 Nov 2007, at 17:57, Brady Mitchell wrote:
FPDF is a great way to go - I've used it for other projects. Thought
I'd share this method so you'd have more options. :)
Very much appreciated. :o)
I do want to include graphics dynamically as
David Christopher Zentgraf wrote:
Thanks, but by now I'm pretty much sold on the idea of FPDF and
creating PDFs on the fly, inserting data I need as I go. Is there any
advantage using pdftk?
The only advantage would be that others could create the PDFs and give
them to you.
I used this setup
David Christopher Zentgraf wrote:
I'll certainly play around with it to see what it can do, but right of
the bat it seems that templates aren't supported the way I would like
them to. Importing a PDF is possible, but apparently they can only be
treated like images.
I had a similar situation whe
Depends on what you are planning to do with the file. Saving it to PDF is also
possible, take a look at http://fpdf.org and http://htmldoc.org/.
Brady
-Original Message-
Hi!!
I'm in the need of saving to a file a dynamic page that I generated from a PHP
script, taking data from a tab
Use sessions. Store the variables you need in the session, then
redirect. After redirect get the values you need from the session.
http://us3.php.net/manual/en/ref.session.php
Brady
> -Original Message-
> From: Tony Di Croce [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 28, 2006 2:5
> -Original Message-
> The question I have to answer is "Do I write everything by myself from
scratch
> and spend 3-6 months doing it? Or do I spend that same amount of money
on a prebuilt system
> and spend 1 month integrating our new branding?"
The answer to this question depends heavi
> -Original Message-
> I am using the ADODB class to connect to a MySQL server. I am trying
> to generate an ID with the method GenID(), but when I tried this:
>
> $id = $db->GenID('table');
>
> The value of $id is equal to zero. I know that MySQL doesn't use
> sequences like Postgr
> -Original Message-
> Quick question;
>
> If the site is updated with new pages/links is there
> anyway of specifying to HTTrack to get just the new
> pages or does it get the whole site again?
Yes, there is an option to just update the downloaded site. I've never
actually used that opt
> -Original Message-
> > Save yourself a lot of work and use HTTrack.
> >
> > http://www.httrack.com/
>
>
> Very very interesting, thank you!
>
> If you have tried this and have downloaded dynamic
> pages/sites (eg: PHP pages) please tell me if you had
> any link problems from one page
> -Original Message-
> Could someone help me to convert this snippet of PHP code to
> JavaScript?
If by "help me" you mean "do it for me" than I can tell you that nobody
is going to do it. Start working on it, and ask questions when you get
stuck, we're here to help, not do your job
Bra
> -Original Message-
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> Does any class program exist that can help me do this?
Save yourself a lot of work and use HTTrack.
http://www.httrack.com/
Brady
--
PHP Gene
> This works:
> $rs= $this->conn->GetAll("SELECT title FROM content WHERE
> page_id= ?",
> $id);
You can't iterate through an array like you are trying to do. Using the
GetAll() function returns an array, you have to use the Execute()
function to be able to iterate through $rs like you are tryi
> Any idea why this bit of code
>
> if("yes" == $_POST['submitter'])
> {
> mysql_select_db($db,$myconnection);
>
> $sql = "INSERT INTO `$db`.`$table`
> (name,email,comments,entrydate)
> values ('$name','$email','$comments','$entrydate')";
> mysql_query($sql) or die(print mysql_err
> "chmod() can only change the permissions of files that are owned by
> the user running the command. In most cases, this is the user that
> the web server runs on."
>
> That confuses me, because who's the user here? Is it just the system
> administrator or the application?
This is the user th
You're missing the session_start() call at the beginning of your code.
I'm surprised it works at all without that..
http://www.php.net/manual/en/ref.session.php
http://www.php.net/manual/en/function.session-start.php
Brady
> -Original Message-
> From: Webmaster [mailto:[EMAIL PROTECTED
> -Original Message-
> In JSP I have access to a function called sendRedirect() to
> send a user
> from one page to another, usually after some processing completed. Is
> there a similar function in PHP?
Take a look at the header() function.
http://php.net/header
To redirect you can us
> -Original Message-
> Does anyone know anything about this, and if they do - have any
> thoughts on how it may have gotten on the server and how to secure
> against it in the future? Just trying to help out a friend here.
Without knowing the exact setup of the server, we can't help mu
> -Original Message-
> I finally got the function to work. However I have a problem with
> another function. It is almost exactly like the origional function
> but in this function I am determining the days instead of the month.
> I made the same changes to the days function as I did to
> I have done the following to my code hoping that the fix would work
>
> $query1 = mysql_query("SELECT months FROM Month WHERE m_id =
month(curdate())");
> //echo $query1 . "";
>
> $query1_data = mysql_fetch_assoc($query1);
> echo $query1_data . ""; returns Array
> (The word that
> -Original Message-
> example code:
> //implode the value of the submitted form
> //$del will look like 38, 40, 43
> $del = implode(",", $idd);
> //create query for the deletion of values from submited form
> $query = "delete From news where id = '$del'";
> //execute query
> mysql_query(
> Personally, I think that posting a way to allow php to communicate
> with javascript OR any other language is relevant for a php-general
> list, don't you think?
To use the value of a PHP variable in javascript, you create a
javascript variable and then echo the value of the php variable.
F
> -Original Message-
> I wonder if anyone has any ideas? As I can't just run an
> update locally
> and connect to the remote MySQL host, I was scheduling a
> periodic export
> of an access table to csv format, ftping it to the server, and then
> running an update script on the remote h
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 21, 2006 7:27 AM
> To: Pure Web Solution
> Cc: [EMAIL PROTECTED]; php-general@lists.php.net
> Subject: Re: [PHP] PDFLib or some free solution?
>
> As I said in prev post, there is a problem wit
> -Original Message-
> [EMAIL PROTECTED] wrote:
> Hi,
> I have to create some flyers and invoices (simple stuff) in one my
> project.
>
> Could you please give me some directions?
Take a look at http://ros.co.nz/pdf/.
It hasn't been updated for awhile, but it works great as is. I'm usin
> Why there is no newline afer " Hello World" ?
> Is it a PHP bug or the tutorial should be updated?
The tutorial is fine.
The sample code mentioned:
PHP Test
Hello World'; ?>
Contains a line break after the Hello World is echoed .
Check your code, if you don't have that line bre
If you have a linux box, use mutt or pine. Also, most Windows mail
clients allow you to turn off HTML mail. Check your client
documentation / help files.
Brady
> -Original Message-
> From: Mark Steudel [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 13, 2006 1:40 PM
> To: php-genera
> Example
> Page1.php
> ===
> $name_pro = "VC++ V2.4"
> print " $name_pro ";
Use urlencode (http://php.net/urlencode):
print " $name_pro
";
Brady
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
> echo '\n';
> $month_query = mysql_query("SELECT m_id, months FROM Month");
> while ($r = mysql_fetch_array($month_query));
Remove the semi-colon at the end of the above line and it works like a charm.
> {
> $v = $r["m_id"];
> $
> Doesn't work
> -
> $month_query = mysql_query("SELECT m_id, months FROM Month");
> while ($row = mysql_fetch_array($month_query))
> {
> $val = $row["m_id"];
> $out = $row["months"];
> echo "$out";
> }
> ?>
You're missing the tags.
> -Original Message-
> I need to take a web site done in ASP, retrieve it, change
> the .asp to .html, make sure that the links don't break, make
> sure that query strings get coverted, etc, etc, etc so that I
> can take a portion of the current
> (*SHUDDER*) web site and place it on CD'
> -Original Message-
> My reason for using an embedded player was basically just for
> design purposes, but perhaps that is not a good idea. I did
> not consider the fact of not being able to leave the site
> while listening, and since these are as long as 40 minutes,
> this might get
> -Original Message-
> i need some help with printing an array, i would like to
> print the keys and the values of them example :
I use the dump_array posted by "examancer" at the following address:
http://www.phpbuilder.com/board/showthread.php?t=10213508 when
debugging, it should work w
> Hi
>
> Yes, but I assume that
>
> echo "Kontroll rad i textfil:$rowsInTextFile av
> $totalRowsInTextFile";
>
> would render a ?
>
> /G
Echo does not automatically add a newline, you would have to use \n to
get newlines with the echo statement:
echo "Kontroll rad i textfil:$rowsInTextFile
79 matches
Mail list logo