We want to display a pdf-file on a webpage.
From what i can think of i see two possible solutions, displaying the file with some kind of pdf reader(maybe in flash?) or converting the pdf-file to html before displaying it.
How would you proceed to solve a problem like this?
Which would be the preferable method?
...
In my drupal6 site I have wizard form. I implemented it with FormAPI using form storage and the rebuild property. My form validation is being done with the #required property and with functions in the #element_validate property. It's working fine but for one thing, when I click on the previous button the form is being validated and I don...
I've followed the helpful instructions here:
Install GD for PHP on Mac OS X 10.5 Leopard
And I have my extension directory in php.ini file like this:
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
But when I try and load GD, I get an error:
PHP Startup: Unable to load dynamic library '/usr/local/php/lib/...
Is there a views plugin that I can use to generate a xml file? I would like something that I could choose the fields I would like to be in the xml and how they would appear (as a tag or a attribute of the parent tag).
For example: I have a content type Picture that has three fields: title, size and dimensions. I would like to create a v...
i forgot how to write the one command that looked something like this
<<TOC
bla bla
bal bal
TOC;
how was it written again? thanks
...
I have two applications, one is the front end application, another is the backend one.
Each application has their own copy of identical user database. When a user logs into the front end application, I will also simultaneously log int the backend application using the web services provided by the backend application.
The question no...
I have a script that allows the posting of news. I want to be able to create a 'save as draft' button next to the 'publish' button. How can I allow the 'save as draft' button to pass a value to the back end?
I just need a simple 1 or 0 depending on which button was pressed, I'm using php by the way.
...
Dear all
I am using PHP/JQuery and Javascript. I am testing the javascript in Firefox using firebug. Is there anything similar for IE? I am struggling to get it to look/work the same in IE 7 and 8.
Are there any tools to solve this? Or standards that i need to follow? Any ideas? And also if anyone can suggest a debugger, it would be ...
$befal = mysql_query("SELECT * FROM users WHERE username = $_GET[username]");
$rad = mysql_fetch_assoc($befal);
Equals
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\profile.php on line 4
I have a user called Admin in the field username and it still dont work. profile.php?user=Admin...
Thi...
I have following query:
Select diary_id,
(select count(*)
from `comments` as c
where c.d_id = d.diary_id) as diary_comments
From `diaries` as d
It takes very many time (near 0.119415 in my case).
How I could solve this problem?
I see only one way: doing additional query for comment number for each row from my main que...
I'm making a little forum for my clans website.
I'm wondering if I should store the thread text in TEXT or BLOB? Whats the diffrence I've seen that phpBB does that.
What is BLOB anyway? cant find much about it on google.
Thanks
Cornelis
...
Is it possible to modify the values inside the super global array _Session in PhP? Assume that the _Session is writing to files.
The reason I ask this is because I have two application, the front end and the back end. The backend uses some variables inside the _Session object, and the front end must be able to modify those values so th...
Assume that you are doing a banking application. If users are logged into your site, how to detect their inactivity and ask them to log out if they remain inactive for a period of time? Inactive here means they have either switch to other tabs, or not touching the browser application.
I guess think I can do this by registering every mo...
How do I implement site authentication using gmail, yahoo or facebook IDs (not OpenID login)?
PS: Using PHP.
...
I am working on a Drupal based site and notice there are a lot of seperate CSS and js files. Wading though some of the code I can also see quite a few cases where many queries are used too.
What techniques have you tried to improve the performance of Drupal and what modules (if any) do you use to improve the performance of Drupal 'out o...
I have an existing database I'm trying to put a cake app on top of. The old app used crypt() in Perl to hash the passwords, I need to do the same in the PHP app.
Where is the correct place to make that change in a standard cakephp app? And what would such a change look like?
...
does symfony redirect to custom error page if Fatal PHP error occurs?
...
Does anyone know where I might find a PHP matrix math library which is still actively maintained?
I need to be able to do the basic matrix operations like reduce, transpose (including non-square matrices), invert, determinant, etc.
This question was asked in the past, then closed with no answers. Now I need an answer to the same questi...
(maybe not a programming question but related)
if im on a local network is there a url that i can type that will allow all users on the local network to view a local hosted website? there is one feature called put online but i would need to be connected to the internet. can it be done another way?
ps:
i know this question is off subjec...
My server is fairly old (based on SuSE 9), and while I try to go through the pain of updating to the latest Apache2, PHP5 and MySQL, I ran into this problem with one of my hosted domains.
The site has an index.php, and if I browse to their site example.org/index.php it displays fine.
But if I navigate to http://example.org or http://ex...