Problem solved, I just installed it over 4.3.11 and it worked like a charm
Rr4nd0mch4r
- Jul 17, 2005
- Joined Aug 26, 2003
I originally installed PHP 4.3.6 last year on my lil' server and I'd like to upgrade it to the latest 4.3.11 + I'd like to recompile it with math functions enabled.
The problem is that 4.3.6 was installed from source and I don't know how to upgrade or recompile.
Would it be allright to just download the 4.3.11 source and run
./configure --with-all-the-options-i-need make && make install
Or is something bad going to happend?
(All the path in the current install have been left default).Hi!
I've got a file with a bunch of links that look kind of like this:
<a href=" [url]http://domain.com/anchor.php[/url] ">anchor text</a> <a href=" [url]http://domain.com/something.php[/url] ">something else</a> <a href=" [url]http://domain.com/different.php[/url] ">different link</a>
Now, I'd like to get the anchor text out of this links with regular expressions, but I just don't seem to understand how to specify the STARTING element, which is "> and the ENDING element, which is </a>.
I've read the tutorials about validating emails, usernames etc., but I just can't get this one... (:
Little help, please?
Thanks!
But, what do I do when there's a lot of uninportant data in the file?
Example:random data { data 1 } random data random data { data 2 }
Is it possible to just jump to the next {} ?
I'd like to read the file and put everything between the { } in an array.
Except the garbage data, that's also between the {}.
Hi!
I'm trying to parse a file that looks like this:
{ data 1 } { garbage data }
{ data 3 } { garbage data }
{ data 3 } { garbage data }And at the end I'd like to get an array with data1, data2 and data3 in it - but I'm not really sure how to do it! (:
If there weren't any garbage data in between I'd just use explode but in this case... I'm lost...ALSO, is it possible to jump in a file forward and backward for an arbitrary number of characters?
Thanks!
r4Hello, I've got a bit of a problem with mod_rewrite.
I am rewriting urls that look like this:
presents-cerruti.php?code=N4359&descripton=some_presentinto URL's that look like this:
presents-cerruti/N4359/some_presentwith this rules:
RewriteEngine On
RewriteRule presents-cerruti/(.)/(.) /presents-cerruti.php?code=$1&description=$2The problem is, when I click the link, the images dont't work anymore, because the URL is rewritten and the images can't be found.
How can I avoid this?
Would it be possible to convert them to some other with PHP (xml, gif/jpeg) and then display them with HTML?
So, is there a way to view the contents of PDF files without actually opening them in AcroReader with IE/Mozilla?
Hi,
I've got about 200 PDF files of documentation and I need to put it online.
Is there a way to generate HTML from PDF or is there a better solution avaliable out there so people can view the files without downloading them?Actually i'm not a spammer but i suppose arguing about this and trying to prove you wrong really doesnt have a point.
I know I can find this information if I search through every PHP forum, but the main reason I posted this thread is because of the question I asked at the end.
(about sending only 1 e-mail and then have the mail server deliver it to all the adresses)
Hello, what is the best way to send mass e-mail? (10.000+)
Also, I heard that it's possible to do it like this:
1) we've got 3000 @.com accounts
2) we only send 1 e-mail to hotmail
3) hotmail mail server sends this e-mail to 3000 adressesI think it's a neat way to send mass e-mail, but does anyone know if this is actually possible and how?
Thanks, r4
Does anyone have any idea where to start with this?
The image is a simple grey rectangle with black text in it, but I dont really know how to code a script that will be able to read it...
any pointers, guides, something?
worked like a charm, thx!
thanks for the reply coolT, but I don't know how to echo both values with PHP in one While loop...
Lets say I have a query like this: SELECT * FROM table WHERE something LIKE '%foo%'
And this is what I get back:
foo2
foo2
foo5
foo5Now, I'd like to (with PHP) generate an output looking like this:
foo2 - 2
foo5 - 2How can I do this?
problem =(
echo '<td colspan="2" class="naslov">'; header("Content-type: image/jpeg"); $im = @ImageCreateFromJPEG ("img.jpg"); $color = ImageColorAllocate ($im, 0, 0, 0); ImageTTFText ($im, 48, 0, 5, 50, $color, "myriadpro-semibold.otf", $text); ImageJPEG($im); echo '</td>';
this won't work... it gives me erorr about a header being already sent... but I can't generate the images before... (they're generating in a loop)
without the generation it would look like this:
echo '<td colspan="2"'; echo '<img src="x.jpg" alt ="x" />'; echo '</td>';
I have to write an app that will:
a) enable users register and enter their info (or their company info)
b) generate a website (template's will be made in advance)
and allow users to enter their own dataIt would be generated like this:
app creates a directory with name... /usersdir/ and copies the files there... (index.php, index.css, news.php, news.css....)
and that would be it.The main idea is that I have predefined choices they can select for the menu in their template (choices like: About our company, News, Portfolio, Where are we, Who are we, Clients, ...)
The select the choices they would like and then enter the contents.
*** Everything would be based on MySQL DB... and every choice would have its own table... example:
table_clients (id_client, id_template, about_the_client)
or another example:
table_news (id_news, id_template, news_contents, date)
And when I would type in IE the adress -> http://myportal.com/usersdir/ the application would
1) check which modules are enabled and generated the menu
2) contact the mysql DB in get the neccessary contents...Is this whole idea any good? Is it a good system or a bad one?
Could it be done better, easier, simpler?Hi,
are there any tests or benchmarks or sth like that that will tell me if it's a good idea to have php operate with (lets say) several hundred flash pages that will get their contents from mysql?
or is it better to keep sites simple and plain html...? I'm looking for the fastest, cleanest way to do this...
Even if you normalize your tables, there are still some elements that will be repeated, like ID numbers... then what do you do?