Quantcast
Channel: The PHP Community
Browsing latest articles
Browse All 55 View Live

PHP and JavaScript

Hi Guys!Another super dumb question on the way!Is it possible to assign a PHP variable a value within a javascript function?For example I've got a text box showing up only when a certain tickbox is...

View Article



Image may be NSFW.
Clik here to view.

finding code

Hi,I am adding a search engine to a CMS I built.  I want the results to come out like on google or wikipedia, with the relevant parts of the page highlighted.I know this has been written and...

View Article

Database Connections

Hi Guys!Another dumb question from the peanut gallery!If you're writing a bunch of classes that will run an application, where is the best place to have your database connection(s)? Would it be in the...

View Article

poorly formed JSON - options?

Hello everyone!For a project I'm working on, I'm writing a screen scraper. Unfortunately the material I am attempting to mine is poorly-formed JSON (probably parsed with proprietary code)....

View Article

Question about Arrays

Hi guys, another dumb question!Do things like in_array and array_search work properly in multi-dimensional arrays? Also, is there a way to specify which elements in a multidimensional array to...

View Article


Question about file uploads

Wow, I'm posting a lot lately!So I'm working on a script that will upload files to a server. Is there a way to specify what user the script uploads as, or am I just stuck with uploading as the...

View Article

Build Array from Checkboxes in Form

I’m helping with a web form that has a lot of selectable options. (There must be 70 different items that can be selected by the user, in any number of combinations.)These are represented as check boxes...

View Article

Open PDF in browser, not "Save As"

My users want an option to open stored PDFs in the browser window instead of being prompted to download the file.Current code: if(file_exists($file)) { header('Content-Description: File Transfer');...

View Article


My variables are getting mixed up --RESOLVED (I'm an idiot)

If I run the the code below, I get an unexpected result.I would expect   Camping  Nation  First  33  32  31  32  32  31Instead I get:---and I don't understand why.  Anyone able to help?  Camping...

View Article


array_count_value

Hello,Is it possible to rank array_count_value() in order of... count?e.g.$array = array(1,1,2,2,2,3);array_count_value($array); It would output, in this order: 2, 1, 3 because 2 has the highest...

View Article

Detect change in Radial Buttons

I have a project where people can select from a variety of items.When they’ve made a selection, I reduce the number of items available in a separate table that keeps count.Now I want to make it so that...

View Article

Startup is looking for developers (Moscow, Russia)

Hi there!Hope developers from Russia are reading this community, cause we're looking for great professionals in Moscow. Even got special prizes for them. We're the team of Russian startup tournament...

View Article

Parsing stray greater/less than symbols in HTML

$str = "This is a test. This test is > that test, but is less than < the other test. The previous test may be [Error: Irreparable invalid markup ('<the [...] test,>') in entry. Owner must...

View Article


Calendar script

I'm looking for a calendar class or script that will drop into an existing application, where I can tell it where to find events, and it will populate these events on the given day in a month...

View Article

OCPortal

Anyone had any experience with OC portal?

View Article


Differences between the web and cli?

I have a script that's working 100% fine when viewed as served by Apache. When I run it from the command line (i.e. php index.php) I get a DB connection error. Everything is the same, but when run from...

View Article

You can string functions together in PHP!

Does anybody know when that happened?I just stumbled across it out of sheer desperation when I was using DOMXPath to access the text value of several single nodes:$title = $xpath->query ('title',...

View Article


Favorite web development editors

Greets,I am starting to dabble in web programming, again, after a long hiatus. I am a Debian/Linux guy, and am hoping some folks that do web development can recommend or share which web development...

View Article

Inkwell Creative Hiring Web Developer

Inkwell Creative, a growing Portland, Oregon company focusing on web design, graphic design, interactive media, video and branding, is looking to hire a web developer. We are seeking a hard working...

View Article

Small problem with autoplay

I am using a video plugin for my site but one of the videos from veoh keeps going to autoplay, so I was wondering if I could get a small bit of help since this is old and the developer is no longer...

View Article

Converting MS-Access Forms To PHP

I've got a Microsoft Access application that I'm going to have to convert to PHP and another database (PostGres or SQLite). The db portion I could do by hand if I needed to (the tables are not...

View Article


$_SESSION Use

I have some php 4 code that is being tested on a php 5 site. The (fairly simplistic) login uses a $_SESSION variable to track a valid login, but under php 5 it seems to lose its values when moving to a...

View Article


Hello!

I just started to use LJ, so i thought it would be nice to have some friends here. I'm into coding and programming. I recently started to practice PHP and now i found this community. So please don't...

View Article

Hmm...

Is this community dead or something?

View Article

¿ Que pasó con esta comunidad PHP ?

Hay que revivir esta comunidad, PHP está mas vivo que nunca con su nueva versión PHP 8 liberada el pasado 26 de Noviembre 2020, en el año de la Pandemia COVID 19

View Article

Browsing latest articles
Browse All 55 View Live




Latest Images