hi everyone,,,plz helpl me out ..
i want my css to recognise as mystyle.php but inside code would be of css ,
and i want to access it in my index.php page with header method ,i dont want to use
Link method.
Has anyone used Php frameworks just like we have in Python(Django) and Java(Spring).
I want to use something which has end to end solutions. ORM tools, transaction mangement, logging etc.
I am not sure how Cake is?
But, I am looking something very similar to Django in Php.
I have long been a fan of _why's Camping microframework -- lightweight, great for microscopic applications (low concurrency, easy to use and edit and maintain), which is what I do. I'd love to know if there's something similar for PHP; full-blown app frameworks like CakePHP or Symphony are very large for what I do, but I can't seem to find nothing "less".
What PHP framework would you prefer, in this situation?
I have this regular expression:
([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)
its for extracting links to topics from forum
Now when i use it in my script
$url = "([http://some.url.com/index.php?showtopic=\"]*)([0-9]+(?:\.[0-9]*)?)";
preg_match_all spits: "Unknown modifier '('"
Can anyone help me with this obviously stupid problem
I know PHP 5 has some object oriented similarities but it's not a true OOP environment still right? Also does it have a true compiler? I see compiling of scripts which still means procedural. I assume it's not a real compiler in that any PHP compilers out there do not create assemblies?
I have some files in php ,i need to concatenate on basis of selection of checkboxes.if one checkbox is selected concatenate according to requirement and so on.this i have to do using system call ,and i'm working in php and ssh (secure shell client)
I've built basic shopping carts with PHP before but in an attempt to get my feet wet with OOP, I'd like to try using that method.
I come from a design background but do understand some basics of OOP but would like to see a tutorial or something simple I could base this on.
The site is small and the cart functionality required is very standard.
Can anyone offer a link to a decent tutorial or article on building a Cart with PHP OOP, a quick google didn't turn up anything decent.
Hello,
I started into PHP with 5.3 and am using the '::' to access constants ex; class::const. However, when I try to use my code in an older PHP namely 5.1.6 and 5.2.12, I get an error that the '::' is unexpected.
How do I access constants in these older versions of PHP5?
So I need a eary bacik interaction example of C# client using PHP server. I want to see a simple php API conteining 2 methos sum(a, b):c and echo(string):string and a simple C# client able to use that methods. How to do such thing?
Hi,
I cannot get my SID working ...
<?php
session_start();
// Or maybe pass along the session id, if needed
echo '<br /><a href="page2.php?' . SID . '">page 2</a>';?>
does not show up SID number but session_id is working not sure if I am missing something.
THnks
I have a working PHP server. Now I want to use databases (MySQL or something similar). Is it possible to create a database from PHP?
I would like to emphasize that in my case I do not have any user-name and password to which I can use to connect to MySQL server. I also do not have a control-panel where I could create a database or a table in an existing database.
Hi,
I don'T really understabd how regular expressions works even after I read this tutorial http://www.webcheatsheet.com/php/regular_expressions.php
Here is what I need to find:
And it should return: http://link
Here is what I tried:
$find = preg_match_all('/<link type="text/html" rel="alternate" href=".*',$file,$patterns2);
You can laught :)
Thanks in advance for your help and your time :)
I have been asked to program in .NET
I am used to java, javascript, PHP, jQuery
What is the implication to work in .NET, any reading, any migration white paper?
I kno that .NET is a microsoft windows ONLY thing as opposed to PHP, free and universal.
There's a status indicator code for AIM which returns two different images depending on your status (on/offline) which was done in PHP and with the AIM API.
<img src="http://big.oscar.aol.com/USERNAME?on_url=ON_IMAGE&off_url=OFF_IMAGE">
I was looking for a Last.fm widget that shows JUST the album cover I'm listening to or the last album I listened to, but couldn't find it.
How do I go along making it using PHP and the Last.fm API.
Hi,
Is there a way i can change the spanish word which i have typed in the textbox to its english word in php.
Is there any way to do this in php.
Please help me
Thanks
I am using Tomcat 6. I am running a php script using the JavaBridge. I get the following error when I run my code.
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\xxxx\xxxxx.php on line 534
Please help.
I was wondering about the lifespan of a PHP script when called via Ajax. Assume that there is a long-running (i.e. 30 seconds) PHP script on a server and that page is loaded via Ajax. Before the script completes, the user closes the browser. Does the script continue running to completion, is it terminated, or is this a function of the server itself (I'm running Apache fwiw). Thanks for any help.
I have a question about formatting the Rupee currency (Indian Rupee - INR).
For example, numbers here are represented as:
1
10
100
1,000
10,000
1,00,000
10,00,000
1,00,00,000
10,00,00,000
Refer Indian Numbering System
I have to do with it PHP.
I have saw this question Displaying Currency in Indian Numbering Format. But couldn't able to get it for PHP my problem.
Update:
How to use money_format() in indian currency format?
I have line in JAVA and in while i get number:
i = gzipinputstream1.read(abyte0, j, 4096);
From while number:
959
1552
1577
1617
1680
when i want use in php:
$i = fread($handle, 959):
while return:
959,
959,
959,
5
How make that in PHP result will be the some. thanks
I have built a class in PHP and I must declare a class variable as an object. Everytime I want to declare an empty object I use:
$var=new stdClass;
But if I use it to declare a class variable as
class foo
{
var $bar=new stdClass;
}
a parse error occurs. Is there a way to do this or must I declare the class variable as an object in the constructor function?
PS: I'm using PHP 4.
Hi!
I'm trying to get timestamp on beginRequest and on endRequest when processing an http request using php. I know how to do it on asp.net (using httpModules and the finction beginRequest and endRequest).
Does anyone know if this option is available on php and guide me how to do it?
(I'm not looking for a solution, just some guiding or good reference because i couldn't find any...)
I was following this tutorial when typing up this code:
public function search($term){
$filter = function($tag) use ($term){
if(stristr($tag,$term))
return true;
return false;
};
return array_filter($this->_tags,$filter);
}
I get following errors in Zend Studio 8
syntax error, unexpected '{'
syntax error, unexpected 'function'
syntax error, unexpected 'use'
However the code works fine on my Xampp with php 5.3.1 -
How can I find the version of PHP in Zend Studio, and how can I upgrade it?
Hi! I have started to try out noSQL databases now and are currently testing out couchDB. Seems like a good solution, but I really get some headache when I follow available examples on how to create views (queries) to select documents from a database and sort them.
Everything I can find is regarding Javascript and it would be great to take part of some examples for PHP since that is the language we will use.
So, how do I create views using PHP for couchDB?
Hello.
I'm more of a SU and SF but now I'm after some help from the SO community.
I'm dabbling in a bit of php coding with databases and am getting a bit stuck with relationships and the like. Can anybody reccomend some books, online or real, that would be a good start for someone new(ish) to php and mysql databases?
Cheers!