Debugging FPDF
Does it have a debugging mode? I keep getting "... data already sent".
View Complete Forum Thread with Replies
Related Forum Messages:
PDF Using FPDF
I want a php (whose contents are in mysql db) and are accessed as $row['title'], $row['content'] etc; to be converted into pdf. I am using fpdf for doing so. In it's tutorial they have given the following code for header, footer and content generation. <?php require('fpdf.php'); class PDF extends FPDF { //Page header function Header() { //Logo $this->Image('logo_pb.png',10,8,33); //Arial bold 15 $this->SetFont('Arial','B',15); //Move to the right $this->Cell(80); //Title $this->Cell(30,10,'Title',1,0,'C'); //Line break $this->Ln(20); } //Page footer function Footer() { //Position at 1.5 cm from bottom $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial','I',8); //Page number $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); } } //Instanciation of inherited class $pdf=new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times','',12); for($i=1;$i<=40;$i++) $pdf->Cell(0,10,'Printing line number '.$i,0,1); $pdf->Output(); ?> It prints the printing line number , however i want to print the data in $row['content']. How to do it? Where should i write it?
View Replies !
Anyone Used Baagrid & Fpdf Together??
I would like to use Baagrid along with FPDF. I am using Vtiger and I want to use baagrid instead of the table that they provide for invoices and quotes. The issue I am having is that the PDF generation will fail, stating that some of the output has already been sent to the pdf. But there is no pdf generated. So, has anyone used FPDF and Baagrid together, did you get this error and if so would you share how you overcome it??
View Replies !
Use FPDF And PDFLib
I have a table of properties that I want to build a pdf brochure from. I am using R&OS pdf creator. I tried to use FPDF and PDFLib but for FPDF I could not find suitbale code for my solution and for PDFLib my host provider only has version 3.02 installed. With R&OS pdf I have it working apart from the images. Infact this is where I hve the problem with all pdf creators mentioned above. In the table I have a field called ImageID that contains a ref num to a jpeg in a properties folder. I want to be able to insert the image into the table in the corresponding property in the brochure. Image in left cell, details in right cell etc.
View Replies !
FPDF Class
I use E_V_O ARTICLES on my site to publish articles. And E_V_O ARTICLES has a feature wherein a user can save the article in a PDF format. So the script uses a class called FPDF available at wXw.fpdf. o_r_g. what i wanted is to disable editing of the pdf document i.e to add security and to allow only printing the pdf doc. a script is available on FPDF website called PROTECTION. (w*w.fpdf.o_r_g/en/script/script37.php) but i donno how to integrate it as i'm a newbie for these. I'm uploading the files used for printing the articles into pdf docs.
View Replies !
Fpdf Error
am trying to display a report generation in a pdf file using the php. how can i retrieve the database values in the pdf file..?? <?php define('FPDF_FONTPATH','Template/includes/font/'); require('Template/includes/fpdf.php'); include('Template/includes/common.inc.php'); class PDF extends FPDF { //Load data function LoadData($classID) { //Read data from table $ResultAllClass=QrySelect("SELECT distinct new_sm_examid_issue.exam_id,sm_studentmaster.stu_id ,sm_studentmaster.stu_name, sm_studentmaster.stu_dob,sm_studentmaster.stu_state,sm_studentmaster.stu_country,sm_studentmaster.stu_residentphone from sm_studentmaster,new_sm_examid_issue WHERE sm_studentmaster.stu_id=new_sm_examid_issue.stu_id and sm_studentmaster.cls_id=new_sm_examid_issue.cls_id and sm_studentmaster.cls_id='$classID' "); $datas=array(); while($class=mysql_fetch_row($ResultAllClass)) { $datas[]=$class; } mysql_free_result($ResultAllClass); return $datas; } //Simple table function BasicTable($header,$data) { //Header foreach($header as $col) { $this->Cell(28,7,$col,1); } $this->Ln(); //Data foreach($data as $row) { $this->Cell(28,7,$row,1); $this->Ln(); } } } $pdf=new PDF(); // Row data $vals = $_GET['test']; echo $vals; $data=$pdf->LoadData($vals); $pdf->SetFont('Arial','B',10); $pdf->AddPage(); //Column titles $header=array('ExamId','StudentId','StudentName','DOB','State','Country','Phone Number'); $pdf->BasicTable($header,$data); $pdf->Output(); ?> this is not working produce one error message 938 //Send to standard output 939 if (isset($HTTP_SERVER_VARS['SERVER_NAME'])) { 940 //We send to a browser 941 Header('Content-Type: application/pdf'); 942 if (headers_sent()) 943 $this->Error('Some data has already been output to browser, can't send PDF file'); 944 Header('Content-Length: '.strlen($this->buffer)); WARNING: Cannot modify header information - headers already sent by (output started at C:wampwww empVishnuSchool Management ProjectTemplateincludescommon.inc.php:27) File: C:wampwww empVishnuSchool Management ProjectTemplateincludesfpdf.php FPDF error: Some data has already been output to browser, can't send PDF file then i checked the common.inc.php there is no blank space before and after <? ?>
View Replies !
FPDF, And HtmlArea
I need to collect information from a form into a MySQL database. People will be able to format their input using something called htmlArea -- it's a little tool that turns a plain text area box into a box like the ones we use to input info in this forum - with MS Word type easy text and link formatting. Once they're done and work is saved to the database, their information can be viewed/downloaded as a PDF. I plan to use PHP to handle form input. It will be stored in a MySQL database as text. I will use FPDF to create the PDF files on the fly. While htmlArea works really great for the non-techie user, unfortunately it adds a lot of MS Word excess HTML coding. The code can be as gruesome as FrontPage produced html.... I'm worried that pulling this excessively HTML encoded data from the MySQL database to be used with FPDF is just not going to work. Has anyone done anything like this and, if so, have run into problems with FPDF and funkily coded data?
View Replies !
Fpdf Php5
I have been using the same FPDF script with php4 for ages without a problem. I upgraded my server to php5 and hit one problem that I can't resolve. The script basically generates a cover page for a quote, then the individual items for the quote. I loop through a series of rows all with the same height (in this loop). They correspond to about 3 rows of data per A4 page. The cover page and the first A4 page prints fine, but after the pagebreak the fourth row appears at the bottom of the next page, then after that it becomes unpredictable to the extent that it can print multiple empty pages, or throw individual cells down the pages (a mess). I also use the CheckPageBreak from the mc_table class which is included before the code shown. I have lifted the function CheckPageBreak out of the mc_table class for reference. I have also used this with the tcpdf version and get the same results. Completely baffled. PHP Code: .............
View Replies !
Fpdf Image
I would like to put an image into the table while creating PDF file. I use fpdf class (www.fpdf.org). I cannot find any example in internet and group archieves and www.fpdf.org page.
View Replies !
Fpdf Array
I am using fpdf to concatenate two or more pdfs into one (generated on the fly). Is there any possible difference between: $pdf->setFiles(array($pdfarray)); and $pdf->setFiles(array("fpdf/test1.pdf","fpdf/test2.pdf")); When I echo the $pdfarray it yields: "fpdf/test1.pdf","fpdf/test2.pdf" (the exact string as in the second example. When I use the first example, the fpdf function gives an error: FPDF error: Cannot open "fpdf/test1.pdf","fpdf/test2.pdf" ! When I use the second example, it works fine.
View Replies !
FPDF Header Problem
Not sure if this is the correct forum, but since FPDF is a PHP script, I thought I would give it a try... I am having a problem getting ANYTHING to print in a header using the FPDF functions. I can get text to go into the main body of the PDF file, but nothing into a header. I have messed with this for several hours, seached the web and no luck. Any help would be greatly appreciated. Here is my script - which prints "Test Output" in a PDF file with no header at all. Any suggestions? <?php define('FPDF_FONTPATH','font/'); require('fpdf.php'); class PDF extends FPDF { //Page header function Header() { //Arial bold 15 $this->SetFont('Arial','B',15); //Move to the right $this->Cell(80); //Title $this->Cell(30,10,'Header Output',1,1,'C'); //Line break $this->Ln(20); } } $pdf=new FPDF(); $pdf->AddPage(); $pdf->SetFont('Times','',10); $pdf->Cell(40,40,"Test Output"); $pdf->Output(); ?>
View Replies !
Adding Fonts To Fpdf
I just downloaded the fpdf package and am going through the turorials. Everything works up to adding my own fonts. (Got to be a path thing, but I am fairly new to php, and am trying to muddle through.) I also found a download of an addfont addition from their scripts, but it seems to have glitches...
View Replies !
Fpdf Label Printing
I'm trying to write a label printing routine, but I'm not being too sucsessful. I'm hoping maybe someone who's used FPDF b4 can help me out? Basically, I want to print labels from a data taken from a MySQL DB, but it doesn't output the labels properly. As soon as it gets to the bottom of the page, it kinda spans the bottom two labels across the two pages. How do I tell it to print the whole last label on the second page? I had a look at the docs, but can't seem to get anything that'll help me. PHP Code: ....
View Replies !
Force Download In FPDF
Can anyone tell me how to do the force download in FPDF ? I can create a pdf file and save it with output($filename,"F"); This works great. But when I put D instead of F for the download I get an error. Do I need to put something in the header of the document?
View Replies !
Headers (FPDF-related)
At my company I made a form for sales people to fill out their name, title, address, business contact info, etc. This data then gets compiled to give them an approximation of what their business card will look like. So, the form gets posted to another .php page which has just the code for generating the PDF, then sending it to the browser. This means the headers were already sent, and this is where my problem comes in. The user should fill out their info, and submit the form. I need it to not only send the PDF to the browser, but also direct them to another form with a checkbox that says basically, "The information I provided for my business card is correct." They must click that checkbox before they can submit the final version to send to us so we can make them their card. I believe it's a header issue because after the PDF is sent to the browser, I can't redirect using header("Location and it seems as though I can't have it POST to the form's page.. Is there a way of having the PDF open and the form with the checkbox gets loaded with the user's form-data so it sends an email to us with their data? I'm lost on how to handle this, please help!
View Replies !
Recent Failure Generating PDF Via FPDF
In latter stages of development on a SugarCRM based Home Inspections app (deployed independently on numerous Tablet_XP/WAMP stacks) recent updates have left the system on one of the Tablets failing to Generate our 'contract.pdf' This is a feature that has otherwise been functional for 6 months plus. The curious thing is that a carbon copy of the app functions beautifully on an 'identical' sister Tablet. Caveats / Known Subject System Discrepancies: For two Toshiba tablets purchased, shipped and 'programmed' simultaneously. I am absolutely BLOWN AWAY by the quirky differences between the two. Subjects Run: 'Carbon Copies' of the Same wamp stack, Customized Sugar CRM app, Table Structure AND Data. (by import) Tablet A: Generates PDFs. Tablet B: Does Not. Tablet A: Arrived from Toshiba loaded with ADOBE Reader 7.0 - (NO recollection of having updated this) Tablet B: Arrived from Toshiba loaded with Acrobat Reader 5x In the course of recent and sizable updates to the CRM app, we also upgraded Tablet B: to ADOBE Reader 8 in order to gain Send/Mailto functionality not featured in Acrobat Reader 5x. As yet, I have little reason to suspect that this is the source of the problem, however after copying and pasting the entire wamp/www folder from Tablet A, to Tablet B and finding that PDF generation continues to fail... My suspicions grow. Still should ADOBE prove NOT to be the problem... What then? Drop and rebuild the server? DataBase? Data? As for the Data, it is largely the same (user tables/system settings notwithstanding) synchronized via SQLyog, however there may well be subtle differences in table structure (indexes... ?), but I don't believe the PDF scripts to be all THAT critically dependant on data from the database. Seems like -- worst case scenario -- a contract.pdf might get created with empty data fields (first_name, last_name, billing_address...) but the rest is just html_write from SavePDF.php. Otherwise, perhaps something to do with Apache? Ahh... The plot thickens -- as we learn that the Apache server on Tablet A: (the one that works) throws errors every time it is shut down from wamp admin utility, and the mysql server is comparatively DOG SLOW, WHILE the wamp stack on Tablet B: NEVER throws an error, and is comparatively LIGHTNING FAST
View Replies !
FPDF : Back To Previous Pages
After creating a PDF document with FPDI, I'd like to write something on each page included in this document. The problem is, before calling the Output function, the current page is the last one, and I have to write on previous pages. Do you know if it's possible to come back to previous pages with FPDF/FPDI ? I tried to use the SetY() function with a negative number (hoping the AcceptPageBreak could work in reverse mode) ; but it doesn't work. Anyway it would have been a bad way to solve this problem and I'm looking for a better solution. Do you know if it's possible ? Actually, what I want to write on the previous pages is the number of the page ; but I don't want to write : current_page/total_page (which I know is possible with pageNo() and AliasNbPages()). This document contains different documents (with variable pages number). So I need to write for example : page 1/2 on the first PDF page page 2/2 on the next one page 1/3 on the next one and so on Any idea?
View Replies !
Converting A Html Code To Pdf In Multi Column With FPDF
I want to output some text to pdf file using FPDF. Outputting a text is good even with multi columns.But what I need is I need that text to be formatted. Like Some text to be bold and italic etc. I can either make a multi column pdf or a html formatted page to PDF, but I want both of them.I couldnt integrate both the functions and from the forums I found someone refering HTML2PDF, but I also need multi column with it..
View Replies !
Debugging PHP
My boss and I are fairly new to PHP and would love to hear suggestions on how to debug PHP with ease and efficiency. Thank you for your time and consideration.
View Replies !
PHP Debugging
I have been programming in php for few years but have never used anything but free hosting to run php. My programming requirements have evolved and now I am in need of a debugger to understand how code is functioning (so I want to be able to step through the lines of code, watch variable values and object contents etc.)Code:
View Replies !
Debugging In Php
What is the best way to debug in php? What is the best way to see the value of your variables? I'm coming from the Flash MX world, and in there, you can do a trace() and it traces out the value of your variables to the message window. PHP has print and echo but that seems to mess up the page layouts too much. Is there a way to print variables to a log file?
View Replies !
Debugging PHP In OS X
if there are any other mac users out there who have managed to get a debugger up and running in OS X. Im not finding any decent tutorials that let you use a stand alone debugger (i.e. not integrated with zend studio or komodo). I generally use textmate for editing and would like to find something i can use along with that.
View Replies !
Debugging
how to set the error handling in the ini file to E_ALL, E_ERROR, E_WARNING etc. We had everything setup and working then we had to restart the server and it for some reason, reset the ini file back to the way it was. SO we went back to the ini file and set it back up but now it does not work. We even set it to just E_ALL. And nothing. We just get a white page. Code:
View Replies !
Help Debugging Query
I was wondering if anyone can help me here? The following code sends out an email alert to members of my site when a matching result is found....
View Replies !
Debugging Query
I can't for the life of me work out why I keep getting this error: ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username='billybob')' at line 76 PHP Code:
View Replies !
Installation Debugging
1)I get startup error messages: "Unable to load dynamic library c:phpphp_curl.dll - the specified file cannot be found" although the file is very much there at exactly that location Not only for this file but for many extension files like php_mysql.dll, php_oracle.dll, php_mssql.dll, php_exif.dll etc. 2)the extensions_dir setting is "c:php" without an ending backslash. 3)The php.ini file is residing at c:php 4)The php.ini file in c:windows has all extensions disabled so it does not look as though that php.ini file is the source of the messages 5)There is a extension entry for php_win32api.dll which also gives a not found error. Is it the older version of php_win32std.dll, php_win32service.dll and php_win32scheduler.dll files which are present but their names are not there by default in the php.ini ? ************************************************** ************************************************ 6)How do I debug PHP like you can debug Java in Eclipse or NetBeans and C/C++ in MS Visual Studio - with breakpoints and stepping? ************************************************** ************************************************ 7)database access through odbc works. 8)How do I install PHP as both a CGI extension under Apache 2.0.5x and as a module (php5apache2.dll with a LoadModule in httpd.conf) - Apd which is a part of PEAR requires that php be installed as a CGI binary - is apd good for interactive debugging?
View Replies !
Debugging In Komodo
Does anyone use Komodo from activestate to write their PHP? If so, have you used the debugger? I'm new to debugging with an actual debugger (I'm kinda old school and have always relied on echo and print...). When I'm running it, the debugger stops at EVERY SINGLE line of PHP code... I'm debugging a pretty long script and it just takes WAY too long. Is there a way to tell the debugger to just execute the code up to a certain point?
View Replies !
XOOPS Debugging
I am working with this XOOPS CMS and started having problems. Everything was working fine all pages, modules displayed, then it just went blank. Now I tried doing some trouble shooting following the advice on their site about what to do if I am ending up with blank pages. The thing is I cannot even get to the admin login page to set the debugging options from there. Anyway I changed the debugging options via the database and still no errors are being displayed.. just the blank page. I look at the error logs form the server and went through each module folder and looked to see if there was any error logs. 2 of the error logs state that that there was an unexpected $ in one the XOOPS common.php file and it pointed out the line number. I have looked there and see nothing and I know that the error does have to occoured there it's just where the script halted. My question is that the error could have orignated from any module.. How can I get some errors to show on screen so i ca do a trace. I here it could be possible via .htaccess.
View Replies !
Debugging PHP4 With Dbg, Gdb, And Ddd
I want to create a debugging environment for PHP. I running Debian Woody and installed PHP4 from Debian's packaging system. I downloaded precompiled DBG from the webside and placed dbg.so in the same directory as mysql.so, Since MySQL works under PHP, I'm assuming I've got the right directory. I've updated php.ini per the DBG website. phpinfo() reports: 1. --disable-debug was part of the ./configure command. 2. ZEND_DEBUG=disabled, but the report does indicate that dbg is part of the Zend engine setup. 3. In the section on dbg, it reports dbg version 2.11.23, linked as a shared library; profiler compiled,enabled; debugger.enabled=on; etc. If I want to debug with dbg and gdb, do I have any options other than to recompile PHP omitting the "--disable-debug" switch? Once I do (or don't do) that, how does one hook gdb into dbg? How do most PHP developers who don't own a commercial IDE debug their programs?
View Replies !
PHP Error Debugging
I have been working with PHP for a while, but never gone through getting a good debugger - or debugging methodology. Can someone send me links to suggestions and possibly good (free) software? I am not hosting the website, so I cannot tell it to report all errors directly from the installation. I tried error_reporting(E_ALL ^ E_NOTICE); on top of the page, but that does nothing. So it always takes a while for me to fix the errors.
View Replies !
Debugging My Functions
I wrote this code to validate a few fields on a form which will be submitted when a customer wants a refill of their prescription medication. The first problem is none of the functions actually work properly. Both of the functions that validate names should throw an error if a name has less than 2 characters inputted in the field. Yet, it doesn't throw any errors if I insert only one letter in the field. The next function should verify a phone number. I can put a phone number with 6 numbers in it and it won't throw an error even though it is to short based on my regular expressions requirements which says it needs 7 to 14. The last function doesn't throw an error if I put <a href="bob"> in the comment box and it should throw an error if it finds a <a> tag. Code:
View Replies !
Debugging Error
I'm getting this error message after submitting a form in PHP: Fatal error: Call to undefined function sql_errno() in /home/jplane/ certcent/phpweb/phpnuke/html/admin/modules/quiz.php on line 542 It's suppose to write information to some sql tables. I'd like to further debug this message, maybe in mysql?
View Replies !
Installation, Debugging
(I am posting from a web interface- google groups, yet the message is not appearing on the group, so am posting again, if you get two of the same kindly ignore one) 1)I get startup error messages: "cannot load c:phpphp_curl.dll - the specified file cannot be found" although the file is very much there at exactly that location Not only for this file but for many extension files like php_mysql.dll, php_oracle.dll, php_mssql.dll, php_exif.dll etc. Code:
View Replies !
Debugging Charset
We've been building a pretty big web app here for internal use. SMS text messages come in from an aggregator and are stored in a MySQL 4 db. Our operators then deal with them using a web interface. The db is queried using PHP4 and the results output as XML which is then transformed using XSLT into XHTML. Now, in our testing environment everything works just fine. However, when we try and run it with actual live data, any incoming SMS message that contains a non-ASCII character breaks the system at the Sablotron stage (invalid token). Now the aggregating service is sending us the incoming messages UTF-8 encoded. The XML and XSL is all set up to be UTF-8. However, somewhere along the lines something is getting screwed up so that Sablotron barfs (typical examples are pound signs or euro signs). I'm having a hard time debugging this because as far as I can tell everything is set to be using UTF-8 by default. Clearly something isn't (MySQL possibly). I'd really appreciate some pointers for things to check.
View Replies !
Debugging Advice
syntax highlighting what methods or programs do people on here use to debug their php? I'm using linux so foss programs that run on both win and linux.
View Replies !
Debugging Rapidly
is there any program which shows all variable assignments during the running of a php script. im getting sick and tired of using echo $myvar to debug.
View Replies !
Debugging Scripts The Easy Way.
i found some ways to debug scripts like useing the error_reporting( E_ALL ); which will display any small bugs in your script and give you a warning about them. but the most common of them is ones like this: Warning: Use of undefined constant _jobdepartment - assumed '_jobdepartment' in c:foxservwww\_roguemodulesphprofessionadminindex.php on line 82 Warning: Use of undefined constant _joblisting - assumed '_joblisting' in c:foxservwww\_roguemodulesphprofessionadminindex.php on line 82 the line to fix is this: PHP Code:
View Replies !
Outputing Headers For Debugging
I am wondering if there is a way that I can output all of the information of which gets sent to a header within php? As I have got a problem where I can not set a cookie due to information being sent to the header and I have worked out where about in the script this is happening and have disabled all major coding (apart from when I am starting a new function) but I am still getting this problem. So I need to output all header information to see if I can work out what I am missing.
View Replies !
PHPEclipse And Remote Debugging
I'm trying to get remote debugging working with phpeclipse. I think i've installed everything correctly, and the debugger in eclipse starts, but breakpoints are ignored and nothing seems to happen :( Is there some way to simply check if the debug plugin for php is correctly installed (can I use dbglistener.exe to check if something happens when a php script is executed?) In the PHP Debug log i get a PHPLaunchingPlugin.InternalErrorOccured with the following stacktrace: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at net.sourceforge.phpdt.internal.debug.core.PHPDBGPa cket.sendPacket(PHPDBGPacket.java:40) at net.sourceforge.phpdt.internal.debug.core.PHPDBGIn terface.continueExecution(PHPDBGInterface.java:184 ) at net.sourceforge.phpdt.internal.debug.core.PHPDBGPr oxy$PHPLoop.run(PHPDBGProxy.java:384) Is there something i can do to fix this? It could be that this is why it doesn't work. My files are all on the server, I open them from there with eclipse (so no local copy's). Webroot on server is c:/inetpub/wwwroot Share to this path on client is called Y: My debug configuration: environment > remote debug set to on working directory set to: Y:kernel_3site remote sourcepath set to c:/inetpub/wwwroot/kernel_3/site My setup: client (ip 192.168.1.200) eclipse 3.0.1 phpeclipse 1.1.3 DbgListener.exe (from dbg-2.11.32-cli-w32 package) is running server (ip 192.168.1.100) apache 1.3.29 (installed via nusphere tech platform 3.2) php 4.3.4 dbg v2.11.32 (shows in php_info(), so it should be installed correctly)
View Replies !
Debugging SOAP Web-Service In Php.
I am trying to debug a client/server combination using NUSOAP, but I am not able to find a way to do that! I have spent days playing with Zend, but I haven't found a way to debug it without a start page. How can I do this? (Know there are some other environments, but it takes a long time to figure them out, while keeping what I have). Also, is there some simple way to VIEW and ANALYZE what goes throug the http-port? Tried Ethereal, but it doesn't work locally with XP. Can use both IIS and Apache, PHP 4* and 5*
View Replies !
Formal Debugging, Why Do You Think It Doesn't Exist?
First of all, I feel that the debate between ASP and PHP is irrelevent, I think they are different enough that there is no comparrison or need for comparrison. However, what the article did bring up about debugging made me wonder why PHP doesn't have any. Why do you think the Zend Engine doesn't spit back more information for debugging? I have never really found a need for more debugging options in PHP, good old "echo" and trial and error work for me, but I can imagine that it would be nice for those who are new to the language etc... Besides, would it take that much more time to include some kind of decent debugging? Just wanted to see what the community had to say about it.
View Replies !
Debugging - Conditional Expression
I have a conditional expression that looks like this: if (($mtf->nntp_id || $mtf->mlist_id) && !$mtf->mlist_msg_id) { I want to get it to output the values of $mtf->nntp_id and $id variables.....
View Replies !
Debugging Column Logic
In a table displaying data on products in a given category I am trying to print table columns only if that column will be needed. However not all products in the category will have data for every cell, so for each product I want to display a table cell with data if it exists, otherwise display an empty cell. PHP Code:
View Replies !
Debugging DomDocument Objects
What is the best way to view the contents of a DomDocument Object? print_r() and var_dump() just give me empty objects. Here is my code, if you're curious: $dom = new DOMDocument(); $dom->loadHTML("<html><body><p>Hello World</p></body></html>"); print_r($dom);
View Replies !
|